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

public Class RedirectDirHandler

extends Object
implements HttpHandler
Class Inheritance
All Implemented Interfaces
io.undertow.server.HttpHandler
Imports
io.undertow.server.HttpHandler, .HttpServerExchange, io.undertow.util.Headers, .Methods, .RedirectBuilder, .StatusCodes

Handler that redirects the directory requests without trailing slash to the one append trailing slash.
Author
Lin Gao

Field Summary

Modifier and TypeField and Description
private static final String
private final HttpHandler
private final ServletPathMatches

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements io.undertow.server.HttpHandler.handleRequest.

Handle the request.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

HTTP2_UPGRADE_PREFIXback to summary
private static final String HTTP2_UPGRADE_PREFIX
nextback to summary
private final HttpHandler next
pathsback to summary
private final ServletPathMatches paths

Constructor Detail

RedirectDirHandlerback to summary
public RedirectDirHandler(HttpHandler next, ServletPathMatches paths)

Method Detail

handleRequestback to summary
public void handleRequest(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