pygmy.handlers.groovy
Class GroovyHandler

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

public class GroovyHandler
extends AbstractHandler


Field Summary
static ConfigOption SCRIPT_DIRECTORY_OPTION
           
 
Fields inherited from class pygmy.core.AbstractHandler
handlerName, server, URL_PREFIX_OPTION, urlPrefix
 
Constructor Summary
GroovyHandler()
           
 
Method Summary
protected  boolean handleBody(HttpRequest request, HttpResponse response)
           
 boolean initialize(java.lang.String handlerName, Server server)
           
 
Methods inherited from class pygmy.core.AbstractHandler
getMimeType, getName, getUrlPrefix, handle, isRequestdForHandler, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCRIPT_DIRECTORY_OPTION

public static final ConfigOption SCRIPT_DIRECTORY_OPTION
Constructor Detail

GroovyHandler

public GroovyHandler()
Method Detail

initialize

public boolean initialize(java.lang.String handlerName,
                          Server server)
Specified by:
initialize in interface Handler
Overrides:
initialize in class AbstractHandler

handleBody

protected boolean handleBody(HttpRequest request,
                             HttpResponse response)
                      throws java.io.IOException
Overrides:
handleBody in class AbstractHandler
Throws:
java.io.IOException