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

pack-priv Class ServletPathMatchesData

extends Object
Class Inheritance
Imports
io.undertow.UndertowMessages, io.undertow.util.SubstringMap, java.util.HashMap, .Map

Class that maintains the complete set of servlet path matches.
Author
Stuart Douglas

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
private static class

Field Summary

Modifier and TypeField and Description
private final Map<String, ServletPathMatch>
private final Map<String, ServletChain>
private final SubstringMap<ServletPathMatchesData.PathMatch>

Constructor Summary

AccessConstructor and Description
pack-priv
ServletPathMatchesData(final Map<String, ServletChain> exactPathMatches, final SubstringMap<ServletPathMatchesData.PathMatch> prefixMatches, final Map<String, ServletChain> nameMatches)

Method Summary

Modifier and TypeMethod and Description
public static ServletPathMatchesData.Builder
public ServletPathMatch
public ServletChain
public ServletPathMatch
private ServletPathMatch
handleMatch(final String path, final ServletPathMatchesData.PathMatch match, final int extensionPos)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

exactPathMatchesback to summary
private final Map<String, ServletPathMatch> exactPathMatches
nameMatchesback to summary
private final Map<String, ServletChain> nameMatches
prefixMatchesback to summary
private final SubstringMap<ServletPathMatchesData.PathMatch> prefixMatches

Constructor Detail

ServletPathMatchesDataback to summary
pack-priv ServletPathMatchesData(final Map<String, ServletChain> exactPathMatches, final SubstringMap<ServletPathMatchesData.PathMatch> prefixMatches, final Map<String, ServletChain> nameMatches)

Method Detail

builderback to summary
public static ServletPathMatchesData.Builder builder()
getServletHandlerByExactPathback to summary
public ServletPathMatch getServletHandlerByExactPath(final String path)
getServletHandlerByNameback to summary
public ServletChain getServletHandlerByName(final String name)
getServletHandlerByPathback to summary
public ServletPathMatch getServletHandlerByPath(final String path)
handleMatchback to summary
private ServletPathMatch handleMatch(final String path, final ServletPathMatchesData.PathMatch match, final int extensionPos)
io.undertow.servlet.handlers back to summary

public final Class ServletPathMatchesData.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Map<String, ServletChain>
private final Map<String, ServletChain>
private final SubstringMap<ServletPathMatchesData.PathMatch>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addExactMatch(final String exactMatch, final ServletChain match)

public void
addExtensionMatch(final String prefix, final String extension, final ServletChain match)

public void
addNameMatch(final String name, final ServletChain match)

public void
addPrefixMatch(final String prefix, final ServletChain match, final boolean requireWelcomeFileMatch)

public ServletPathMatchesData
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

exactPathMatchesback to summary
private final Map<String, ServletChain> exactPathMatches
nameMatchesback to summary
private final Map<String, ServletChain> nameMatches
prefixMatchesback to summary
private final SubstringMap<ServletPathMatchesData.PathMatch> prefixMatches

Constructor Detail

Builderback to summary
public Builder()

Method Detail

addExactMatchback to summary
public void addExactMatch(final String exactMatch, final ServletChain match)
addExtensionMatchback to summary
public void addExtensionMatch(final String prefix, final String extension, final ServletChain match)
addNameMatchback to summary
public void addNameMatch(final String name, final ServletChain match)
addPrefixMatchback to summary
public void addPrefixMatch(final String prefix, final ServletChain match, final boolean requireWelcomeFileMatch)
buildback to summary
public ServletPathMatchesData build()
io.undertow.servlet.handlers back to summary

private Class ServletPathMatchesData.PathMatch

extends Object
Class Inheritance
  • java.lang.Object
  • io.undertow.servlet.handlers.ServletPathMatchesData.PathMatch

Field Summary

Modifier and TypeField and Description
private volatile ServletChain
private final Map<String, ServletChain>
private volatile boolean

Constructor Summary

AccessConstructor and Description
pack-priv
PathMatch(final ServletChain defaultHandler)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultHandlerback to summary
private volatile ServletChain defaultHandler
extensionMatchesback to summary
private final Map<String, ServletChain> extensionMatches
requireWelcomeFileMatchback to summary
private volatile boolean requireWelcomeFileMatch

Constructor Detail

PathMatchback to summary
pack-priv PathMatch(final ServletChain defaultHandler)