Class PathSegmentImpl

  • All Implemented Interfaces:
    javax.ws.rs.core.PathSegment

    @Deprecated
    public class PathSegmentImpl
    extends java.lang.Object
    implements javax.ws.rs.core.PathSegment
    Deprecated.
    Will be removed in next minor release.
    The implementation of the JAX-RS interface PathSegment
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean decode
      Deprecated.
       
      private javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> matrixParameters
      Deprecated.
      The matrix parameters.
      private java.lang.String matrParamEncoded
      Deprecated.
      the encoded matrix parameters, as given in constructor.
      private java.lang.String path
      Deprecated.
      encoded or decoded, depends on decode
    • 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
      boolean equals​(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 segment
      java.lang.String getPath()
      Deprecated.
       
      int hashCode()
      Deprecated.
       
      static MultivaluedMapImpl<java.lang.String,​java.lang.String> parseMatrixParams​(java.lang.String matrParamString, boolean decoding)
      Deprecated.
       
      void toAppendable​(java.lang.Appendable stb, boolean convertBraces)
      Deprecated.
      Appends this PathSegment to the given Appendable
      java.lang.String toString()
      Deprecated.
       
      void toStringBuilder​(java.lang.StringBuilder stb, boolean convertBraces)
      Deprecated.
      Appends this PathSegment to the given StringBuilder
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 on decode.
      • 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 on decode
    • Constructor Detail

      • PathSegmentImpl

        public PathSegmentImpl​(java.lang.String segmentEnc,
                               boolean decode,
                               int indexForErrMess)
                        throws java.lang.IllegalArgumentException
        Deprecated.
        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. See EncodeOrCheck#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 parameters
        decoding - 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:
        equals in class java.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:
        getMatrixParameters in interface javax.ws.rs.core.PathSegment
        Returns:
        the map of matrix parameters. Never returns null.
      • getPath

        public java.lang.String getPath()
        Deprecated.
        Specified by:
        getPath in interface javax.ws.rs.core.PathSegment
        Returns:
        the path segment
        See Also:
        PathSegment.getPath()
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • toAppendable

        public void toAppendable​(java.lang.Appendable stb,
                                 boolean convertBraces)
                          throws java.io.IOException
        Deprecated.
        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, see Util.append(Appendable, CharSequence, boolean).
        Throws:
        java.io.IOException - if the Appendable has a problem.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.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 append
        convertBraces - if true, than conatined braces will be encoded, see Util.append(Appendable, CharSequence, boolean).