public class ImmutableSocketAttributes extends BaseAttributes implements SocketAttributes
SocketAttributes.| Constructor and Description |
|---|
ImmutableSocketAttributes(DatagramPacket packet)
Creates a new instance
|
ImmutableSocketAttributes(DatagramSocket socket)
Creates a new instance
|
ImmutableSocketAttributes(int remotePort,
String remoteHostAddress,
String remoteHostName) |
ImmutableSocketAttributes(Socket socket)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHostAddress() |
String |
getHostName() |
Certificate[] |
getLocalCertificates() |
Certificate[] |
getPeerCertificates() |
int |
getPort() |
toStringpublic ImmutableSocketAttributes(Socket socket)
socket - TCP Socket connection with the remote hostpublic ImmutableSocketAttributes(DatagramSocket socket)
socket - UDP DatagramSocket connection with the remote hostpublic ImmutableSocketAttributes(DatagramPacket packet)
packet - UDP DatagramPacket received from remote hostpublic int getPort()
getPort in interface SocketAttributespublic String getHostAddress()
getHostAddress in interface SocketAttributespublic String getHostName()
getHostName in interface SocketAttributespublic Certificate[] getLocalCertificates()
getLocalCertificates in interface SocketAttributespublic Certificate[] getPeerCertificates()
getPeerCertificates in interface SocketAttributesnullCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.