|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.http.HttpSession
public class HttpSession
Handle a HTTP session
Copyright (c) Formaria Ltd., 2008, see license.txt for details
| Constructor Summary | |
|---|---|
HttpSession(java.net.Socket s,
HttpResponseHandler 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 HttpSession(java.net.Socket s,
HttpResponseHandler 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 | ||||||||