Class PathSegmentImpl
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.core.PathSegmentImpl
-
- All Implemented Interfaces:
javax.ws.rs.core.PathSegment
@Deprecated public class PathSegmentImpl extends java.lang.Object implements javax.ws.rs.core.PathSegmentDeprecated.Will be removed in next minor release.The implementation of the JAX-RS interfacePathSegment
-
-
Field Summary
Fields Modifier and Type Field Description private booleandecodeDeprecated.private javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String>matrixParametersDeprecated.The matrix parameters.private java.lang.StringmatrParamEncodedDeprecated.the encoded matrix parameters, as given in constructor.private java.lang.StringpathDeprecated.encoded or decoded, depends ondecode
-
Constructor Summary
Constructors Constructor Description PathSegmentImpl(java.lang.String segmentEnc, boolean decode, int indexForErrMess)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Deprecated.javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String>getMatrixParameters()Deprecated.Get a map of the decoded (or encoded?) matrix parameters associated with the path segmentjava.lang.StringgetPath()Deprecated.inthashCode()Deprecated.static MultivaluedMapImpl<java.lang.String,java.lang.String>parseMatrixParams(java.lang.String matrParamString, boolean decoding)Deprecated.voidtoAppendable(java.lang.Appendable stb, boolean convertBraces)Deprecated.Appends this PathSegment to the given Appendablejava.lang.StringtoString()Deprecated.voidtoStringBuilder(java.lang.StringBuilder stb, boolean convertBraces)Deprecated.Appends this PathSegment to the given StringBuilder
-
-
-
Field Detail
-
decode
private final boolean decode
Deprecated.
-
matrixParameters
private volatile javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> matrixParameters
Deprecated.The matrix parameters. Encoded or decoded, depends ondecode.
-
matrParamEncoded
private final java.lang.String matrParamEncoded
Deprecated.the encoded matrix parameters, as given in constructor.
-
path
private final java.lang.String path
Deprecated.encoded or decoded, depends ondecode
-
-
Constructor Detail
-
PathSegmentImpl
public PathSegmentImpl(java.lang.String segmentEnc, boolean decode, int indexForErrMess) throws java.lang.IllegalArgumentExceptionDeprecated.- Parameters:
segmentEnc- Segment with matrix parameter. The segment is encoded.decode- true, if the path and the marix parameters should be decoded.indexForErrMess- If the user adds more than one path segment with one call, you can give the index for an error message here. Set -1, if none. SeeEncodeOrCheck#checkForInvalidUriChars(String, int, String)- Throws:
java.lang.IllegalArgumentException- the segment is null, if decode and encode is both true
-
-
Method Detail
-
parseMatrixParams
public static MultivaluedMapImpl<java.lang.String,java.lang.String> parseMatrixParams(java.lang.String matrParamString, boolean decoding)
Deprecated.- Parameters:
matrParamString- The string to parse the matrix parametersdecoding- if true, than the keys and values are decoded, if false, than not.encodeAndCheckWhenNotDecode- If decode is false and encodeAndCheckWhenNotDecode is true, than an IllegalArgumentException is thrown, when a parameter contains illegal characters, if false nothing will checked. If decode is true, this value is ignored.- Returns:
- Method is public for testing, otherwise it would be package visible.
-
equals
public boolean equals(java.lang.Object object)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
getMatrixParameters
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getMatrixParameters()
Deprecated.Get a map of the decoded (or encoded?) matrix parameters associated with the path segment- Specified by:
getMatrixParametersin interfacejavax.ws.rs.core.PathSegment- Returns:
- the map of matrix parameters. Never returns null.
-
getPath
public java.lang.String getPath()
Deprecated.- Specified by:
getPathin interfacejavax.ws.rs.core.PathSegment- Returns:
- the path segment
- See Also:
PathSegment.getPath()
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
toAppendable
public void toAppendable(java.lang.Appendable stb, boolean convertBraces) throws java.io.IOExceptionDeprecated.Appends this PathSegment to the given Appendable- Parameters:
stb- StringBuilder or other Appendable to append this PathSegment.convertBraces- if true, all braces are converted, if false then not, seeUtil.append(Appendable, CharSequence, boolean).- Throws:
java.io.IOException- if the Appendable has a problem.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
toStringBuilder
public void toStringBuilder(java.lang.StringBuilder stb, boolean convertBraces)Deprecated.Appends this PathSegment to the given StringBuilder- Parameters:
stb- the StrinBuilder to appendconvertBraces- if true, than conatined braces will be encoded, seeUtil.append(Appendable, CharSequence, boolean).
-
-