org.sblim.cimclient.internal.http

Class HttpSocketFactory

public class HttpSocketFactory extends Object

Class HttpSocketFactory manages socket factories
Method Summary
SocketFactorygetClientSocketFactory(SSLContext pContext)
Returns a client socket factory
SSLContextgetClientSSLContext(WBEMConfiguration pProperties)
Returns a SSLContext for client sockets corresponding to a given set of configuration properties
static HttpSocketFactorygetInstance()
Returns the singleton instance
ServerSocketFactorygetServerSocketFactory(SSLContext pContext)
Returns a server socket factory
SSLContextgetServerSSLContext(WBEMConfiguration pProperties)
Returns a SSLContext for server sockets corresponding to a given set of configuration properties

Method Detail

getClientSocketFactory

public SocketFactory getClientSocketFactory(SSLContext pContext)
Returns a client socket factory

Parameters: pContext The SSL context or null for insecure connections

Returns: The factory

getClientSSLContext

public SSLContext getClientSSLContext(WBEMConfiguration pProperties)
Returns a SSLContext for client sockets corresponding to a given set of configuration properties

Parameters: pProperties The configuration to apply

Returns: The SSL context

getInstance

public static HttpSocketFactory getInstance()
Returns the singleton instance

Returns: The instance

getServerSocketFactory

public ServerSocketFactory getServerSocketFactory(SSLContext pContext)
Returns a server socket factory

Parameters: pContext The corresponding SSL context or null for insecure connections

Returns: The factory

getServerSSLContext

public SSLContext getServerSSLContext(WBEMConfiguration pProperties)
Returns a SSLContext for server sockets corresponding to a given set of configuration properties

Parameters: pProperties The configuration to apply

Returns: The SSL context

Copyright © 2005, 2010 IBM Corporation. All Rights Reserved.