|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.optional.http.XHttpSession
public class XHttpSession
Handle a HTTP session
Copyright (c) Xoetrope Ltd., 2001-2006, see license.txt for details
| Constructor Summary | |
|---|---|
XHttpSession(java.net.Socket s,
XHttpResponseHandler handler)
Create a new session |
|
| Method Summary | |
|---|---|
void |
run()
The runnable method |
protected void |
sendError(java.lang.String code,
java.lang.String message)
Send an error message as a response |
protected void |
sendResponse(java.lang.String status,
java.lang.String mimeType,
java.util.Properties headers,
java.io.InputStream data)
Send the response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XHttpSession(java.net.Socket s,
XHttpResponseHandler handler)
s - the incoming sockethandler - the response hanlder| Method Detail |
|---|
public void run()
run in interface java.lang.Runnable
protected void sendError(java.lang.String code,
java.lang.String message)
throws java.lang.InterruptedException
code - the http reponsemessage - the error message
throws InterruptedException to stop furhter request processing.
java.lang.InterruptedException
protected void sendResponse(java.lang.String status,
java.lang.String mimeType,
java.util.Properties headers,
java.io.InputStream data)
status - mimeType - props - data -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||