|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.msi.network.server.RHFactory
This is a gateway class that allows the application to register a capability for a requesthandler object to be constructed and for a requesthandler based server to create these application requesthandlers as needed.
| Field Summary | |
private static java.util.Hashtable |
builders
|
| Constructor Summary | |
RHFactory()
|
|
| Method Summary | |
static RequestHandler |
getRequestHandler(int port)
The server uses this method to create a the requestHandler needed to service client requests on the specified port. |
static void |
registerBuilder(RHBuilder b,
int port)
The application uses this method to register its requesthandler builders with the factory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.util.Hashtable builders
| Constructor Detail |
public RHFactory()
| Method Detail |
public static void registerBuilder(RHBuilder b,
int port)
b - the requestHandler builder.port - the port identifier for connections handled
by requestHandlers created by this builder.public static RequestHandler getRequestHandler(int port)
port - selects which request handler to create.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||