Top Inners Fields Constructors Methods
io.undertow.servlet.handlers

public Class FilterHandler

extends Object
implements HttpHandler
Class Inheritance
All Implemented Interfaces
io.undertow.server.HttpHandler
Imports
java.io.IOException, java.util.EnumMap, .List, .Map, jakarta.servlet.DispatcherType, .FilterChain, .ServletException, .ServletRequest, .ServletRequestWrapper, .ServletResponse, .ServletResponseWrapper, io.undertow.server.HttpHandler, .HttpServerExchange, io.undertow.servlet.UndertowServletMessages, io.undertow.servlet.core.ManagedFilter

Author
Stuart Douglas

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final boolean
private final Map<DispatcherType, Boolean>
private final Map<DispatcherType, List<ManagedFilter>>
private final HttpHandler

Constructor Summary

AccessConstructor and Description
public
FilterHandler(final Map<DispatcherType, List<ManagedFilter>> filters, final boolean allowNonStandardWrappers, final HttpHandler next)

Method Summary

Modifier and TypeMethod and Description
public void
handleRequest(final HttpServerExchange
the HTTP request/response exchange
exchange
)

Implements io.undertow.server.HttpHandler.handleRequest.

Handle the request.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allowNonStandardWrappersback to summary
private final boolean allowNonStandardWrappers
asyncSupportedback to summary
private final Map<DispatcherType, Boolean> asyncSupported
filtersback to summary
private final Map<DispatcherType, List<ManagedFilter>> filters
nextback to summary
private final HttpHandler next

Constructor Detail

FilterHandlerback to summary
public FilterHandler(final Map<DispatcherType, List<ManagedFilter>> filters, final boolean allowNonStandardWrappers, final HttpHandler next)

Method Detail

handleRequestback to summary
public void handleRequest(final HttpServerExchange exchange) throws Exception

Implements io.undertow.server.HttpHandler.handleRequest.

Doc from io.undertow.server.HttpHandler.handleRequest.

Handle the request.

Parameters
exchange:HttpServerExchange

the HTTP request/response exchange

Annotations
@Override
io.undertow.servlet.handlers back to summary

private Class FilterHandler.FilterChainImpl

extends Object
implements FilterChain
Class Inheritance
All Implemented Interfaces
jakarta.servlet.FilterChain

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
pack-priv final HttpServerExchange
pack-priv final List<ManagedFilter>
pack-priv int
pack-priv final HttpHandler

Constructor Summary

AccessConstructor and Description
private
FilterChainImpl(final HttpServerExchange exchange, final List<ManagedFilter> filters, final HttpHandler next, final boolean allowNonStandardWrappers)

Method Summary

Modifier and TypeMethod and Description
public void
doFilter(final ServletRequest
the request to pass along the chain.
request
,
final ServletResponse
the response to pass along the chain.
response
)

Implements jakarta.servlet.FilterChain.doFilter.

Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allowNonStandardWrappersback to summary
pack-priv final boolean allowNonStandardWrappers
exchangeback to summary
pack-priv final HttpServerExchange exchange
filtersback to summary
pack-priv final List<ManagedFilter> filters
locationback to summary
pack-priv int location
nextback to summary
pack-priv final HttpHandler next

Constructor Detail

FilterChainImplback to summary
private FilterChainImpl(final HttpServerExchange exchange, final List<ManagedFilter> filters, final HttpHandler next, final boolean allowNonStandardWrappers)

Method Detail

doFilterback to summary
public void doFilter(final ServletRequest request, final ServletResponse response) throws IOException, ServletException

Implements jakarta.servlet.FilterChain.doFilter.

Doc from jakarta.servlet.FilterChain.doFilter.

Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked.

Parameters
request:ServletRequest

the request to pass along the chain.

response:ServletResponse

the response to pass along the chain.

Annotations
@Override
Exceptions
IOException:
if an I/O related error has occurred during the processing
ServletException:
if an exception has occurred that interferes with the filterChain's normal operation