public interface SocketHandler
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream(URI uri)
Negotiates and creates a socket for a given URI and returns the InputStream
associated with the socket.
|
InputStream |
getInputStream(URI uri,
SecurityDomain securityDomain)
Negotiates and creates a socket for a given URI and returns the InputStream
associated with the socket.
|
Socket |
getSocket(String host,
int port,
boolean useSecureSocket)
Negotiates and creates a socket for a given hostname and port If requested, the socket is
secured using the implementation's security mechanisms and the default
SecurityDomain for this host and port
|
Socket |
getSocket(String host,
int port,
boolean useSecureSocket,
SecurityDomain securityDomain)
Negotiates and creates a socket for a given hostname and port.
|
Socket |
getSocket(String host,
int port,
boolean useSecureSocket,
SecurityDomain securityDomain,
Socket socketWrapper)
Negotiates and creates a socket for a given hostname and port.
|
Socket |
getSocket(URI uri,
boolean useSecureSocket)
Negotiates and creates a socket for a given URI.
|
Socket |
getSocket(URI uri,
boolean useSecureSocket,
SecurityDomain securityDomain)
Negotiates and creates a socket for a given URI.
|
Socket getSocket(String host, int port, boolean useSecureSocket) throws Exception
host - The hostname or IP address to create a socket toport - The port to create a socket touseSecureSocket - If the socket should be securedExceptionSocket getSocket(String host, int port, boolean useSecureSocket, SecurityDomain securityDomain) throws Exception
host - The hostname or IP address to create a socket toport - The port to create a socket touseSecureSocket - If the socket should be securedsecurityDomain - Security Domain config to use in securing the socketExceptionSocket getSocket(URI uri, boolean useSecureSocket) throws Exception
uri - The URI for which to open the socketuseSecureSocket - If the socket should be securedExceptionSocket getSocket(URI uri, boolean useSecureSocket, SecurityDomain securityDomain) throws Exception
uri - The URI for which to open the socketuseSecureSocket - If the socket should be securedsecurityDomain - Security Domain config to use in securing the socketExceptionSocket getSocket(String host, int port, boolean useSecureSocket, SecurityDomain securityDomain, Socket socketWrapper) throws Exception
host - The hostname or IP address to create a socket toport - The port to create a socket touseSecureSocket - If the socket should be securedsecurityDomain - Security Domain config to use in securing the socketsocketWrapper - Socket to wrap connection in, generally for HTTPS tunnelsExceptionInputStream getInputStream(URI uri) throws Exception
uri - The URI for which to open the socketExceptionInputStream getInputStream(URI uri, SecurityDomain securityDomain) throws Exception
uri - The URI for which to open the socketsecurityDomain - Security Domain config to use in securing the socketExceptionCopyright © 2016 Open eHealth Foundation. All rights reserved.