pygmy.handlers
Class PrintHandler

java.lang.Object
  extended by pygmy.core.AbstractHandler
      extended by pygmy.handlers.PrintHandler
All Implemented Interfaces:
Handler

public class PrintHandler
extends AbstractHandler
implements Handler

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

PrintHandler

public PrintHandler()
Method Detail

handle

public boolean handle(Request aRequest,
                      Response aResponse)
               throws java.io.IOException
Specified by:
handle in interface Handler
Overrides:
handle in class AbstractHandler
Throws:
java.io.IOException