|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ikrs.httpd.HTTPRequestDistributor
public class HTTPRequestDistributor
This HTTPRequestDistributor is a wrapper class that processes HTTPRequests on a top level. It reads the HTTP header data and tries to find a suitable handler class to forward the request to.
Constructor Summary | |
---|---|
HTTPRequestDistributor(HTTPHandler handler,
CustomLogger logger,
java.util.UUID socketID,
java.net.Socket socket,
HTTPConnectionUserID userID)
The constructor to create a new HTTPRequestDistributor. |
Method Summary | |
---|---|
HTTPConnectionUserID |
getConnectionUserID()
Get the connection-user-ID this distributor is associated with. |
java.net.Socket |
getSocket()
Get the socket this distributor operates on. |
java.util.UUID |
getSocketID()
Get the socketID this distributor is associated with. |
void |
run()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTTPRequestDistributor(HTTPHandler handler, CustomLogger logger, java.util.UUID socketID, java.net.Socket socket, HTTPConnectionUserID userID) throws java.lang.NullPointerException
handler
- The http handler that passes the request to this new distributor.logger
- A logger to write log messages to.socketID
- The socket's unique ID.socket
- The originated socket itself.
java.lang.NullPointerException
Method Detail |
---|
public java.util.UUID getSocketID()
public java.net.Socket getSocket()
public HTTPConnectionUserID getConnectionUserID()
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |