Top Description Inners Fields Constructors Methods
org.apache.tomcat.websocket.server

public Class UriTemplate

extends Object
Class Inheritance
Imports
java.util.ArrayList, .HashMap, .HashSet, .Iterator, .List, .Map, .Set, jakarta.websocket.DeploymentException, org.apache.tomcat.util.res.StringManager

Extracts path parameters from URIs used to create web socket connections using the URI template defined for the associated Endpoint.

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 String
private final List<UriTemplate.Segment>
private static final StringManager

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public int
private List<UriTemplate.Segment>
public boolean
public Map<String, String>
match(UriTemplate candidate)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hasParametersback to summary
private final boolean hasParameters
normalizedback to summary
private final String normalized
segmentsback to summary
private final List<UriTemplate.Segment> segments
smback to summary
private static final StringManager sm

Constructor Detail

UriTemplateback to summary
public UriTemplate(String path) throws DeploymentException

Method Detail

getNormalizedPathback to summary
public String getNormalizedPath()
getSegmentCountback to summary
public int getSegmentCount()
getSegmentsback to summary
private List<UriTemplate.Segment> getSegments()
hasParametersback to summary
public boolean hasParameters()
matchback to summary
public Map<String, String> match(UriTemplate candidate)
org.apache.tomcat.websocket.server back to summary

private Class UriTemplate.Segment

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
Segment(int parameterIndex, String value)

Method Summary

Modifier and TypeMethod and Description
public int
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

parameterIndexback to summary
private final int parameterIndex
valueback to summary
private final String value

Constructor Detail

Segmentback to summary
pack-priv Segment(int parameterIndex, String value)

Method Detail

getParameterIndexback to summary
public int getParameterIndex()
getValueback to summary
public String getValue()