public class URI
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | URI.PathUsed as the path component of this URI. | 
| Modifier and Type | Field and Description | 
|---|---|
| ByteString | authorityThe authority represented in this URI. | 
| ByteString | fragmentThe fragment stored in this URI. | 
| ByteString | hostThe host represented in this URI. | 
| URI.Path | pathThe path represented in this URI. | 
| int | portThe port stored in this URI. | 
| ByteString | queryThe query stored in this URI. | 
| ByteString | schemeThe scheme represented in this URI. | 
| ByteString | userInfoThe user information represented in this URI. | 
| Constructor and Description | 
|---|
| URI(byte[] spec,
   int start,
   int len)Constructor from a byte array. | 
| URI(byte[] spec,
   int start,
   int len,
   URI baseURI)Constructor from a byte array, and a base URI missing components derive from. | 
| URI(java.lang.String spec)Constructor from a String | 
| URI(java.lang.String spec,
   URI baseURI)Constructor from a String and a base URI | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.lang.String | decode(java.lang.String val)Decodes a  application/x-www-form-urlencodedstring | 
| static void | decode(java.lang.String val,
      java.lang.StringBuffer sb)Decodes a  application/x-www-form-urlencodedstring | 
| static java.lang.String | encode(java.lang.String val)Encodes to a  application/x-www-form-urlencoded | 
| static void | encode(java.lang.String val,
      java.lang.StringBuffer sb)Encodes to a  application/x-www-form-urlencoded | 
| java.lang.String | toString()Return a String representation of this URI | 
public ByteString scheme
public ByteString authority
public ByteString userInfo
public ByteString host
public URI.Path path
public ByteString query
public ByteString fragment
public int port
public URI(java.lang.String spec)
spec - String that holds the specified URIpublic URI(java.lang.String spec,
           URI baseURI)
spec - String that holds the specified URIbaseURI - base URI for deriving relative componentspublic URI(byte[] spec,
           int start,
           int len)
spec - byte array that holds the specified URIstart - where the URI starts in the byte arraylen - length of the URIpublic URI(byte[] spec,
           int start,
           int len,
           URI baseURI)
spec - byte array that holds the specified URIstart - where the URI starts in the byte arraylen - length of the URIbaseURI - base URI for deriving relative componentspublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String encode(java.lang.String val)
application/x-www-form-urlencodedval - the String to encodepublic static java.lang.String decode(java.lang.String val)
application/x-www-form-urlencoded stringval - the String to decodepublic static void encode(java.lang.String val,
                          java.lang.StringBuffer sb)
application/x-www-form-urlencodedval - the String to encodesb - the StringBuffer where to write the encoded formpublic static void decode(java.lang.String val,
                          java.lang.StringBuffer sb)
application/x-www-form-urlencoded stringval - the String to decodesb - the StringBuffer where to write the decoded form