public class Exchange extends ExtensibleFieldMap
ExtensibleFieldMap
superclass.
The contract of an exchange is such that it is the responsibility of the caller of a
Handler
object to create and populate the request object,
and responsibility of the handler to create and populate the response object.
If an existing response object exists in the exchange and the handler intends to replace
it with another response object, it must first check to see if the existing response
object has an entity, and if it does, must call its close
method in order to signal
that the processing of the response from a remote server is complete.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
ClientInfo |
clientInfo
The info we can obtain from the client from this request.
|
Exchange |
exchange
Self-referential value to make this the root object in the exchange object model.
|
URI |
originalUri
The original message's URI, as received by the web container.
|
Principal |
principal
The principal associated with the request, or
null if unknown. |
Request |
request
The request portion of the HTTP exchange.
|
Response |
response
The response portion of the HTTP exchange.
|
Session |
session
Session context associated with the remote client.
|
Constructor and Description |
---|
Exchange()
Builds a new Exchange without any originalUri value (will be
null ). |
Exchange(URI originalUri)
Builds a new Exchange with the given originalUri value (can be
null ). |
clear, containsKey, entrySet, get, isEmpty, put, remove, size
clone, containsValue, equals, hashCode, keySet, putAll, toString, values
public Exchange exchange
public ClientInfo clientInfo
public final URI originalUri
public Exchange()
null
).Copyright © 2014 ForgeRock AS. All rights reserved.