|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.web.base.proxy.HttpSocketHandler
public class HttpSocketHandler
Class that is handling the client socket.
Constructor Summary | |
---|---|
HttpSocketHandler(HttpOnDemandProxy onDemandProxy,
Socket clientSocket)
Create a new handler for the given socket. |
Method Summary | |
---|---|
protected void |
analyzeRequest()
Analyze the request sent by the client. |
void |
cleanup()
|
void |
cleanup(String message)
Send an error message. |
void |
cleanup(String message,
Exception exception)
Send an error message with its exception |
protected void |
contextIsStarting(String contextName)
Tell to the client that the context is starting. |
void |
run()
Handle the request on the selected socket. |
protected void |
sendBytesToClient(HTTPResponse httpResponse)
Send the given response to the client. |
protected void |
sendWaitGif()
Send the wait gif |
protected void |
startWebContainer()
Asked to start the web container |
protected void |
webContainerIsStarting()
Tell to the client that the web container is starting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpSocketHandler(HttpOnDemandProxy onDemandProxy, Socket clientSocket) throws HttpOnDemandProxyException
onDemandProxy
- the http on demand proxyclientSocket
- the given client socket
HttpOnDemandProxyException
- if unable to get streamsMethod Detail |
---|
protected void analyzeRequest() throws HttpOnDemandProxyException
HttpOnDemandProxyException
- if request cannot be analyzedpublic void cleanup()
public void cleanup(String message)
message
- the given error messagepublic void cleanup(String message, Exception exception)
message
- the given messageexception
- the given exceptionprotected void sendBytesToClient(HTTPResponse httpResponse)
httpResponse
- the given responseprotected void startWebContainer()
protected void webContainerIsStarting()
protected void sendWaitGif()
protected void contextIsStarting(String contextName)
public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |