| Modifier and Type | Method and Description |
|---|---|
static HttpHandler |
Handlers.predicateContext(HttpHandler next) |
static HttpHandler |
Handlers.rewrite(String condition,
String target,
ClassLoader classLoader,
HttpHandler next)
Creates the set of handlers that are required to perform a simple rewrite.
|
static HttpHandler |
Handlers.urlDecodingHandler(String charset,
HttpHandler next)
Returns a new handler that decodes the URL and query parameters into the specified charset, assuming it
has not already been done by the connector.
|
| Modifier and Type | Method and Description |
|---|---|
static DateHandler |
Handlers.date(HttpHandler next)
Returns a new HTTP handler that sets the Date: header.
|
static void |
Handlers.handlerNotNull(HttpHandler handler) |
static SetHeaderHandler |
Handlers.header(HttpHandler next,
String headerName,
String headerValue)
Returns a handler that sets a response header
|
static HttpContinueReadHandler |
Handlers.httpContinueRead(HttpHandler next)
A handler that automatically handles HTTP 100-continue responses, by sending a continue
response when the first attempt is made to read from the request channel.
|
static IPAddressAccessControlHandler |
Handlers.ipAccessControl(HttpHandler next,
boolean defaultAllow)
Returns a new handler that can allow or deny access to a resource based on IP address
|
static PathHandler |
Handlers.path(HttpHandler defaultHandler)
Creates a new path handler, with the default handler specified
|
static PredicateHandler |
Handlers.predicate(Predicate predicate,
HttpHandler trueHandler,
HttpHandler falseHandler)
Returns a new predicate handler, that will delegate to one of the two provided handlers based on the value of the
provided predicate.
|
static HttpHandler |
Handlers.predicateContext(HttpHandler next) |
static PredicatesHandler |
Handlers.predicates(List<PredicatedHandler> handlers,
HttpHandler next) |
static HttpHandler |
Handlers.rewrite(String condition,
String target,
ClassLoader classLoader,
HttpHandler next)
Creates the set of handlers that are required to perform a simple rewrite.
|
static SetAttributeHandler |
Handlers.setAttribute(HttpHandler next,
String attribute,
String value,
ClassLoader classLoader)
Returns an attribute setting handler that can be used to set an arbitrary attribute on the exchange.
|
Undertow.Builder |
Undertow.Builder.setHandler(HttpHandler handler) |
static HttpTraceHandler |
Handlers.trace(HttpHandler next)
Returns a new HTTP trace handler.
|
static URLDecodingHandler |
Handlers.urlDecoding(HttpHandler next,
String charset)
A handler that will decode the URL, query parameters and to the specified charset.
|
static HttpHandler |
Handlers.urlDecodingHandler(String charset,
HttpHandler next)
Returns a new handler that decodes the URL and query parameters into the specified charset, assuming it
has not already been done by the connector.
|
static NameVirtualHostHandler |
Handlers.virtualHost(HttpHandler defaultHandler)
Creates a new virtual host handler using the provided default handler
|
static NameVirtualHostHandler |
Handlers.virtualHost(HttpHandler defaultHandler,
HttpHandler hostHandler,
String... hostnames)
Creates a new virtual host handler that uses the provided handler as the root handler for the given hostnames.
|
static NameVirtualHostHandler |
Handlers.virtualHost(HttpHandler hostHandler,
String... hostnames)
Creates a new virtual host handler that uses the provided handler as the root handler for the given hostnames.
|
static WebSocketProtocolHandshakeHandler |
Handlers.websocket(WebSocketConnectionCallback sessionHandler,
HttpHandler next) |
| Modifier and Type | Class and Description |
|---|---|
class |
PredicatesHandler
Handler that can deal with a large number of predicates.
|
| Constructor and Description |
|---|
PredicatesHandler(HttpHandler next) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractConfidentialityHandler
Handler responsible for checking of confidentiality is required for the requested resource and if so rejecting the request
and redirecting to a secure address.
|
class |
AuthenticationCallHandler
This is the final
HttpHandler in the security chain, it's purpose is to act as a barrier at the end of the chain to
ensure authenticate is called after the mechanisms have been associated with the context and the constraint checked. |
class |
AuthenticationConstraintHandler
Handler responsible for checking the constraints for the current request and marking authentication as required if
applicable.
|
class |
AuthenticationMechanismsHandler
Authentication handler that adds one or more authentication
mechanisms to the security context
|
class |
NotificationReceiverHandler
A
HttpHandler to register a list of NotificationReceiver instances with the current SecurityContext. |
class |
SecurityInitialHandler
The security handler responsible for attaching the SecurityContext to the current
HttpServerExchange. |
class |
SinglePortConfidentialityHandler
An extension to
AbstractConfidentialityHandler that uses the Host header from the incomming message and specifies the
confidential address by just switching the port. |
| Modifier and Type | Method and Description |
|---|---|
HttpHandler |
AuthenticationMechanismsHandler.getNext() |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationMechanismsHandler |
AuthenticationMechanismsHandler.setNext(HttpHandler next) |
| Constructor and Description |
|---|
AbstractConfidentialityHandler(HttpHandler next) |
AuthenticationCallHandler(HttpHandler next) |
AuthenticationConstraintHandler(HttpHandler next) |
AuthenticationMechanismsHandler(HttpHandler next,
List<AuthenticationMechanism> authenticationMechanisms) |
NotificationReceiverHandler(HttpHandler next,
Collection<NotificationReceiver> receivers) |
SecurityInitialHandler(AuthenticationMode authenticationMode,
IdentityManager identityManager,
HttpHandler next) |
SecurityInitialHandler(AuthenticationMode authenticationMode,
IdentityManager identityManager,
String programaticMechName,
HttpHandler next) |
SinglePortConfidentialityHandler(HttpHandler next,
int redirectPort) |
| Modifier and Type | Field and Description |
|---|---|
protected HttpHandler |
AbstractServerConnection.rootHandler |
| Modifier and Type | Method and Description |
|---|---|
HttpHandler |
OpenListener.getRootHandler() |
HttpHandler |
AbstractServerConnection.getRootHandler()
Get the root HTTP handler for this connection.
|
HttpHandler |
HandlerWrapper.wrap(HttpHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
HttpServerExchange.dispatch(Executor executor,
HttpHandler handler) |
void |
HttpServerExchange.dispatch(HttpHandler handler) |
static void |
Connectors.executeRootHandler(HttpHandler handler,
HttpServerExchange exchange) |
void |
OpenListener.setRootHandler(HttpHandler rootHandler) |
HttpHandler |
HandlerWrapper.wrap(HttpHandler handler) |
| Constructor and Description |
|---|
AbstractServerConnection(org.xnio.StreamConnection channel,
org.xnio.Pool<ByteBuffer> bufferPool,
HttpHandler rootHandler,
org.xnio.OptionMap undertowOptions,
int bufferSize) |
| Modifier and Type | Class and Description |
|---|---|
class |
AllowedMethodsHandler
Handler that whitelists certain HTTP methods.
|
class |
AttachmentHandler<T>
Handler that adds an attachment to the request
|
class |
BlockingHandler
A
HttpHandler that initiates a blocking request. |
class |
CanonicalPathHandler |
class |
ChannelUpgradeHandler
An HTTP request handler which upgrades the HTTP request and hands it off as a socket to any XNIO consumer.
|
class |
DateHandler
Class that adds the Date: header to a HTTP response.
|
class |
DisallowedMethodsHandler
Handler that blacklists certain HTTP methods.
|
class |
HttpContinueAcceptingHandler
Handler that provides support for HTTP/1.1 continue responses.
|
class |
HttpContinueReadHandler
Handler for requests that require 100-continue responses.
|
class |
HttpTraceHandler
A handler that handles HTTP trace requests
|
class |
IPAddressAccessControlHandler
Handler that can accept or reject a request based on the IP address of the remote peer.
|
class |
JDBCLogHandler |
class |
MetricsHandler
Handler that records some metrics
|
class |
NameVirtualHostHandler
A
HttpHandler that implements virtual hosts based on the Host: http header
header. |
class |
OriginHandler
A handler for the HTTP Origin header.
|
class |
PathHandler
Handler that dispatches to a given handler based of a prefix match of the path.
|
class |
PeerNameResolvingHandler
A handler that performs reverse DNS lookup to resolve a peer address
|
class |
PredicateContextHandler
Handler that sets up the predicate context
|
class |
PredicateHandler |
class |
ProxyPeerAddressHandler
Handler that sets the peer address to the value of the X-Forwarded-For header.
|
class |
RedirectHandler
A redirect handler that redirects to the specifed location via a 302 redirect.
|
class |
RequestDumplingHandler
Handler that dumps a exchange to a log.
|
class |
RequestLimitingHandler
A handler which limits the maximum number of concurrent requests.
|
class |
ResponseCodeHandler
A handler which simply sets a response code.
|
class |
SetAttributeHandler
Handler that can set an arbitrary attribute on the exchange.
|
class |
SetHeaderHandler |
class |
SSLHeaderHandler
Handler that sets SSL information on the connection based on the following headers:
SSL_CLIENT_CERT
SSL_CIPHER
SSL_SESSION_ID
If this handler is present in the chain it will always override the SSL session information,
even if these headers are not present.
|
class |
URLDecodingHandler
A handler that will decode the URL and query parameters to the specified charset.
|
| Modifier and Type | Method and Description |
|---|---|
HttpHandler |
NameVirtualHostHandler.getDefaultHandler() |
HttpHandler |
PredicateHandler.getFalseHandler() |
HttpHandler |
BlockingHandler.getHandler() |
HttpHandler |
OriginHandler.getNext() |
HttpHandler |
IPAddressAccessControlHandler.getNext() |
HttpHandler |
HttpContinueAcceptingHandler.getNext() |
HttpHandler |
CanonicalPathHandler.getNext() |
HttpHandler |
AttachmentHandler.getNext() |
HttpHandler |
RequestLimitingHandler.getNextHandler()
Get the next handler.
|
HttpHandler |
ChannelUpgradeHandler.getNonUpgradeHandler()
Get the non-upgrade delegate handler.
|
HttpHandler |
OriginHandler.getOriginFailedHandler() |
HttpHandler |
PredicateHandler.getTrueHandler() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,HttpHandler> |
NameVirtualHostHandler.getHosts() |
Map<String,HttpHandler> |
PathHandler.getPaths() |
| Modifier and Type | Method and Description |
|---|---|
NameVirtualHostHandler |
NameVirtualHostHandler.addHost(String host,
HttpHandler handler) |
PathHandler |
PathHandler.addPath(String path,
HttpHandler handler)
Adds a path and a handler for that path.
|
NameVirtualHostHandler |
NameVirtualHostHandler.setDefaultHandler(HttpHandler defaultHandler) |
PredicateHandler |
PredicateHandler.setFalseHandler(HttpHandler falseHandler) |
OriginHandler |
OriginHandler.setNext(HttpHandler next) |
IPAddressAccessControlHandler |
IPAddressAccessControlHandler.setNext(HttpHandler next) |
HttpContinueAcceptingHandler |
HttpContinueAcceptingHandler.setNext(HttpHandler next) |
CanonicalPathHandler |
CanonicalPathHandler.setNext(HttpHandler next) |
void |
AttachmentHandler.setNext(HttpHandler next) |
RequestLimitingHandler |
RequestLimitingHandler.setNextHandler(HttpHandler nextHandler)
Set the next handler.
|
ChannelUpgradeHandler |
ChannelUpgradeHandler.setNonUpgradeHandler(HttpHandler nonUpgradeHandler)
Set the non-upgrade delegate handler.
|
OriginHandler |
OriginHandler.setOriginFailedHandler(HttpHandler originFailedHandler) |
BlockingHandler |
BlockingHandler.setRootHandler(HttpHandler rootHandler) |
PredicateHandler |
PredicateHandler.setTrueHandler(HttpHandler trueHandler) |
| Modifier and Type | Class and Description |
|---|---|
class |
AccessLogHandler
Access log handler.
|
| Constructor and Description |
|---|
AccessLogHandler(HttpHandler next,
AccessLogReceiver accessLogReceiver,
String formatString,
ClassLoader classLoader) |
| Modifier and Type | Class and Description |
|---|---|
class |
CacheHandler
Handler that attaches a cache to the exchange, a handler can query this cache to see if the
cache has a cached copy of the content, and if so have the cache serve this content automatically.
|
| Modifier and Type | Method and Description |
|---|---|
HttpHandler |
CacheHandler.getNext() |
| Modifier and Type | Method and Description |
|---|---|
CacheHandler |
CacheHandler.setNext(HttpHandler next) |
| Constructor and Description |
|---|
CacheHandler(DirectBufferCache cache,
HttpHandler next) |
| Modifier and Type | Class and Description |
|---|---|
class |
EncodingHandler
Handler that serves as the basis for content encoding implementations.
|
| Modifier and Type | Method and Description |
|---|---|
HttpHandler |
EncodingHandler.getNext() |
HttpHandler |
EncodingHandler.getNoEncodingHandler() |
| Modifier and Type | Method and Description |
|---|---|
EncodingHandler |
EncodingHandler.setNext(HttpHandler next) |
EncodingHandler |
EncodingHandler.setNoEncodingHandler(HttpHandler noEncodingHandler) |
| Constructor and Description |
|---|
EncodingHandler(HttpHandler next,
ContentEncodingRepository contentEncodingRepository) |
| Modifier and Type | Class and Description |
|---|---|
class |
FileErrorPageHandler
Handler that serves up a file from disk to serve as an error page.
|
class |
SimpleErrorPageHandler
Handler that generates an extremely simple no frills error page
|
| Modifier and Type | Method and Description |
|---|---|
HttpHandler |
SimpleErrorPageHandler.getNext() |
HttpHandler |
FileErrorPageHandler.getNext() |
| Modifier and Type | Method and Description |
|---|---|
SimpleErrorPageHandler |
SimpleErrorPageHandler.setNext(HttpHandler next) |
FileErrorPageHandler |
FileErrorPageHandler.setNext(HttpHandler next) |
| Constructor and Description |
|---|
SimpleErrorPageHandler(HttpHandler next) |
| Modifier and Type | Class and Description |
|---|---|
class |
EagerFormParsingHandler
Handler that eagerly parses form data.
|
| Modifier and Type | Method and Description |
|---|---|
HttpHandler |
EagerFormParsingHandler.getNext() |
| Modifier and Type | Method and Description |
|---|---|
void |
FormDataParser.parse(HttpHandler next)
Parse the form data asynchronously.
|
EagerFormParsingHandler |
EagerFormParsingHandler.setNext(HttpHandler next) |
| Modifier and Type | Class and Description |
|---|---|
class |
ProxyHandler
An HTTP handler which proxies content to a remote server.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ResourceHandler |
| Modifier and Type | Method and Description |
|---|---|
HttpHandler |
AjpOpenListener.getRootHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
AjpOpenListener.setRootHandler(HttpHandler rootHandler) |
| Constructor and Description |
|---|
AjpServerConnection(org.xnio.StreamConnection channel,
org.xnio.Pool<ByteBuffer> bufferPool,
HttpHandler rootHandler,
org.xnio.OptionMap undertowOptions,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
HttpHandler |
HttpOpenListener.getRootHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
HttpOpenListener.setRootHandler(HttpHandler rootHandler) |
| Constructor and Description |
|---|
HttpServerConnection(org.xnio.StreamConnection channel,
org.xnio.Pool<ByteBuffer> bufferPool,
HttpHandler rootHandler,
org.xnio.OptionMap undertowOptions,
int bufferSize) |
| Modifier and Type | Class and Description |
|---|---|
class |
SessionAttachmentHandler
Handler that attaches the session to the request.
|
| Modifier and Type | Method and Description |
|---|---|
HttpHandler |
SessionAttachmentHandler.getNext() |
| Modifier and Type | Method and Description |
|---|---|
SessionAttachmentHandler |
SessionAttachmentHandler.setNext(HttpHandler next) |
| Constructor and Description |
|---|
SessionAttachmentHandler(HttpHandler next,
SessionManager sessionManager,
SessionConfig sessionConfig) |
| Modifier and Type | Class and Description |
|---|---|
class |
WebSocketProtocolHandshakeHandler
HttpHandler which will process the HttpServerExchange and do the actual handshake/upgrade
to WebSocket. |
| Constructor and Description |
|---|
WebSocketProtocolHandshakeHandler(Collection<Handshake> handshakes,
WebSocketConnectionCallback callback,
HttpHandler next)
Create a new
WebSocketProtocolHandshakeHandler |
WebSocketProtocolHandshakeHandler(WebSocketConnectionCallback callback,
HttpHandler next)
Create a new
WebSocketProtocolHandshakeHandler |
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.