|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dist1.acb.common.transport.SocketFactories
The main purpose is to create abstraction for creating sockets for different types of objcets.
Method Summary | |
static javax.net.ServerSocketFactory |
getServerSocketFactory(java.lang.Object forObject)
Returns ServerSocketFactory for specific object (the type of object takes into considiration). |
static javax.net.ServerSocketFactory |
getServerSocketFactoryForClass(java.lang.Class forClass)
Returns ServerSocketFactory for specific class. |
static javax.net.SocketFactory |
getSocketFactory(java.lang.Object forObject)
Returns SocketFactory for specific object (the type of object takes into considiration). |
static javax.net.SocketFactory |
getSocketFactoryForClass(java.lang.Class forClass)
Returns SocketFactory for specific class. |
static void |
registerServerSocketFactory(java.lang.String forClass,
javax.net.ServerSocketFactory factory)
Registers new ServerSocketFactory for specific type (class) of objects. |
static void |
registerSocketFactory(java.lang.String forClass,
javax.net.SocketFactory factory)
Registers new SocketFactory for specific type (class) of objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static javax.net.ServerSocketFactory getServerSocketFactory(java.lang.Object forObject)
forObject
- The object
java.lang.RuntimeException
- if the appropriate factory was not foundpublic static javax.net.ServerSocketFactory getServerSocketFactoryForClass(java.lang.Class forClass)
forClass
- The class
java.lang.RuntimeException
- if the appropriate factory was not foundpublic static javax.net.SocketFactory getSocketFactory(java.lang.Object forObject)
forObject
- The object
java.lang.RuntimeException
- if the appropriate factory was not foundpublic static javax.net.SocketFactory getSocketFactoryForClass(java.lang.Class forClass)
forClass
- The object
java.lang.RuntimeException
- if the appropriate factory was not foundpublic static void registerServerSocketFactory(java.lang.String forClass, javax.net.ServerSocketFactory factory) throws java.lang.ClassNotFoundException
forClass
- Name of the type (class)factory
- The factory
java.lang.ClassNotFoundException
- If the class was not foundpublic static void registerSocketFactory(java.lang.String forClass, javax.net.SocketFactory factory) throws java.lang.ClassNotFoundException
forClass
- Name of the type (class)factory
- The factory
java.lang.ClassNotFoundException
- If the class was not found
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |