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()
        Description copied from interface: HttpURI
        Get a URI path parameter. Multiple and in segment parameters are ignored and only the last trailing parameter is returned.
        Specified by:
        getParam in interface HttpURI
        Returns:
        The last path parameter or null
      • 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
      • hasViolation

        public boolean hasViolation​(UriCompliance.Violation violation)
        Specified by:
        hasViolation in interface HttpURI
        Parameters:
        violation - the violation to check.
        Returns:
        true if the URI has the passed violation.
      • 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)