| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private class | HttpServerExchange.
Channel implementation that is actually provided to clients of the exchange. |
| public static class | |
| public static class | |
| private class | HttpServerExchange.
Channel implementation that is actually provided to clients of the exchange. |
| Modifier and Type | Field and Description |
|---|---|
| private BlockingHttpExchange | |
| pack-priv static final AttachmentKey | BUFFERED_REQUEST_DATA
The attachment key that buffered request data is attached under. |
| private final ServerConnection | |
| private DefaultResponseListener[] | |
| private Map | |
| private Map | |
| private InetSocketAddress | destinationAddress
The destination address for the request. |
| private Executor | dispatchExecutor
The executor that is to be used to dispatch the |
| private Runnable | dispatchTask
When the call stack return this task will be executed by the executor specified in |
| private ExchangeCompletionListener[] | |
| private int | |
| private static final int | FLAG_DISPATCHED
If this flag is set it means that the request has been dispatched, and will not be ending when the call stack returns. |
| private static final int | FLAG_IN_CALL
If this flag is set then the request is current running through a handler chain. |
| private static final int | FLAG_PERSISTENT
Flag that is set if this is a persistent connection, and the connection should be re-used. |
| private static final int | FLAG_REQUEST_RESET
Flag that indicates that the request channel has been reset, and |
| private static final int | FLAG_REQUEST_TERMINATED
Flag that is set once the request has been fully read. |
| private static final int | FLAG_RESPONSE_SENT
Flag that is set when the response sending begins |
| private static final int | FLAG_RESPONSE_TERMINATED
Flag that is sent when the response has been fully written and flushed. |
| private static final int | FLAG_SHOULD_RESUME_READS
Flag that indicates that reads should be resumed when the call stack returns. |
| private static final int | FLAG_SHOULD_RESUME_WRITES
Flag that indicates that writes should be resumed when the call stack returns |
| private static final int | FLAG_URI_CONTAINS_HOST
Flag that is set if the |
| private static final String | |
| private static final String | |
| private static final Logger | |
| private static final int | |
| private long | maxEntitySize
The maximum entity size. |
| private Map | |
| private HttpString | |
| private Map | |
| private String | queryString
the query string |
| private static final AttachmentKey | REASON_PHRASE
The HTTP reason phrase to send. |
| private Receiver | |
| private String | relativePath
The remaining unresolved portion of request path. |
| public static final AttachmentKey | REMOTE_USER
Attachment key that can be used to hold a remotely authenticated user |
| public static final AttachmentKey | REQUEST_ATTRIBUTES
Attachment key that can be used to hold additional request attributes |
| private static final AtomicLong | |
| protected HttpServerExchange. | requestChannel
The actual request channel. |
| private DelegatingIterable | |
| private final HeaderMap | |
| private final String | |
| private HttpString | |
| private String | requestPath
The request path. |
| private String | |
| private long | |
| private String | requestURI
The original request URI. |
| private int | |
| private ConduitWrapper | |
| private String | resolvedPath
The resolved part of the canonical path. |
| private long | responseBytesSent
The number of bytes that have been sent to the remote client. |
| private HttpServerExchange. | responseChannel
The actual response channel. |
| private DelegatingIterable | |
| private final HeaderMap | |
| private int | |
| private ConduitWrapper | |
| public static final AttachmentKey | SECURE_REQUEST
Attachment key that can be used as a flag of secure attribute |
| private SecurityContext | securityContext
The security context |
| private Sender | |
| private static final RuntimePermission | |
| private InetSocketAddress | sourceAddress
The source address for the request. |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | HttpServerExchange(final ServerConnection connection, final HeaderMap requestHeaders, final HeaderMap responseHeaders, long maxEntitySize)
|
| Modifier and Type | Method and Description |
|---|---|
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | addRequestWrapper(final ConduitWrapper<StreamSourceConduit>
the wrapper wrapper)Adds a |
| public void | addResponseCommitListener(final ResponseCommitListener
The response listener listener)Adds a listener that will be invoked on response commit |
| public HttpServerExchange | addResponseWrapper(final ConduitWrapper<StreamSinkConduit>
the wrapper wrapper)Adds a |
| private void | |
| public HttpServerExchange | Returns: this exchange
Deprecated
|
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | endExchange()
Ends the exchange by fully draining the request channel, and flushing the response channel. |
| private String | |
| public ServerConnection | |
| public InetSocketAddress | Returns: the destination address of the HTTP requestGet the destination address of the HTTP request. |
| public Executor | Returns: The current dispatch executorGets the current executor that is used for dispatch operations. |
| pack-priv Runnable | |
| public String | Returns: The host and port part of the destination addressReturn the host, and also the port if this request was sent to a non-standard port. |
| public String | Returns: The host part of the destination addressReturn the host that this request was sent to, in general this will be the value of the Host header, minus the port specifier. |
| public int | Returns: The port part of the destination addressReturn the port that this request was sent to. |
| public InputStream | |
| public XnioIoThread | |
| public long | |
| public OutputStream | |
| public Map | |
| public HttpString | |
| public Map | |
| public String | |
| public String | |
| public String | |
| public StreamSourceChannel | Returns: the channel for the inbound request, ornull if another party already acquired the channelGet the inbound request. |
| public String | |
| public long | |
| public Cookie | |
| public Map | Returns: A mutable map of request cookies
Deprecated
for removal since 2.2.0. use either
requestCookies() or getRequestCookie(String) or setRequestCookie(Cookie) methods instead
|
| public HeaderMap | |
| public String | |
| public HttpString | |
| public String | |
| public Receiver | |
| public String | |
| public long | Returns: The request start time using the JVM's high-resolution time source, in nanoseconds, or -1 if this was not recorded
|
| public String | |
| public String | |
| public String | |
| public long | |
| public StreamSinkChannel | Returns: the response channel, ornull if another party already acquired the channelGet the response channel. |
| public String | |
| public int | |
| public long | |
| public Map | Returns: A mutable map of response cookies
Deprecated
for removal since 2.2.0. use either
responseCookies() or setResponseCookie(Cookie) methods instead
|
| public HeaderMap | |
| public Sender | Returns: the response sender, ornull if another party already acquired the channel or the senderGet the response sender. |
| public SecurityContext | |
| public InetSocketAddress | Returns: the source address of the HTTP requestGet the source address of the HTTP request. |
| public int | |
| private void | |
| public boolean | Returns: true If this is a blocking HTTP server exchangeReturns true if |
| public boolean | isComplete()
Returns true if the completion handler for this exchange has been invoked, and the request is considered finished. |
| public boolean | |
| public boolean | Returns: true If the request URI contains the host part of the URIIf a request was submitted to the server with a full URI instead of just a path this will return true. |
| public boolean | |
| public boolean | |
| public boolean | |
| pack-priv boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if the request is completeReturns true if all data has been read from the request, or if there was not data. |
| public boolean | |
| public boolean | |
| public boolean | |
| pack-priv boolean | |
| public boolean | |
| public boolean | |
| public Iterable | Returns: A read-only enumeration of request cookiesReturns unmodifiable enumeration of request cookies. |
| pack-priv void | |
| public Iterable | Returns: A read-only enumeration of response cookiesReturns unmodifiable enumeration of response cookies. |
| pack-priv boolean | Returns: true if reads or writes were resumedActually resumes reads or writes, if the relevant method has been called. |
| public HttpServerExchange | setDestinationAddress(InetSocketAddress
The address destinationAddress)Sets the destination address of the HTTP request. |
| public HttpServerExchange | setDispatchExecutor(final Executor
The executor to use executor)Sets the executor that is used for dispatch operations where no executor is specified. |
| pack-priv HttpServerExchange | |
| public HttpServerExchange | setMaxEntitySize(final long
The max entity size maxEntitySize)Sets the max entity size for this exchange. |
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | |
| pack-priv HttpServerExchange | |
| public HttpServerExchange | |
| public HttpServerExchange | setRequestURI(final String
The new request URI requestURI, boolean If this is true the request URI contains the host part containsHost)Sets the request URI |
| public HttpServerExchange | |
| public HttpServerExchange | setResponseCode(final int
the new code statusCode)
Deprecated
Change the status code for this response. |
| public HttpServerExchange | |
| public HttpServerExchange | |
| public void | |
| public HttpServerExchange | setSourceAddress(InetSocketAddress
The address sourceAddress)Sets the source address of the HTTP request. |
| public HttpServerExchange | |
| public BlockingHttpExchange | Returns: The existing blocking exchange, if anyCalling this method puts the exchange in blocking mode, and creates a
|
| public BlockingHttpExchange | Returns: The existing blocking exchange, if anyCalling this method puts the exchange in blocking mode, using the given blocking exchange as the source of the streams. |
| pack-priv HttpServerExchange | |
| pack-priv void | |
| pack-priv HttpServerExchange | |
| public String | |
| public HttpServerExchange | |
| pack-priv void | updateBytesSent(long
The number of bytes to increase the response size by. May be negative bytes)Updates the number of response bytes sent. |
| public HttpServerExchange | |
| public HttpServerExchange | upgradeChannel(String
the product name to report to the client productName, final HttpUpgradeListener listener)Upgrade the channel to a raw socket. |