Class HttpURI.Mutable

  • All Implemented Interfaces:
    HttpURI
    Enclosing interface:
    HttpURI

    public static class HttpURI.Mutable
    extends java.lang.Object
    implements HttpURI
    • Method Detail

      • asString

        public java.lang.String asString()
        Specified by:
        asString in interface HttpURI
      • authority

        public HttpURI.Mutable authority​(java.lang.String host,
                                         int port)
        Parameters:
        host - the host
        port - the port
        Returns:
        this mutable
      • authority

        public HttpURI.Mutable authority​(java.lang.String hostport)
        Parameters:
        hostport - the host and port combined
        Returns:
        this mutable
      • decodedPath

        public HttpURI.Mutable decodedPath​(java.lang.String path)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • fragment

        public HttpURI.Mutable fragment​(java.lang.String fragment)
      • getAuthority

        public java.lang.String getAuthority()
        Specified by:
        getAuthority in interface HttpURI
      • getDecodedPath

        public java.lang.String getDecodedPath()
        Specified by:
        getDecodedPath in interface HttpURI
      • getFragment

        public java.lang.String getFragment()
        Specified by:
        getFragment in interface HttpURI
      • getHost

        public java.lang.String getHost()
        Specified by:
        getHost in interface HttpURI
      • getParam

        public java.lang.String getParam()
        Specified by:
        getParam in interface HttpURI
      • getPath

        public java.lang.String getPath()
        Specified by:
        getPath in interface HttpURI
      • getPathQuery

        public java.lang.String getPathQuery()
        Specified by:
        getPathQuery in interface HttpURI
      • getPort

        public int getPort()
        Specified by:
        getPort in interface HttpURI
      • getQuery

        public java.lang.String getQuery()
        Specified by:
        getQuery in interface HttpURI
      • getScheme

        public java.lang.String getScheme()
        Specified by:
        getScheme in interface HttpURI
      • getUser

        public java.lang.String getUser()
        Specified by:
        getUser in interface HttpURI
      • hasAuthority

        public boolean hasAuthority()
        Specified by:
        hasAuthority in interface HttpURI
      • hashCode

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

        public boolean isAbsolute()
        Specified by:
        isAbsolute in interface HttpURI
      • hasAmbiguousSegment

        public boolean hasAmbiguousSegment()
        Specified by:
        hasAmbiguousSegment in interface HttpURI
        Returns:
        True if the URI has a possibly ambiguous segment like '..;' or '%2e%2e'
      • hasAmbiguousSeparator

        public boolean hasAmbiguousSeparator()
        Specified by:
        hasAmbiguousSeparator in interface HttpURI
        Returns:
        True if the URI has a possibly ambiguous separator of %2f
      • hasAmbiguousParameter

        public boolean hasAmbiguousParameter()
        Specified by:
        hasAmbiguousParameter in interface HttpURI
        Returns:
        True if the URI has a possibly ambiguous path parameter like '..;'
      • hasAmbiguousEncoding

        public boolean hasAmbiguousEncoding()
        Specified by:
        hasAmbiguousEncoding in interface HttpURI
        Returns:
        True if the URI has an encoded '%' character.
      • path

        public HttpURI.Mutable path​(java.lang.String path)
        Parameters:
        path - the path
        Returns:
        this Mutuble
      • pathQuery

        public HttpURI.Mutable pathQuery​(java.lang.String pathQuery)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toURI

        public java.net.URI toURI()
        Specified by:
        toURI in interface HttpURI
      • uri

        public HttpURI.Mutable uri​(java.lang.String method,
                                   java.lang.String uri)
      • uri

        public HttpURI.Mutable uri​(java.lang.String uri,
                                   int offset,
                                   int length)