public class SetResponseHeadersHandler extends AbstractHttpHandler
| Constructor and Description |
|---|
SetResponseHeadersHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest request,
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.
|
getHttpContext, getName, handleTrace, initialize, isStarted, setName, start, stop, toStringpublic void setHeaderValue(java.lang.String name,
java.lang.String value)
name - The String name of the header.value - The String value of the header.public void setHeaderValues(java.lang.String name,
java.lang.String[] values)
name - The String name of the header.values - An Array of String values to use as the values for a Header.public void handle(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest request,
HttpResponse response)
throws HttpException,
java.io.IOException
pathInContext - The context path. Ignored.pathParams - Path parameters such as encoded Session ID. Ignored.request - The HttpRequest request. Ignored.response - The HttpResponse response. Updated with new Headers.HttpExceptionjava.io.IOExceptionCopyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.