|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.monoserv.modules.BaseModule
com.monoserv.modules.HttpReceiverModule
public class HttpReceiverModule
A HTTP based module that is created for the sole purpose of receiving the HTTP data. It reads in the data, sets the HTTP response code to 200 and adds the required Host parameter.
Constructor Summary | |
---|---|
HttpReceiverModule()
Constructor - blank at the moment. |
Method Summary | |
---|---|
IModuleData |
run(IModuleData data)
Sets up the initial data for HTTP messages. |
void |
SaveSocket(java.net.Socket sock)
Used to gather information from the socket to use in the Host header field. |
Methods inherited from class com.monoserv.modules.BaseModule |
---|
end, getInstanceModifier, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpReceiverModule()
Method Detail |
---|
public IModuleData run(IModuleData data) throws java.lang.Exception
run
in class BaseModule
data
- The data from the previous module
java.lang.NullPointerException
- If the supplied parameter is null.
java.lang.Exception
com.monoserv.http.HttpResponse#setHttpResponseCode(int)
public void SaveSocket(java.net.Socket sock)
SaveSocket
in class BaseModule
sock
- A Socket that represents the connecting clients connection.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |