Class RequestURIRef


  • public class RequestURIRef
    extends java.lang.Object
    Request URI holder. Contains 3 types of URI: 1) Original, which represents the URI's original state at time it was set. 2) Decoded, which has represents URI after being URI and String decoded (internally used by Mapper). 3) Actual, which is supposed as URI value returned to user.
    Author:
    Alexey Stashok
    • Constructor Detail

      • RequestURIRef

        public RequestURIRef()
    • Method Detail

      • init

        public void init​(Buffer input,
                         int start,
                         int end)
      • init

        public void init​(byte[] input,
                         int start,
                         int end)
      • init

        public void init​(java.lang.String requestUri)
      • getOriginalRequestURIBC

        public final DataChunk getOriginalRequestURIBC()
      • getRequestURIBC

        public final DataChunk getRequestURIBC()
      • getDecodedRequestURIBC

        public final DataChunk getDecodedRequestURIBC()
                                               throws java.io.CharConversionException
        Throws:
        java.io.CharConversionException
      • getDecodedRequestURIBC

        public DataChunk getDecodedRequestURIBC​(boolean isSlashAllowed)
                                         throws java.io.CharConversionException
        Throws:
        java.io.CharConversionException
      • getDecodedRequestURIBC

        public DataChunk getDecodedRequestURIBC​(boolean isSlashAllowed,
                                                java.nio.charset.Charset charset)
                                         throws java.io.CharConversionException
        Throws:
        java.io.CharConversionException
      • getURI

        public java.lang.String getURI()
      • getURI

        public java.lang.String getURI​(java.nio.charset.Charset encoding)
      • setURI

        public void setURI​(java.lang.String uri)
      • getDecodedURI

        public final java.lang.String getDecodedURI()
                                             throws java.io.CharConversionException
        Throws:
        java.io.CharConversionException
      • getDecodedURI

        public final java.lang.String getDecodedURI​(boolean isSlashAllowed)
                                             throws java.io.CharConversionException
        Throws:
        java.io.CharConversionException
      • getDecodedURI

        public java.lang.String getDecodedURI​(boolean isSlashAllowed,
                                              java.nio.charset.Charset encoding)
                                       throws java.io.CharConversionException
        Throws:
        java.io.CharConversionException
      • setDecodedURI

        public void setDecodedURI​(java.lang.String uri)
      • isDecoded

        public boolean isDecoded()
      • getDefaultURIEncoding

        public java.nio.charset.Charset getDefaultURIEncoding()
      • setDefaultURIEncoding

        public void setDefaultURIEncoding​(java.nio.charset.Charset defaultURIEncoding)
      • recycle

        public void recycle()