|
|||||||||
| Home >> All >> org >> mortbay >> http >> [ handler overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mortbay.http.handler
Class SetResponseHeadersHandler

java.lang.Objectorg.mortbay.http.handler.AbstractHttpHandler
org.mortbay.http.handler.SetResponseHeadersHandler
- All Implemented Interfaces:
- org.mortbay.http.HttpHandler, org.mortbay.util.LifeCycle, java.io.Serializable
- public class SetResponseHeadersHandler
- extends AbstractHttpHandler
Handler that allows arbitrary HTTP Header values to be set in the response.
- Version:
- $Id: SetResponseHeadersHandler.java,v 1.2 2003/09/18 13:29:23 gregwilkins Exp $
| Field Summary | |
private java.util.Map |
_fields
The Map of _fields that will be asserted on outgoing responses. |
private static org.apache.commons.logging.Log |
log
|
| Fields inherited from class org.mortbay.http.handler.AbstractHttpHandler |
|
| Constructor Summary | |
SetResponseHeadersHandler()
|
|
| Method Summary | |
void |
handle(java.lang.String pathInContext,
java.lang.String pathParams,
org.mortbay.http.HttpRequest request,
org.mortbay.http.HttpResponse response)
Handle a request by pre-populating the headers from the configured set of _fields. |
void |
setHeaderValue(java.lang.String name,
java.lang.String value)
Set a header override, every response handled will have this header set. |
void |
setHeaderValues(java.lang.String name,
java.lang.String[] values)
Set a multivalued header, every response handled will have this header set with the provided values. |
| 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 org.apache.commons.logging.Log log
_fields
private java.util.Map _fields
- The Map of _fields that will be asserted on outgoing responses.
Key is the header name. Value is a List containing its values.
| Constructor Detail |
SetResponseHeadersHandler
public SetResponseHeadersHandler()
| Method Detail |
setHeaderValue
public void setHeaderValue(java.lang.String name, java.lang.String value)
- Set a header override, every response handled will have this header set.
setHeaderValues
public void setHeaderValues(java.lang.String name, java.lang.String[] values)
- Set a multivalued header, every response handled will have
this header set with the provided values.
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
- Handle a request by pre-populating the headers from the configured
set of _fields.
Settings made here can be overridden by subsequent handling of the
request.
|
|||||||||
| Home >> All >> org >> mortbay >> http >> [ handler overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC