HttpContext that provides convenience
setters for user assignable attributes and getter for readable attributes.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | CONNECTION_ENDPOINT
Attribute name of a |
| private final HttpContext | |
| public static final String | HTTP_REQUEST
Attribute name of a |
| public static final String | HTTP_RESPONSE
Attribute name of a |
| public static final String | SSL_SESSION
Attribute name of a |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpCoreContext | |
| public static HttpCoreContext | |
| public Object | getAttribute(final String
the attribute name. id)Implements org. |
| public <T> T | |
| public EndpointDetails | |
| public ProtocolVersion | getProtocolVersion()
Implements org. |
| public HttpRequest | |
| public HttpResponse | |
| public SSLSession | |
| public Object | removeAttribute(final String
the attribute name. id)Implements org. |
| public Object | setAttribute(final String
the attribute name. id, final Object the attribute value. obj)Implements org. |
| public void | setProtocolVersion(final ProtocolVersion version)
Implements org. |
| public String |
| CONNECTION_ENDPOINT | back to summary |
|---|---|
| public static final String CONNECTION_ENDPOINT Attribute name of a | |
| context | back to summary |
|---|---|
| private final HttpContext context | |
| HTTP_REQUEST | back to summary |
|---|---|
| public static final String HTTP_REQUEST Attribute name of a | |
| HTTP_RESPONSE | back to summary |
|---|---|
| public static final String HTTP_RESPONSE Attribute name of a | |
| SSL_SESSION | back to summary |
|---|---|
| public static final String SSL_SESSION Attribute name of a | |
| HttpCoreContext | back to summary |
|---|---|
| public HttpCoreContext(final HttpContext context) | |
| HttpCoreContext | back to summary |
|---|---|
| public HttpCoreContext() | |
| adapt | back to summary |
|---|---|
| public static HttpCoreContext adapt(final HttpContext context) | |
| create | back to summary |
|---|---|
| public static HttpCoreContext create() | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(final String id) Implements org. Doc from org. Obtains attribute with the given name. | |
| getAttribute | back to summary |
|---|---|
| public <T> T getAttribute(final String attribname, final Class<T> clazz) | |
| getEndpointDetails | back to summary |
|---|---|
public EndpointDetails getEndpointDetails()
| |
| getProtocolVersion | back to summary |
|---|---|
| public ProtocolVersion getProtocolVersion() Implements org. Doc from org. Returns protocol version used in this context.
| |
| getRequest | back to summary |
|---|---|
| public HttpRequest getRequest() | |
| getResponse | back to summary |
|---|---|
| public HttpResponse getResponse() | |
| getSSLSession | back to summary |
|---|---|
public SSLSession getSSLSession()
| |
| removeAttribute | back to summary |
|---|---|
| public Object removeAttribute(final String id) Implements org. Doc from org. Removes attribute with the given name from the context. | |
| setAttribute | back to summary |
|---|---|
| public Object setAttribute(final String id, final Object obj) Implements org. Doc from org. Sets value of the attribute with the given name. | |
| setProtocolVersion | back to summary |
|---|---|
| public void setProtocolVersion(final ProtocolVersion version) Implements org. Doc from org. Sets protocol version used in this context.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |