Top Description Fields Constructors Methods
org.eclipse.jetty.http.pathmap

public Class MatchedResource<E>

extends Object
Class Inheritance
Type Parameters
<E>
the type of resource (IncludeExclude uses boolean, WebSocket uses endpoint/endpoint config, servlet uses ServletHolder, etc)
Imports
java.util.Map

The match details when using PathMappings#getMatched(String), used to minimize return to the PathSpec or PathMappings for subsequent details that are now provided by the MatchedPath instance.

Field Summary

Modifier and TypeField and Description
private final MatchedPath
private final PathSpec
private final E

Constructor Summary

AccessConstructor and Description
public
MatchedResource(E resource, PathSpec pathSpec, MatchedPath matchedPath)

Method Summary

Modifier and TypeMethod and Description
public MatchedPath
public String

Returns:

the path info portion of the match, or null if there is no portion after the getPathMatch()
getPathInfo
()

Return the portion of the path that is after the path spec.

public String

Returns:

the path name portion of the match.
getPathMatch
()

Return the portion of the path that matches a path spec.

public PathSpec
public E
public static <E> MatchedResource<E>
of(Map.Entry<PathSpec, E> mapping, MatchedPath matchedPath)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

matchedPathback to summary
private final MatchedPath matchedPath
pathSpecback to summary
private final PathSpec pathSpec
resourceback to summary
private final E resource

Constructor Detail

MatchedResourceback to summary
public MatchedResource(E resource, PathSpec pathSpec, MatchedPath matchedPath)

Method Detail

getMatchedPathback to summary
public MatchedPath getMatchedPath()
getPathInfoback to summary
public String getPathInfo()

Return the portion of the path that is after the path spec.

Returns:String

the path info portion of the match, or null if there is no portion after the getPathMatch()

getPathMatchback to summary
public String getPathMatch()

Return the portion of the path that matches a path spec.

Returns:String

the path name portion of the match.

getPathSpecback to summary
public PathSpec getPathSpec()
getResourceback to summary
public E getResource()
ofback to summary
public static <E> MatchedResource<E> of(Map.Entry<PathSpec, E> mapping, MatchedPath matchedPath)