Uses of Interface
io.undertow.server.HttpHandler
Packages that use HttpHandler
Package
Description
-
Uses of HttpHandler in io.undertow
Methods in io.undertow that return HttpHandlerModifier and TypeMethodDescriptionstatic HttpHandlerHandlers.disableCache(HttpHandler next) Handler that sets the headers that disable caching of the responseUndertow.ListenerBuilder.getRootHandler()static HttpHandlerHandlers.predicateContext(HttpHandler next) static HttpHandlerHandlers.requestDump(HttpHandler next) Returns a handler that dumps requests to the log for debugging purposes.static HttpHandlerHandlers.rewrite(String condition, String target, ClassLoader classLoader, HttpHandler next) Creates the set of handlers that are required to perform a simple rewrite.static HttpHandlerHandlers.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.Methods in io.undertow with parameters of type HttpHandlerModifier and TypeMethodDescriptionstatic AccessControlListHandlerHandlers.acl(HttpHandler next, boolean defaultAllow, ExchangeAttribute attribute) Returns a new handler that can allow or deny access to a resource based an at attribute of the exchangestatic DateHandlerHandlers.date(HttpHandler next) Deprecated.static HttpHandlerHandlers.disableCache(HttpHandler next) Handler that sets the headers that disable caching of the responsestatic ExceptionHandlerHandlers.exceptionHandler(HttpHandler next) Returns a handler that maps exceptions to additional handlersstatic GracefulShutdownHandlerHandlers.gracefulShutdown(HttpHandler next) Returns a new handler that can be used to wait for all requests to finish before shutting down the server gracefully.static voidHandlers.handlerNotNull(HttpHandler handler) static SetHeaderHandlerHandlers.header(HttpHandler next, String headerName, ExchangeAttribute headerValue) Returns a handler that sets a response headerstatic SetHeaderHandlerHandlers.header(HttpHandler next, String headerName, String headerValue) Returns a handler that sets a response headerstatic HttpContinueReadHandlerHandlers.httpContinueRead(HttpHandler next) Deprecated.Handlers.ipAccessControl(HttpHandler next, boolean defaultAllow) Returns a new handler that can allow or deny access to a resource based on IP addressstatic JvmRouteHandlerHandlers.jvmRoute(String sessionCookieName, String jvmRoute, HttpHandler next) Handler that appends the JVM route to the session cookiestatic LearningPushHandlerHandlers.learningPushHandler(int maxEntries, int maxAge, HttpHandler next) Creates a handler that automatically learns which resources to push based on the referer headerstatic LearningPushHandlerHandlers.learningPushHandler(int maxEntries, HttpHandler next) Creates a handler that automatically learns which resources to push based on the referer headerstatic PathHandlerHandlers.path(HttpHandler defaultHandler) Creates a new path handler, with the default handler specifiedstatic PredicateHandlerHandlers.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 HttpHandlerHandlers.predicateContext(HttpHandler next) static PredicatesHandlerHandlers.predicates(List<PredicatedHandler> handlers, HttpHandler next) static ProxyPeerAddressHandlerHandlers.proxyPeerAddress(HttpHandler next) Returns a new handler that sets the peer address based on the X-Forwarded-For and X-Forwarded-Proto headerstatic HttpHandlerHandlers.requestDump(HttpHandler next) Returns a handler that dumps requests to the log for debugging purposes.static RequestLimitingHandlerHandlers.requestLimitingHandler(int maxRequest, int queueSize, HttpHandler next) Returns a handler that limits the maximum number of requests that can run at a time.static RequestLimitingHandlerHandlers.requestLimitingHandler(RequestLimit requestLimit, HttpHandler next) Returns a handler that limits the maximum number of requests that can run at a time.static ResponseRateLimitingHandlerHandlers.responseRateLimitingHandler(HttpHandler next, int bytes, long time, TimeUnit timeUnit) A handler that limits the download speed to a set number of bytes/periodstatic HttpHandlerHandlers.rewrite(String condition, String target, ClassLoader classLoader, HttpHandler next) Creates the set of handlers that are required to perform a simple rewrite.static SetAttributeHandlerHandlers.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.setHandler(HttpHandler handler) Undertow.ListenerBuilder.setRootHandler(HttpHandler rootHandler) static HttpTraceHandlerHandlers.trace(HttpHandler next) Returns a new HTTP trace handler.static URLDecodingHandlerHandlers.urlDecoding(HttpHandler next, String charset) A handler that will decode the URL, query parameters and to the specified charset.static HttpHandlerHandlers.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 NameVirtualHostHandlerHandlers.virtualHost(HttpHandler defaultHandler) Creates a new virtual host handler using the provided default handlerstatic NameVirtualHostHandlerHandlers.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 NameVirtualHostHandlerHandlers.virtualHost(HttpHandler hostHandler, String... hostnames) Creates a new virtual host handler that uses the provided handler as the root handler for the given hostnames. -
Uses of HttpHandler in io.undertow.predicate
Classes in io.undertow.predicate that implement HttpHandlerModifier and TypeClassDescriptionclassHandler that can deal with a large number of predicates.Methods in io.undertow.predicate that return HttpHandlerModifier and TypeMethodDescriptionPredicatesHandler.getNext()PredicatesHandler.Wrapper.wrap(HttpHandler handler) Methods in io.undertow.predicate with parameters of type HttpHandlerModifier and TypeMethodDescriptionvoidPredicatesHandler.setNext(HttpHandler next) PredicatesHandler.Wrapper.wrap(HttpHandler handler) Constructors in io.undertow.predicate with parameters of type HttpHandlerModifierConstructorDescriptionPredicatesHandler(HttpHandler next) PredicatesHandler(HttpHandler next, boolean outerHandler) -
Uses of HttpHandler in io.undertow.security.handlers
Classes in io.undertow.security.handlers that implement HttpHandlerModifier and TypeClassDescriptionclassHandler responsible for checking of confidentiality is required for the requested resource and if so rejecting the request and redirecting to a secure address.classBase class responsible for associating theSecurityContextinstance with the current request.classThis is the finalHttpHandlerin 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.classHandler responsible for checking the constraints for the current request and marking authentication as required if applicable.classAuthentication handler that adds one or more authentication mechanisms to the security contextclassHttpHandlerresponsible for setting up theAuthenticatedSessionManagerfor cached authentications and registering aNotificationReceiverto receive the security notifications.classAHttpHandlerto register a list ofNotificationReceiverinstances with the currentSecurityContext.classThe security handler responsible for attaching the SecurityContext to the currentHttpServerExchange.classAn extension toAbstractConfidentialityHandlerthat uses the Host header from the incoming message and specifies the confidential address by just switching the port.Methods in io.undertow.security.handlers that return HttpHandlerMethods in io.undertow.security.handlers with parameters of type HttpHandlerConstructors in io.undertow.security.handlers with parameters of type HttpHandlerModifierConstructorDescriptionprotectedprotectedAuthenticationMechanismsHandler(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, SecurityContextFactory contextFactory, HttpHandler next) SecurityInitialHandler(AuthenticationMode authenticationMode, IdentityManager identityManager, String programaticMechName, HttpHandler next) SinglePortConfidentialityHandler(HttpHandler next, int redirectPort) -
Uses of HttpHandler in io.undertow.server
Classes in io.undertow.server that implement HttpHandlerModifier and TypeClassDescriptionclassHandler that appends the JVM route to the session id.classA Handler that handles the common case of routing via path template and method name.Methods in io.undertow.server that return HttpHandlerModifier and TypeMethodDescriptionRoutingHandler.getFallbackHandler()RoutingHandler.getInvalidMethodHandler()OpenListener.getRootHandler()HandlerWrapper.wrap(HttpHandler handler) Methods in io.undertow.server with parameters of type HttpHandlerModifier and TypeMethodDescriptionRoutingHandler.add(String method, String template, Predicate predicate, HttpHandler handler) RoutingHandler.add(String method, String template, HttpHandler handler) RoutingHandler.delete(String template, Predicate predicate, HttpHandler handler) RoutingHandler.delete(String template, HttpHandler handler) HttpServerExchange.dispatch(HttpHandler handler) HttpServerExchange.dispatch(Executor executor, HttpHandler handler) static voidConnectors.executeRootHandler(HttpHandler handler, HttpServerExchange exchange) RoutingHandler.get(String template, Predicate predicate, HttpHandler handler) RoutingHandler.get(String template, HttpHandler handler) RoutingHandler.post(String template, Predicate predicate, HttpHandler handler) RoutingHandler.post(String template, HttpHandler handler) RoutingHandler.put(String template, Predicate predicate, HttpHandler handler) RoutingHandler.put(String template, HttpHandler handler) RoutingHandler.setFallbackHandler(HttpHandler fallbackHandler) RoutingHandler.setInvalidMethodHandler(HttpHandler invalidMethodHandler) Sets the handler called when this instance can not match the http method but can match another http method.voidOpenListener.setRootHandler(HttpHandler rootHandler) Sets the root handlerHandlerWrapper.wrap(HttpHandler handler) Constructors in io.undertow.server with parameters of type HttpHandlerModifierConstructorDescriptionDefaultExchangeHandler(HttpHandler handler) JvmRouteHandler(HttpHandler next, String sessionCookieName, String jvmRoute) -
Uses of HttpHandler in io.undertow.server.handlers
Classes in io.undertow.server.handlers that implement HttpHandlerModifier and TypeClassDescriptionclassHandler that can accept or reject a request based on an attribute of the remote peer todo: should we support non-regex values for performance reasons?classHandler that allows certain HTTP methods.classHandler that adds an attachment to the requestfinal classAHttpHandlerthat initiates a blocking request.classHandler for Range requests.classclassHandler that pushes resources based on a provided URLclassDeprecated.classHandler that disables response caching by browsers and proxies.classHandler that disallows certain HTTP methods.classHandler that dispatches to a given handler and allows mapping exceptions to be handled by additional handlers.classHandler that implements rfc7239 Forwarded headerclassHandler that allows for graceful server shutdown.classHandler that provides support for HTTP/1.1 continue responses.classDeprecated.classA handler that handles HTTP trace requestsclassHandler that can accept or reject a request based on the IP address of the remote peer.classclassHandler that builds up a cache of resources that a browsers requests, and uses server push to push them when supported.classA handler that performs DNS lookup to resolve a local address.classHandler that records some metricsclassAHttpHandlerthat implements virtual hosts based on theHost:http header header.classA handler for the HTTP Origin (RFC 6454) header.classHandler that dispatches to a given handler based of a prefix match of the path.classA handler that translates non slash separator characters in the URL into a slash.classA handler that matches URI templatesclassA handler that performs reverse DNS lookup to resolve a peer addressclassHandler that sets up the predicate contextclassclassHandler that sets the peer address to the value of the X-Forwarded-For header.classA redirect handler that redirects to the specified location via a 302 redirect.classHandler that dumps a exchange to a log.final classA handler which limits the maximum number of concurrent requests.final classA handler which simply sets a response code.classHandler that limits the download rateclassHandler that will set the SameSite flag to response cookiesclassHandler that will set the secure flag on all cookies that are received over a secure connectionclassHandler that can set an arbitrary attribute on the exchange.classSet a fixed response header.classHandler that sets SSL information on the connection based on the following headers:classA handler that buffers the full response and attaches it to the exchange.classThis valve allows to detect requests that take a long time to process, which might indicate that the thread that is processing it is stuck.classA handler that will decode the URL and query parameters to the specified charset.Methods in io.undertow.server.handlers that return HttpHandlerModifier and TypeMethodDescriptionNameVirtualHostHandler.getDefaultHandler()RequestLimit.getFailureHandler()PredicateHandler.getFalseHandler()BlockingHandler.getHandler()AccessControlListHandler.getNext()AttachmentHandler.getNext()CanonicalPathHandler.getNext()IPAddressAccessControlHandler.getNext()OriginHandler.getNext()OriginHandler.getOriginFailedHandler()PredicateHandler.getTrueHandler()ByteRangeHandler.Wrapper.wrap(HttpHandler handler) HttpContinueAcceptingHandler.Wrapper.wrap(HttpHandler handler) StuckThreadDetectionHandler.Wrapper.wrap(HttpHandler handler) Methods in io.undertow.server.handlers that return types with arguments of type HttpHandlerMethods in io.undertow.server.handlers with parameters of type HttpHandlerModifier and TypeMethodDescriptionPathTemplateHandler.add(String uriTemplate, HttpHandler handler) PathHandler.addExactPath(String path, HttpHandler handler) If the request path is exactly equal to the given path, run the handler.<T extends Throwable>
ExceptionHandlerExceptionHandler.addExceptionHandler(Class<T> clazz, HttpHandler handler) NameVirtualHostHandler.addHost(String host, HttpHandler handler) PathHandler.addPath(String path, HttpHandler handler) Deprecated.PathHandler.addPrefixPath(String path, HttpHandler handler) Adds a path prefix and a handler for that path.voidRequestLimit.handleRequest(HttpServerExchange exchange, HttpHandler next) NameVirtualHostHandler.setDefaultHandler(HttpHandler defaultHandler) voidRequestLimit.setFailureHandler(HttpHandler failureHandler) PredicateHandler.setFalseHandler(HttpHandler falseHandler) AccessControlListHandler.setNext(HttpHandler next) voidAttachmentHandler.setNext(HttpHandler next) CanonicalPathHandler.setNext(HttpHandler next) IPAddressAccessControlHandler.setNext(HttpHandler next) OriginHandler.setNext(HttpHandler next) OriginHandler.setOriginFailedHandler(HttpHandler originFailedHandler) BlockingHandler.setRootHandler(HttpHandler rootHandler) PredicateHandler.setTrueHandler(HttpHandler trueHandler) ByteRangeHandler.Wrapper.wrap(HttpHandler handler) HttpContinueAcceptingHandler.Wrapper.wrap(HttpHandler handler) StuckThreadDetectionHandler.Wrapper.wrap(HttpHandler handler) Constructors in io.undertow.server.handlers with parameters of type HttpHandlerModifierConstructorDescriptionAccessControlListHandler(HttpHandler next, ExchangeAttribute attribute) AllowedMethodsHandler(HttpHandler next, String... allowedMethods) AllowedMethodsHandler(HttpHandler next, Set<String> allowedMethods) AttachmentHandler(AttachmentKey<T> key, HttpHandler next) AttachmentHandler(AttachmentKey<T> key, HttpHandler next, T instance) BlockingHandler(HttpHandler handler) ByteRangeHandler(HttpHandler next, boolean sendAcceptRanges) DateHandler(HttpHandler next) Deprecated.DisallowedMethodsHandler(HttpHandler next, String... disallowedMethods) DisallowedMethodsHandler(HttpHandler next, Set<String> disallowedMethods) ExceptionHandler(HttpHandler handler) ForwardedHandler(HttpHandler next) HttpContinueAcceptingHandler(HttpHandler next, Predicate accept) HttpContinueReadHandler(HttpHandler handler) Deprecated.HttpTraceHandler(HttpHandler handler) IPAddressAccessControlHandler(HttpHandler next, int denyResponseCode) JDBCLogHandler(HttpHandler next, String formatString, DataSource dataSource) JDBCLogHandler(HttpHandler next, Executor logWriteExecutor, String formatString, DataSource dataSource) Deprecated.LearningPushHandler(int maxEntries, int maxAge, HttpHandler next) LocalNameResolvingHandler(HttpHandler next, LocalNameResolvingHandler.ResolveType resolveType) MetricsHandler(HttpHandler next) PathHandler(HttpHandler defaultHandler) PathHandler(HttpHandler defaultHandler, int cacheSize) PathTemplateHandler(HttpHandler next, boolean rewriteQueryParameters) PeerNameResolvingHandler(HttpHandler next, PeerNameResolvingHandler.ResolveType resolveType) PredicateHandler(Predicate predicate, HttpHandler trueHandler, HttpHandler falseHandler) RequestLimitingHandler(int maximumConcurrentRequests, int queueSize, HttpHandler nextHandler) Construct a new instance.RequestLimitingHandler(int maximumConcurrentRequests, HttpHandler nextHandler) Construct a new instance.RequestLimitingHandler(RequestLimit requestLimit, HttpHandler nextHandler) Construct a new instance.ResponseRateLimitingHandler(HttpHandler next, int bytes, long time, TimeUnit timeUnit) A handler that limits the download speed to a set number of bytes/periodSameSiteCookieHandler(HttpHandler next, String mode) SameSiteCookieHandler(HttpHandler next, String mode, String cookiePattern) SameSiteCookieHandler(HttpHandler next, String mode, String cookiePattern, boolean caseSensitive) SameSiteCookieHandler(HttpHandler next, String mode, String cookiePattern, boolean caseSensitive, boolean enableClientChecker, boolean addSecureForNone) SetAttributeHandler(HttpHandler next, ExchangeAttribute attribute, ExchangeAttribute value) SetAttributeHandler(HttpHandler next, ExchangeAttribute attribute, ExchangeAttribute value, boolean preCommit) SetAttributeHandler(HttpHandler next, String attribute, String value) SetAttributeHandler(HttpHandler next, String attribute, String value, boolean preCommit) SetAttributeHandler(HttpHandler next, String attribute, String value, ClassLoader classLoader) SetAttributeHandler(HttpHandler next, String attribute, String value, ClassLoader classLoader, boolean preCommit) SetHeaderHandler(HttpHandler next, String header, ExchangeAttribute value) SetHeaderHandler(HttpHandler next, String header, String value) SSLHeaderHandler(HttpHandler next) StuckThreadDetectionHandler(int threshold, HttpHandler next) URLDecodingHandler(HttpHandler next, String charset) -
Uses of HttpHandler in io.undertow.server.handlers.accesslog
Classes in io.undertow.server.handlers.accesslog that implement HttpHandlerConstructors in io.undertow.server.handlers.accesslog with parameters of type HttpHandlerModifierConstructorDescriptionAccessLogHandler(HttpHandler next, AccessLogReceiver accessLogReceiver, String formatString, ExchangeAttribute attribute) AccessLogHandler(HttpHandler next, AccessLogReceiver accessLogReceiver, String formatString, ExchangeAttribute attribute, Predicate predicate) AccessLogHandler(HttpHandler next, AccessLogReceiver accessLogReceiver, String formatString, ClassLoader classLoader) AccessLogHandler(HttpHandler next, AccessLogReceiver accessLogReceiver, String formatString, ClassLoader classLoader, Predicate predicate) -
Uses of HttpHandler in io.undertow.server.handlers.error
Classes in io.undertow.server.handlers.error that implement HttpHandlerModifier and TypeClassDescriptionclassHandler that generates an extremely simple no frills error pageMethods in io.undertow.server.handlers.error that return HttpHandlerMethods in io.undertow.server.handlers.error with parameters of type HttpHandlerConstructors in io.undertow.server.handlers.error with parameters of type HttpHandler -
Uses of HttpHandler in io.undertow.server.handlers.form
Classes in io.undertow.server.handlers.form that implement HttpHandlerModifier and TypeClassDescriptionclassHandler that eagerly parses form data.Methods in io.undertow.server.handlers.form that return HttpHandlerMethods in io.undertow.server.handlers.form with parameters of type HttpHandlerModifier and TypeMethodDescriptionvoidFormDataParser.parse(HttpHandler next) Parse the form data asynchronously.EagerFormParsingHandler.setNext(HttpHandler next) Constructors in io.undertow.server.handlers.form with parameters of type HttpHandler -
Uses of HttpHandler in io.undertow.server.handlers.resource
Classes in io.undertow.server.handlers.resource that implement HttpHandlerConstructors in io.undertow.server.handlers.resource with parameters of type HttpHandlerModifierConstructorDescriptionResourceHandler(ResourceManager resourceManager, HttpHandler next) ResourceHandler(ResourceSupplier resourceManager, HttpHandler next) -
Uses of HttpHandler in io.undertow.server.session
Classes in io.undertow.server.session that implement HttpHandlerModifier and TypeClassDescriptionclassHandler that attaches the session to the request.Methods in io.undertow.server.session that return HttpHandlerMethods in io.undertow.server.session with parameters of type HttpHandlerConstructors in io.undertow.server.session with parameters of type HttpHandlerModifierConstructorDescriptionSessionAttachmentHandler(HttpHandler next, SessionManager sessionManager, SessionConfig sessionConfig) -
Uses of HttpHandler in io.undertow.util
Methods in io.undertow.util that return HttpHandlerMethods in io.undertow.util with parameters of type HttpHandler
PathHandler.addPrefixPath(String, io.undertow.server.HttpHandler).