- java.lang.Object
-
- org.eclipse.jetty.http.HttpURI.Immutable
-
-
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.ImmutableasImmutable()java.lang.StringasString()booleanequals(java.lang.Object o)java.lang.StringgetAuthority()java.lang.StringgetDecodedPath()java.lang.StringgetFragment()java.lang.StringgetHost()java.lang.StringgetParam()Get a URI path parameter.java.lang.StringgetPath()java.lang.StringgetPathQuery()intgetPort()java.lang.StringgetQuery()java.lang.StringgetScheme()java.lang.StringgetUser()java.util.Collection<UriCompliance.Violation>getViolations()booleanhasAuthority()inthashCode()booleanhasViolation(UriCompliance.Violation violation)booleanhasViolations()booleanisAbsolute()booleanisAmbiguous()java.lang.StringtoString()java.net.URItoURI()-
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:
asImmutablein interfaceHttpURI
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
getAuthority
public java.lang.String getAuthority()
- Specified by:
getAuthorityin interfaceHttpURI
-
getDecodedPath
public java.lang.String getDecodedPath()
- Specified by:
getDecodedPathin interfaceHttpURI
-
getFragment
public java.lang.String getFragment()
- Specified by:
getFragmentin interfaceHttpURI
-
getParam
public java.lang.String getParam()
Description copied from interface:HttpURIGet 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:
getPathQueryin interfaceHttpURI
-
hasAuthority
public boolean hasAuthority()
- Specified by:
hasAuthorityin interfaceHttpURI
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isAbsolute
public boolean isAbsolute()
- Specified by:
isAbsolutein interfaceHttpURI
-
isAmbiguous
public boolean isAmbiguous()
- Specified by:
isAmbiguousin interfaceHttpURI- Returns:
- True if the URI has any ambiguous
UriCompliance.Violations.
-
hasViolations
public boolean hasViolations()
- Specified by:
hasViolationsin interfaceHttpURI- Returns:
- True if the URI has any
UriCompliance.Violations.
-
hasViolation
public boolean hasViolation(UriCompliance.Violation violation)
- Specified by:
hasViolationin 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:
getViolationsin interfaceHttpURI- Returns:
- Set of violations in the URI.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-