public class PathSegmentImpl
extends java.lang.Object
implements javax.ws.rs.core.PathSegment
| Modifier and Type | Class and Description |
|---|---|
static class |
PathSegmentImpl.SegmentParse
Used when creating the matching path in ResteasyUriInfo
|
| Modifier and Type | Field and Description |
|---|---|
private boolean |
hasMatrixParams |
private javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
matrixParameters |
private java.lang.String |
original |
private java.lang.String |
path |
| Constructor and Description |
|---|
PathSegmentImpl(java.lang.String segment,
boolean decode) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
getMatrixParameters() |
java.lang.String |
getOriginal() |
java.lang.String |
getPath() |
boolean |
hasMatrixParams()
NOTE: Used for optimization in ResteasyUriInfo
|
static java.util.List<javax.ws.rs.core.PathSegment> |
parseSegments(java.lang.String path,
boolean decode) |
static PathSegmentImpl.SegmentParse |
parseSegmentsOptimization(java.lang.String path,
boolean decode) |
java.lang.String |
toString() |
private java.lang.String path
private java.lang.String original
private javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> matrixParameters
private boolean hasMatrixParams
public PathSegmentImpl(java.lang.String segment,
boolean decode)
segment - encoded path segmentdecode - whether or not to decode valuespublic boolean hasMatrixParams()
public java.lang.String getOriginal()
public java.lang.String getPath()
getPath in interface javax.ws.rs.core.PathSegmentpublic javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getMatrixParameters()
getMatrixParameters in interface javax.ws.rs.core.PathSegmentpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.util.List<javax.ws.rs.core.PathSegment> parseSegments(java.lang.String path,
boolean decode)
public static PathSegmentImpl.SegmentParse parseSegmentsOptimization(java.lang.String path, boolean decode)
path - encoded full pathdecode - whether or not to decode each segment