public interface HttpRequestProcessingContext
HttpRequestFilter
,
HttpResponseFilter
Modifier and Type | Method and Description |
---|---|
void |
breakRequestProcessing(HttpResponse response,
boolean applyResponseFilters)
Breaks the chain of request filters with the given
response . |
HttpClient |
getClient()
Returns
HttpClient instance which belongs to the request/response. |
ProcessedHttpRequest |
getProcessedRequest()
Returns the
ProcessedHttpRequest instance that is currently being processed. |
java.lang.Object |
getProperty(java.lang.String name)
Returns a value for the given
name property. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Binds the
name property with the value . |
void setProperty(java.lang.String name, java.lang.Object value)
name
property with the value
.
If value
is null
then the property with the given name
will be removed.name
- property name.value
- property valuejava.lang.NullPointerException
- in case of name
is null
.java.lang.Object getProperty(java.lang.String name)
name
property.name
- property name.null
.HttpClient getClient()
HttpClient
instance which belongs to the request/response.HttpClient
instance.void breakRequestProcessing(HttpResponse response, boolean applyResponseFilters)
response
.response
- client response.applyResponseFilters
- if the applyResponseFilters
is true
then response filters will be applied to the given response
.java.lang.NullPointerException
- in case of response
is null
.java.lang.IllegalStateException
- in case the method is invoked from HttpResponseFilter
.ProcessedHttpRequest getProcessedRequest()
ProcessedHttpRequest
instance that is currently being processed.Copyright © 2013, 2014, Oracle and/or its affiliates. All rights reserved.