public class HttpInboundRequest extends Request implements InboundRequest
| Constructor and Description |
|---|
HttpInboundRequest(Context context,
Connection<Server> connection,
String methodName,
String resourceUri,
String protocol)
Constructor.
|
HttpInboundRequest(HttpInboundRequest request)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort()
Ask the connector to attempt to abort the related network connection, for
example immediately closing the socket.
|
static void |
addHeader(Request request,
String headerName,
String headerValue)
Adds a new header to the given request.
|
void |
commit(Response response)
Asks the server connector to immediately commit the given response
associated to this request, making it ready to be sent back to the
client.
|
void |
flushBuffers()
Asks the underlying connector to immediately flush the network buffers.
|
Set<String> |
getAccessControlRequestHeaders()
Returns the modifiable set of headers the client is willing to send in
future request to this resource.
|
Method |
getAccessControlRequestMethod()
Returns the method the client is willing to use in future request to this
resource.
|
List<CacheDirective> |
getCacheDirectives()
Returns the cache directives.
Note that when used with HTTP connectors, this property maps to the "Cache-Control" header. |
ChallengeResponse |
getChallengeResponse()
Returns the authentication response sent by a client to an origin server.
|
ClientInfo |
getClientInfo()
Returns the client-specific information.
|
Conditions |
getConditions()
Returns the condition data applying to this call.
|
Connection<Server> |
getConnection()
Returns the related connection.
|
Series<Cookie> |
getCookies()
Returns the cookies provided by the client.
|
Series<Header> |
getHeaders()
Returns the series of lower-level HTTP headers.
|
ChallengeResponse |
getProxyChallengeResponse()
Returns the authentication response sent by a client to a proxy.
|
List<Range> |
getRanges()
Returns the ranges to return from the target resource's representation.
|
List<RecipientInfo> |
getRecipientsInfo()
Returns the intermediary recipient information.
Note that when used with HTTP connectors, this property maps to the "Via" headers. |
Reference |
getReferrerRef()
Returns the referrer reference if available.
|
Principal |
getUserPrincipal()
Returns the associated user principal.
|
List<Warning> |
getWarnings()
Returns the additional warnings information.
Note that when used with HTTP connectors, this property maps to the "Warning" headers. |
void |
setAccessControlRequestHeaders(Set<String> accessControlRequestHeaders)
Sets the set of headers the client is willing to use in future request to
this resource.
|
void |
setAccessControlRequestMethod(Method accessControlRequestMethod)
Sets the method the client is willing to use in future request to this
resource.
|
void |
setChallengeResponse(ChallengeResponse response)
Sets the authentication response sent by a client to an origin server.
|
void |
setHeaders(Series<Header> headers)
Put the headers in the request's attributes map.
|
void |
setProxyChallengeResponse(ChallengeResponse response)
Sets the authentication response sent by a client to a proxy.
|
void |
setRecipientsInfo(List<RecipientInfo> recipientsInfo)
Sets the modifiable list of intermediary recipients.
|
void |
setWarnings(List<Warning> warnings)
Sets the additional warnings information.
|
getCurrent, getHostRef, getMaxForwards, getMethod, getOnResponse, getOriginalRef, getProtocol, getResourceRef, getRootRef, isAsynchronous, isConfidential, isEntityAvailable, isExpectingResponse, isLoggable, isSynchronous, setClientInfo, setConditions, setCookies, setHostRef, setHostRef, setLoggable, setMaxForwards, setMethod, setOnResponse, setOriginalRef, setProtocol, setRanges, setReferrerRef, setReferrerRef, setResourceRef, setResourceRef, setRootRef, toStringbufferEntity, getAttributes, getDate, getEntity, getEntityAsText, getOnError, getOnSent, release, setAttributes, setCacheDirectives, setDate, setEntity, setEntity, setOnError, setOnSentpublic HttpInboundRequest(Context context, Connection<Server> connection, String methodName, String resourceUri, String protocol)
context - The context of the parent connector.connection - The associated network connection.methodName - The protocol method name.resourceUri - The target resource URI.protocol - The protocol name and version.public HttpInboundRequest(HttpInboundRequest request)
request - The request to copy.public static void addHeader(Request request, String headerName, String headerValue)
request - The request to update.headerName - The header name to add.headerValue - The header value to add.public boolean abort()
Requestpublic void commit(Response response)
Requestpublic void flushBuffers()
MessageflushBuffers in class Messagepublic Set<String> getAccessControlRequestHeaders()
RequestgetAccessControlRequestHeaders in class Requestpublic Method getAccessControlRequestMethod()
RequestgetAccessControlRequestMethod in class Requestpublic List<CacheDirective> getCacheDirectives()
MessagegetCacheDirectives in class Messagepublic ChallengeResponse getChallengeResponse()
RequestgetChallengeResponse in class Requestpublic ClientInfo getClientInfo()
getClientInfo in class Requestpublic Conditions getConditions()
getConditions in class Requestpublic Connection<Server> getConnection()
getConnection in interface InboundRequestpublic Series<Cookie> getCookies()
getCookies in class Requestpublic Series<Header> getHeaders()
MessagegetHeaders in interface InboundRequestgetHeaders in class Messagepublic ChallengeResponse getProxyChallengeResponse()
RequestgetProxyChallengeResponse in class Requestpublic List<Range> getRanges()
Requestpublic List<RecipientInfo> getRecipientsInfo()
MessagegetRecipientsInfo in class Messagepublic Reference getReferrerRef()
getReferrerRef in class Requestpublic Principal getUserPrincipal()
public List<Warning> getWarnings()
MessagegetWarnings in class Messagepublic void setAccessControlRequestHeaders(Set<String> accessControlRequestHeaders)
RequestsetAccessControlRequestHeaders in class RequestaccessControlRequestHeaders - The set of headers the client is willing to send in future
request to this resource. Useful for CORS support.public void setAccessControlRequestMethod(Method accessControlRequestMethod)
RequestsetAccessControlRequestMethod in class RequestaccessControlRequestMethod - The method the client is willing to send in future request to
this resource. Useful for CORS support.public void setChallengeResponse(ChallengeResponse response)
RequestsetChallengeResponse in class Requestresponse - The authentication response sent by a client to an origin
server.public void setHeaders(Series<Header> headers)
InboundRequestsetHeaders in interface InboundRequestheaders - The headers.public void setProxyChallengeResponse(ChallengeResponse response)
RequestsetProxyChallengeResponse in class Requestresponse - The authentication response sent by a client to a proxy.public void setRecipientsInfo(List<RecipientInfo> recipientsInfo)
MessagesetRecipientsInfo in class MessagerecipientsInfo - A list of intermediary recipients.public void setWarnings(List<Warning> warnings)
MessagesetWarnings in class Messagewarnings - The warnings.Copyright © 2005–2015. All rights reserved.