Package ca.uhn.hl7v2.util
Class StandardSocketFactory
java.lang.Object
ca.uhn.hl7v2.util.StandardSocketFactory
- All Implemented Interfaces:
SocketFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureNewAcceptedSocket(Socket theSocket) Invoked by server processes each time a new server isacceptedin order to set configuration settings on the new socketCreate a standard server socketCreate a standard client socketCreate a TLS server socketCreate a TLS client socketintGets the value forSocket.setSoTimeout(int)to be set on newly accepted sockets in server applications.voidsetAcceptedSocketTimeout(int theAcceptedSocketTimeout) Sets the value forSocket.setSoTimeout(int)to be set on newly accepted sockets in server applications
-
Field Details
-
DEFAULT_ACCEPTED_SOCKET_TIMEOUT
Default value forgetAcceptedSocketTimeout()- See Also:
-
-
Constructor Details
-
StandardSocketFactory
public StandardSocketFactory()
-
-
Method Details
-
getAcceptedSocketTimeout
Gets the value forSocket.setSoTimeout(int)to be set on newly accepted sockets in server applications. Default isDEFAULT_ACCEPTED_SOCKET_TIMEOUT -
setAcceptedSocketTimeout
Sets the value forSocket.setSoTimeout(int)to be set on newly accepted sockets in server applications -
createSocket
Create a standard client socket- Specified by:
createSocketin interfaceSocketFactory- Throws:
IOException
-
createTlsSocket
Create a TLS client socket- Specified by:
createTlsSocketin interfaceSocketFactory- Throws:
IOException
-
createServerSocket
Create a standard server socket- Specified by:
createServerSocketin interfaceSocketFactory- Throws:
IOException
-
createTlsServerSocket
Create a TLS server socket- Specified by:
createTlsServerSocketin interfaceSocketFactory- Throws:
IOException
-
configureNewAcceptedSocket
Description copied from interface:SocketFactoryInvoked by server processes each time a new server isacceptedin order to set configuration settings on the new socket- Specified by:
configureNewAcceptedSocketin interfaceSocketFactory- Throws:
SocketException
-