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 classPathSegmentImpl.SegmentParseUsed when creating the matching path in ResteasyUriInfo
-
Field Summary
Fields Modifier and Type Field Description private booleanhasMatrixParamsprivate javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String>matrixParametersprivate java.lang.Stringoriginalprivate java.lang.Stringpath
-
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.StringgetOriginal()java.lang.StringgetPath()booleanhasMatrixParams()NOTE: Used for optimization in ResteasyUriInfostatic java.util.List<javax.ws.rs.core.PathSegment>parseSegments(java.lang.String path, boolean decode)static PathSegmentImpl.SegmentParseparseSegmentsOptimization(java.lang.String path, boolean decode)java.lang.StringtoString()
-
-
-
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:
getPathin interfacejavax.ws.rs.core.PathSegment
-
getMatrixParameters
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getMatrixParameters()
- Specified by:
getMatrixParametersin interfacejavax.ws.rs.core.PathSegment
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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:
-
-