|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.j2ep.requesthandlers.RequestHandlerBase
public abstract class RequestHandlerBase
A basic implementation of the RequestHandler. Includes a method to set the headers with.
| Constructor Summary | |
|---|---|
RequestHandlerBase()
|
|
| Method Summary | |
|---|---|
static void |
addBannedHeader(java.lang.String header)
Adds a headers to the list of banned headers. |
static void |
addBannedHeaders(java.lang.String headers)
Adds all the headers in the input to the list of banned headers. |
abstract org.apache.commons.httpclient.HttpMethod |
process(HttpServletRequest request,
java.lang.String url)
Creates a new HttpMethod for this request. |
protected void |
setHeaders(org.apache.commons.httpclient.HttpMethod method,
HttpServletRequest request)
Will write all request headers stored in the request to the method that are not in the set of banned headers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestHandlerBase()
| Method Detail |
|---|
public abstract org.apache.commons.httpclient.HttpMethod process(HttpServletRequest request,
java.lang.String url)
throws java.io.IOException
RequestHandler
process in interface RequestHandlerrequest - The request we are processingurl - URL to bind the method to
java.io.IOException - An exception is thrown when there is a problem with the input supplied by the requestnet.sf.j2ep.model.RequestHandler#process(javax.servlet.http.HttpServletRequest, java.lang.String)
protected void setHeaders(org.apache.commons.httpclient.HttpMethod method,
HttpServletRequest request)
throws org.apache.commons.httpclient.HttpException
method - The HttpMethod used for this connectionrequest - The incoming request
org.apache.commons.httpclient.HttpExceptionpublic static void addBannedHeader(java.lang.String header)
header - The header to addpublic static void addBannedHeaders(java.lang.String headers)
headers - The headers that are banned
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||