|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpygmy.core.AbstractHandler
pygmy.handlers.PrintHandler
public class PrintHandler
This Handler prints out the incoming Http Request, and echos it back as plain text. This is great for debugging request being submitted to the server. Past though this it has little production use. It does not filter by URL so if it is called it short circuits any other handler down stream. If it is installed at the head of a chain no other handlers in the chain will be called.
Field Summary |
---|
Fields inherited from class pygmy.core.AbstractHandler |
---|
handlerName, server, URL_PREFIX_OPTION, urlPrefix |
Constructor Summary | |
---|---|
PrintHandler()
|
Method Summary | |
---|---|
boolean |
handle(Request aRequest,
Response aResponse)
|
Methods inherited from class pygmy.core.AbstractHandler |
---|
getMimeType, getName, getUrlPrefix, handleBody, initialize, isRequestdForHandler, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface pygmy.core.Handler |
---|
getName, initialize, shutdown |
Constructor Detail |
---|
public PrintHandler()
Method Detail |
---|
public boolean handle(Request aRequest, Response aResponse) throws java.io.IOException
handle
in interface Handler
handle
in class AbstractHandler
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |