| org.cougaar.core.service.SocketFactoryService
Method Summary | |
Object | getSocketFactory(Class clazz, Map m) Get an appropriate SocketFactory instance.
the return value is typed Object because RMISocketFactory and SSLSocketFactory
do not otherwise share a superclass.
Implementations will generally support SSLSocketFactory, SSLServerSocketFactory, and RMISocketFactory.
RMISocketFactory may be parameterized (via the second argument) with "ssl"=Boolean (default FALSE) and
"aspects"=Boolean (default FALSE).
Example:
Map params = new HashMap(); params.put("ssl", Boolean.TRUE);
RMISocketFactory rsf = (RMISocketFactory) socketFactoryService.getSocketFactory(RMISocketFactory.class, params);
Parameters: clazz - Specifies the class required. |
getSocketFactory | Object getSocketFactory(Class clazz, Map m)(Code) | | Get an appropriate SocketFactory instance.
the return value is typed Object because RMISocketFactory and SSLSocketFactory
do not otherwise share a superclass.
Implementations will generally support SSLSocketFactory, SSLServerSocketFactory, and RMISocketFactory.
RMISocketFactory may be parameterized (via the second argument) with "ssl"=Boolean (default FALSE) and
"aspects"=Boolean (default FALSE).
Example:
Map params = new HashMap(); params.put("ssl", Boolean.TRUE);
RMISocketFactory rsf = (RMISocketFactory) socketFactoryService.getSocketFactory(RMISocketFactory.class, params);
Parameters: clazz - Specifies the class required. If the class cannot be supported bythe service, it will return null. Parameters: m - Allows arbitrary preferences and parameters to be specified. an object which is instanceof the requested class or null. |
|
|