- async - blocking - servlet
This class provides a way to operate on the underling exchange while providing the correct semantics regardless of the underlying exchange type.
The main use case for this is web sockets. Web sockets should be able to perform a handshake regardless of the nature of the underlying request, while still respecting servlet filters, security etc.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public <T> T | |
| public ByteBufferPool | |
| public OptionMap | |
| public Set | |
| public String | |
| public String | Returns: The header value, or nullThe header name headerName)gets the first request header with the specified name |
| public Map | |
| public Map | |
| public String | |
| public String | |
| public String | Returns: The header value, or nullThe header name headerName)get a response header |
| public Map | |
| public Object | |
| public Principal | |
| public boolean | |
| public <T> void | |
| public IoFuture | |
| public IoFuture | |
| public void | setResponseHeader(final String
The header name headerName, final String The header value headerValue)Set a response header |
| public void | |
| public void |
| close | back to summary |
|---|---|
| public void close() Redeclares java. Forcibly close the exchange. | |
| endExchange | back to summary |
|---|---|
| public void endExchange() End the exchange normally. If this is a blocking exchange this may be a noop, and the exchange will actually end when the call stack returns | |
| getAttachment | back to summary |
|---|---|
| public <T> T getAttachment(final AttachmentKey<T> key) | |
| getBufferPool | back to summary |
|---|---|
public ByteBufferPool getBufferPool()
| |
| getOptions | back to summary |
|---|---|
| public OptionMap getOptions() | |
| getPeerConnections | back to summary |
|---|---|
| public Set | |
| getQueryString | back to summary |
|---|---|
public String getQueryString()
| |
| getRequestHeader | back to summary |
|---|---|
| public String getRequestHeader(final String headerName) gets the first request header with the specified name | |
| getRequestHeaders | back to summary |
|---|---|
| public Map | |
| getRequestParameters | back to summary |
|---|---|
| public Map | |
| getRequestScheme | back to summary |
|---|---|
| public String getRequestScheme() Get the request scheme, usually http or https
| |
| getRequestURI | back to summary |
|---|---|
public String getRequestURI()
| |
| getResponseHeader | back to summary |
|---|---|
| public String getResponseHeader(final String headerName) get a response header | |
| getResponseHeaders | back to summary |
|---|---|
| public Map | |
| getSession | back to summary |
|---|---|
| public Object getSession() Gets the session, if any
| |
| getUserPrincipal | back to summary |
|---|---|
| public Principal getUserPrincipal() | |
| isUserInRole | back to summary |
|---|---|
| public boolean isUserInRole(String role) | |
| putAttachment | back to summary |
|---|---|
| public <T> void putAttachment(final AttachmentKey<T> key, T value) | |
| readRequestData | back to summary |
|---|---|
| public IoFuture Gets the body of the request. | |
| sendData | back to summary |
|---|---|
| public IoFuture Send some data
| |
| setResponseHeader | back to summary |
|---|---|
| public void setResponseHeader(final String headerName, final String headerValue) Set a response header | |
| setResponseHeaders | back to summary |
|---|---|
| public void setResponseHeaders(final Map<String, List<String>> headers) Sets the response headers | |
| upgradeChannel | back to summary |
|---|---|
| public void upgradeChannel(final HttpUpgradeListener upgradeCallback) Upgrade the underlying channel | |