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

public Class ServletPathMatch

extends Object
Class Inheritance
Imports
jakarta.servlet.http.MappingMatch

Author
Stuart Douglas

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final boolean
private final String
private final ServletChain
private final ServletPathMatch.Type

Constructor Summary

AccessConstructor and Description
public
ServletPathMatch(final ServletChain target, final String uri, boolean requiredWelcomeFileMatch)

public
ServletPathMatch(final ServletChain target, final String matched, final String remaining, final ServletPathMatch.Type type, final String rewriteLocation)

Method Summary

Modifier and TypeMethod and Description
public MappingMatch
public String
public String
public String
public String
public ServletChain
public ServletPathMatch.Type
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

matchedback to summary
private final String matched
remainingback to summary
private final String remaining
requiredWelcomeFileMatchback to summary
private final boolean requiredWelcomeFileMatch
rewriteLocationback to summary
private final String rewriteLocation
servletChainback to summary
private final ServletChain servletChain
typeback to summary
private final ServletPathMatch.Type type

Constructor Detail

ServletPathMatchback to summary
public ServletPathMatch(final ServletChain target, final String uri, boolean requiredWelcomeFileMatch)
ServletPathMatchback to summary
public ServletPathMatch(final ServletChain target, final String matched, final String remaining, final ServletPathMatch.Type type, final String rewriteLocation)

Method Detail

getMappingMatchback to summary
public MappingMatch getMappingMatch()
getMatchedback to summary
public String getMatched()
getMatchStringback to summary
public String getMatchString()
getRemainingback to summary
public String getRemaining()
getRewriteLocationback to summary
public String getRewriteLocation()
getServletChainback to summary
public ServletChain getServletChain()
getTypeback to summary
public ServletPathMatch.Type getType()
isRequiredWelcomeFileMatchback to summary
public boolean isRequiredWelcomeFileMatch()
io.undertow.servlet.handlers back to summary

public final Enum ServletPathMatch.Type

extends Enum<ServletPathMatch.Type>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ServletPathMatch.Type
NORMAL

A normal servlet match, the invocation should proceed as normal

public static final ServletPathMatch.Type
REDIRECT

A redirect is required, as the path does not end with a trailing slash

public static final ServletPathMatch.Type
REWRITE

An internal rewrite is required, because the path matched a welcome file.

Constructor Summary

AccessConstructor and Description
private
Type()

Method Summary

Modifier and TypeMethod and Description
public static ServletPathMatch.Type
public static ServletPathMatch.Type[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

NORMALback to summary
public static final ServletPathMatch.Type NORMAL

A normal servlet match, the invocation should proceed as normal

REDIRECTback to summary
public static final ServletPathMatch.Type REDIRECT

A redirect is required, as the path does not end with a trailing slash

REWRITEback to summary
public static final ServletPathMatch.Type REWRITE

An internal rewrite is required, because the path matched a welcome file. The provided match data is the match data after the rewrite.

Constructor Detail

Typeback to summary
private Type()

Method Detail

valueOfback to summary
public static ServletPathMatch.Type valueOf(String name)
valuesback to summary
public static ServletPathMatch.Type[] values()