org.apache.commons.jelly.tags.jetty
Class JellyResourceHttpHandler

java.lang.Object
  extended by org.mortbay.http.handler.AbstractHttpHandler
      extended by org.apache.commons.jelly.tags.jetty.JellyResourceHttpHandler
All Implemented Interfaces:
java.io.Serializable, org.mortbay.http.HttpHandler, org.mortbay.util.LifeCycle

 class JellyResourceHttpHandler
extends org.mortbay.http.handler.AbstractHttpHandler

The actual http handler implementation for an http context in an http server

Version:
$Id: JellyResourceHttpHandler.java 155420 2005-02-26 13:06:03Z dirkv $
Author:
rtl

Field Summary
private  java.util.Map _tagMap
          The list of tags registered to handle a request method
private  org.apache.commons.jelly.XMLOutput _xmlOutput
          The place where to output the results of the tag body
private static org.apache.commons.logging.Log log
          The Log to which logging calls will be made.
private static java.lang.String OVERRIDE_SET_HANDLED_VAR
          The name of the var to check if setHandled should not be set to true .
 
Constructor Summary
JellyResourceHttpHandler(org.apache.commons.jelly.XMLOutput xmlOutput)
          Creates a new instance of JellyResourceHttpHandler
 
Method Summary
 java.lang.String getRequestBody(org.mortbay.http.HttpRequest request)
           
 void handle(java.lang.String pathInContext, java.lang.String pathParams, org.mortbay.http.HttpRequest request, org.mortbay.http.HttpResponse response)
           
 void registerTag(org.apache.commons.jelly.Tag tag, java.lang.String method)
           
 
Methods inherited from class org.mortbay.http.handler.AbstractHttpHandler
getHttpContext, getName, handleTrace, initialize, isStarted, setName, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log
The Log to which logging calls will be made.


OVERRIDE_SET_HANDLED_VAR

private static final java.lang.String OVERRIDE_SET_HANDLED_VAR
The name of the var to check if setHandled should not be set to true .

See Also:
Constant Field Values

_tagMap

private java.util.Map _tagMap
The list of tags registered to handle a request method


_xmlOutput

private org.apache.commons.jelly.XMLOutput _xmlOutput
The place where to output the results of the tag body

Constructor Detail

JellyResourceHttpHandler

public JellyResourceHttpHandler(org.apache.commons.jelly.XMLOutput xmlOutput)
Creates a new instance of JellyResourceHttpHandler

Method Detail

registerTag

public void registerTag(org.apache.commons.jelly.Tag tag,
                        java.lang.String method)

handle

public void handle(java.lang.String pathInContext,
                   java.lang.String pathParams,
                   org.mortbay.http.HttpRequest request,
                   org.mortbay.http.HttpResponse response)
            throws org.mortbay.http.HttpException,
                   java.io.IOException
Throws:
org.mortbay.http.HttpException
java.io.IOException

getRequestBody

public java.lang.String getRequestBody(org.mortbay.http.HttpRequest request)
                                throws java.io.IOException
Throws:
java.io.IOException