|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ebay.carad.os.vitalsigns.util.NanoHTTPD.HTTPSession
private class NanoHTTPD.HTTPSession
Handles one session, i.e. parses the HTTP request and returns the response.
Field Summary | |
---|---|
private java.net.Socket |
mySocket
|
Constructor Summary | |
---|---|
NanoHTTPD.HTTPSession(java.net.Socket s)
|
Method Summary | |
---|---|
private void |
decodeParms(java.lang.String parms,
java.util.Properties p)
Decodes parameters in percent-encoded URI-format ( e.g. |
private java.lang.String |
decodePercent(java.lang.String str)
Decodes the percent encoding scheme. |
void |
run()
|
private void |
sendError(java.lang.String status,
java.lang.String msg)
Returns an error message as a HTTP response and throws InterruptedException to stop furhter request processing. |
private void |
sendResponse(java.lang.String status,
java.lang.String mime,
java.util.Properties header,
java.io.InputStream data)
Sends given response to the socket. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.net.Socket mySocket
Constructor Detail |
---|
public NanoHTTPD.HTTPSession(java.net.Socket s)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
private java.lang.String decodePercent(java.lang.String str) throws java.lang.InterruptedException
java.lang.InterruptedException
private void decodeParms(java.lang.String parms, java.util.Properties p) throws java.lang.InterruptedException
java.lang.InterruptedException
private void sendError(java.lang.String status, java.lang.String msg) throws java.lang.InterruptedException
java.lang.InterruptedException
private void sendResponse(java.lang.String status, java.lang.String mime, java.util.Properties header, java.io.InputStream data)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |