|
||||||||||
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.HttpHelloWorldTextModule
public class HttpHelloWorldTextModule
Example module created for the sole purpose of examplifying the module communication and data passing. Does nothing than sets the body of the HttpDataModule's HttpResponse object to "Hello World - Im inside the HttpHelloWorldTextModule". Also sets the content length for this.
Constructor Summary | |
---|---|
HttpHelloWorldTextModule()
Constructor - does nothing (blank). |
Method Summary | |
---|---|
IModuleData |
run(IModuleData data)
Appends the text to the HTTP data. |
Methods inherited from class com.monoserv.modules.BaseModule |
---|
end, getInstanceModifier, SaveSocket, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpHelloWorldTextModule()
Method Detail |
---|
public IModuleData run(IModuleData data) throws java.lang.NullPointerException
run
in class BaseModule
data
- The data from the previous module
java.lang.NullPointerException
- If the supplied parameter is null.com.monoserv.http.HttpResponse#setMessageBody(HttpBody)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |