net.sf.j2ep.requesthandlers
Class EntityEnclosingRequestHandler

java.lang.Object
  extended by net.sf.j2ep.requesthandlers.RequestHandlerBase
      extended by net.sf.j2ep.requesthandlers.EntityEnclosingRequestHandler
All Implemented Interfaces:
RequestHandler

public class EntityEnclosingRequestHandler
extends RequestHandlerBase

Handler for POST and PUT methods.

Author:
Anders Nyman

Constructor Summary
EntityEnclosingRequestHandler()
           
 
Method Summary
 org.apache.commons.httpclient.HttpMethod process(HttpServletRequest request, java.lang.String url)
          Will set the input stream and the Content-Type header to match this request.
 
Methods inherited from class net.sf.j2ep.requesthandlers.RequestHandlerBase
addBannedHeader, addBannedHeaders, setHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityEnclosingRequestHandler

public EntityEnclosingRequestHandler()
Method Detail

process

public org.apache.commons.httpclient.HttpMethod process(HttpServletRequest request,
                                                        java.lang.String url)
                                                 throws java.io.IOException
Will set the input stream and the Content-Type header to match this request. Will also set the other headers send in the request.

Specified by:
process in interface RequestHandler
Specified by:
process in class RequestHandlerBase
Parameters:
request - The request we are processing
url - URL to bind the method to
Returns:
The method we have created
Throws:
java.io.IOException - An exception is throws when there is a problem getting the input stream
See Also:
net.sf.j2ep.model.RequestHandler#process(javax.servlet.http.HttpServletRequest, java.lang.String)