Class HttpSocketFactory
java.lang.Object
org.sblim.cimclient.internal.http.HttpSocketFactory
public class HttpSocketFactory
extends java.lang.Object
Class HttpSocketFactory manages socket factories
-
Method Summary
Modifier and TypeMethodDescriptionjavax.net.SocketFactory
getClientSocketFactory
(javax.net.ssl.SSLContext pContext) Returns a client socket factoryjavax.net.ssl.SSLContext
getClientSSLContext
(WBEMConfiguration pProperties) Returns a SSLContext for client sockets corresponding to a given set of configuration propertiesstatic HttpSocketFactory
Returns the singleton instancejavax.net.ServerSocketFactory
getServerSocketFactory
(javax.net.ssl.SSLContext pContext) Returns a server socket factoryjavax.net.ssl.SSLContext
getServerSSLContext
(WBEMConfiguration pProperties) Returns a SSLContext for server sockets corresponding to a given set of configuration propertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getInstance
Returns the singleton instance- Returns:
- The instance
-
getServerSocketFactory
public javax.net.ServerSocketFactory getServerSocketFactory(javax.net.ssl.SSLContext pContext) Returns a server socket factory- Parameters:
pContext
- The corresponding SSL context ornull
for insecure connections- Returns:
- The factory
-
getClientSocketFactory
public javax.net.SocketFactory getClientSocketFactory(javax.net.ssl.SSLContext pContext) Returns a client socket factory- Parameters:
pContext
- The SSL context ornull
for insecure connections- Returns:
- The factory
-
getClientSSLContext
Returns a SSLContext for client sockets corresponding to a given set of configuration properties- Parameters:
pProperties
- The configuration to apply- Returns:
- The SSL context
-
getServerSSLContext
Returns a SSLContext for server sockets corresponding to a given set of configuration properties- Parameters:
pProperties
- The configuration to apply- Returns:
- The SSL context
-