- java.lang.Object
-
- org.eclipse.jetty.http.HttpURI.Mutable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.http.HttpURI
HttpURI.Immutable, HttpURI.Mutable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpURI.Immutable
asImmutable()
java.lang.String
asString()
HttpURI.Mutable
authority(java.lang.String hostport)
HttpURI.Mutable
authority(java.lang.String host, int port)
HttpURI.Mutable
clear()
HttpURI.Mutable
decodedPath(java.lang.String path)
boolean
equals(java.lang.Object o)
HttpURI.Mutable
fragment(java.lang.String fragment)
java.lang.String
getAuthority()
java.lang.String
getDecodedPath()
java.lang.String
getFragment()
java.lang.String
getHost()
java.lang.String
getParam()
Get a URI path parameter.java.lang.String
getPath()
java.lang.String
getPathQuery()
int
getPort()
java.lang.String
getQuery()
java.lang.String
getScheme()
java.lang.String
getUser()
java.util.Collection<UriCompliance.Violation>
getViolations()
boolean
hasAuthority()
int
hashCode()
boolean
hasViolation(UriCompliance.Violation violation)
boolean
hasViolations()
HttpURI.Mutable
host(java.lang.String host)
boolean
isAbsolute()
boolean
isAmbiguous()
HttpURI.Mutable
normalize()
HttpURI.Mutable
param(java.lang.String param)
HttpURI.Mutable
path(java.lang.String path)
HttpURI.Mutable
pathQuery(java.lang.String pathQuery)
HttpURI.Mutable
port(int port)
HttpURI.Mutable
query(java.lang.String query)
HttpURI.Mutable
scheme(java.lang.String scheme)
HttpURI.Mutable
scheme(HttpScheme scheme)
java.lang.String
toString()
java.net.URI
toURI()
HttpURI.Mutable
uri(java.lang.String uri)
HttpURI.Mutable
uri(java.lang.String uri, int offset, int length)
HttpURI.Mutable
uri(java.lang.String method, java.lang.String uri)
HttpURI.Mutable
uri(HttpURI uri)
HttpURI.Mutable
user(java.lang.String user)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.http.HttpURI
hasAmbiguousEmptySegment, hasAmbiguousEncoding, hasAmbiguousParameter, hasAmbiguousSegment, hasAmbiguousSeparator, hasUtf16Encoding
-
-
-
-
Method Detail
-
asImmutable
public HttpURI.Immutable asImmutable()
- Specified by:
asImmutable
in interfaceHttpURI
-
authority
public HttpURI.Mutable authority(java.lang.String host, int port)
- Parameters:
host
- the hostport
- the port- Returns:
- this mutable
-
authority
public HttpURI.Mutable authority(java.lang.String hostport)
- Parameters:
hostport
- the host and port combined- Returns:
- this mutable
-
clear
public HttpURI.Mutable clear()
-
decodedPath
public HttpURI.Mutable decodedPath(java.lang.String path)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
fragment
public HttpURI.Mutable fragment(java.lang.String fragment)
-
getAuthority
public java.lang.String getAuthority()
- Specified by:
getAuthority
in interfaceHttpURI
-
getDecodedPath
public java.lang.String getDecodedPath()
- Specified by:
getDecodedPath
in interfaceHttpURI
-
getFragment
public java.lang.String getFragment()
- Specified by:
getFragment
in interfaceHttpURI
-
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.
-
getPathQuery
public java.lang.String getPathQuery()
- Specified by:
getPathQuery
in interfaceHttpURI
-
hasAuthority
public boolean hasAuthority()
- Specified by:
hasAuthority
in interfaceHttpURI
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
host
public HttpURI.Mutable host(java.lang.String host)
-
isAbsolute
public boolean isAbsolute()
- Specified by:
isAbsolute
in interfaceHttpURI
-
isAmbiguous
public boolean isAmbiguous()
- Specified by:
isAmbiguous
in interfaceHttpURI
- Returns:
- True if the URI has any ambiguous
UriCompliance.Violation
s.
-
hasViolations
public boolean hasViolations()
- Specified by:
hasViolations
in interfaceHttpURI
- Returns:
- True if the URI has any
UriCompliance.Violation
s.
-
hasViolation
public boolean hasViolation(UriCompliance.Violation violation)
- Specified by:
hasViolation
in interfaceHttpURI
- Parameters:
violation
- the violation to check.- Returns:
- true if the URI has the passed violation.
-
getViolations
public java.util.Collection<UriCompliance.Violation> getViolations()
- Specified by:
getViolations
in interfaceHttpURI
- Returns:
- Set of violations in the URI.
-
normalize
public HttpURI.Mutable normalize()
-
param
public HttpURI.Mutable param(java.lang.String param)
-
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)
-
port
public HttpURI.Mutable port(int port)
-
query
public HttpURI.Mutable query(java.lang.String query)
-
scheme
public HttpURI.Mutable scheme(HttpScheme scheme)
-
scheme
public HttpURI.Mutable scheme(java.lang.String scheme)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
uri
public HttpURI.Mutable uri(HttpURI uri)
-
uri
public HttpURI.Mutable uri(java.lang.String uri)
-
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)
-
user
public HttpURI.Mutable user(java.lang.String user)
-
-