public class PathSegmentImpl extends 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
|
Constructor and Description |
---|
PathSegmentImpl(String segment,
boolean decode) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.MultivaluedMap<String,String> |
getMatrixParameters() |
String |
getOriginal() |
String |
getPath() |
boolean |
hasMatrixParams()
NOTE: Used for optimization in ResteasyUriInfo
|
static List<javax.ws.rs.core.PathSegment> |
parseSegments(String path,
boolean decode) |
static PathSegmentImpl.SegmentParse |
parseSegmentsOptimization(String path,
boolean decode) |
String |
toString() |
public PathSegmentImpl(String segment, boolean decode)
segment
- encoded path segmentdecode
- whether or not to decode valuespublic boolean hasMatrixParams()
public String getOriginal()
public String getPath()
getPath
in interface javax.ws.rs.core.PathSegment
public javax.ws.rs.core.MultivaluedMap<String,String> getMatrixParameters()
getMatrixParameters
in interface javax.ws.rs.core.PathSegment
public static List<javax.ws.rs.core.PathSegment> parseSegments(String path, boolean decode)
public static PathSegmentImpl.SegmentParse parseSegmentsOptimization(String path, boolean decode)
path
- encoded full pathdecode
- whether or not to decode each segmentCopyright © 2015 JBoss by Red Hat. All rights reserved.