Package org.jboss.resteasy.specimpl
Class PathSegmentImpl
- java.lang.Object
-
- org.jboss.resteasy.specimpl.PathSegmentImpl
-
- All Implemented Interfaces:
javax.ws.rs.core.PathSegment
public class PathSegmentImpl extends java.lang.Object implements javax.ws.rs.core.PathSegment
- Version:
- $Revision: 1 $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PathSegmentImpl.SegmentParse
Used when creating the matching path in ResteasyUriInfo
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description PathSegmentImpl(java.lang.String segment, boolean decode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 ResteasyUriInfostatic 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()
-
-
-
Method Detail
-
hasMatrixParams
public boolean hasMatrixParams()
NOTE: Used for optimization in ResteasyUriInfo- Returns:
-
getOriginal
public java.lang.String getOriginal()
-
getPath
public java.lang.String getPath()
- Specified by:
getPath
in interfacejavax.ws.rs.core.PathSegment
-
getMatrixParameters
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getMatrixParameters()
- Specified by:
getMatrixParameters
in interfacejavax.ws.rs.core.PathSegment
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
parseSegments
public static java.util.List<javax.ws.rs.core.PathSegment> parseSegments(java.lang.String path, boolean decode)
-
parseSegmentsOptimization
public static PathSegmentImpl.SegmentParse parseSegmentsOptimization(java.lang.String path, boolean decode)
- Parameters:
path
- encoded full pathdecode
- whether or not to decode each segment- Returns:
-
-