| java.lang.Object org.apache.commons.httpclient.URI org.apache.commons.httpclient.HttpURL
All known Subclasses: org.apache.commons.httpclient.HttpsURL,
Constructor Summary | |
protected | HttpURL() Create an instance as an internal use. | public | HttpURL(char[] escaped, String charset) Construct a HTTP URL as an escaped form of a character array with the
given charset to do escape encoding. | public | HttpURL(char[] escaped) Construct a HTTP URL as an escaped form of a character array. | public | HttpURL(String original, String charset) Construct a HTTP URL from a given string with the given charset to do
escape encoding. | public | HttpURL(String original) Construct a HTTP URL from a given string. | public | HttpURL(String host, int port, String path) Construct a HTTP URL from given components. | public | HttpURL(String host, int port, String path, String query) Construct a HTTP URL from given components. | public | HttpURL(String user, String password, String host) Construct a HTTP URL from given components. | public | HttpURL(String user, String password, String host, int port) Construct a HTTP URL from given components. | public | HttpURL(String user, String password, String host, int port, String path) Construct a HTTP URL from given components. | public | HttpURL(String user, String password, String host, int port, String path, String query) Construct a HTTP URL from given components. | public | HttpURL(String host, String path, String query, String fragment) Construct a HTTP URL from given components. | public | HttpURL(String userinfo, String host, String path, String query, String fragment) Construct a HTTP URL from given components.
Note: The userinfo format is normally
<username>:<password> where
username and password must both be URL escaped. | public | HttpURL(String userinfo, String host, int port, String path) Construct a HTTP URL from given components. | public | HttpURL(String userinfo, String host, int port, String path, String query) Construct a HTTP URL from given components. | public | HttpURL(String userinfo, String host, int port, String path, String query, String fragment) Construct a HTTP URL from given components. | public | HttpURL(String user, String password, String host, int port, String path, String query, String fragment) Construct a HTTP URL from given components. | public | HttpURL(HttpURL base, String relative) Construct a HTTP URL with a given relative URL string. | public | HttpURL(HttpURL base, HttpURL relative) Construct a HTTP URL with a given relative URL. |
DEFAULT_PORT | final public static int DEFAULT_PORT(Code) | | Default port for HTTP URL.
|
DEFAULT_SCHEME | final public static char[] DEFAULT_SCHEME(Code) | | Default scheme for HTTP URL.
|
serialVersionUID | final static long serialVersionUID(Code) | | The serialVersionUID.
|
HttpURL | protected HttpURL()(Code) | | Create an instance as an internal use.
|
HttpURL | public HttpURL(String userinfo, String host, String path, String query, String fragment) throws URIException(Code) | | Construct a HTTP URL from given components.
Note: The userinfo format is normally
<username>:<password> where
username and password must both be URL escaped.
Parameters: userinfo - the userinfo string whose parts are URL escaped Parameters: host - the host string Parameters: path - the path string Parameters: query - the query string Parameters: fragment - the fragment string throws: URIException - If HttpURL.checkValid() fails See Also: HttpURL.getDefaultProtocolCharset |
HttpURL | public HttpURL(String userinfo, String host, int port, String path) throws URIException(Code) | | Construct a HTTP URL from given components.
Note: The userinfo format is normally
<username>:<password> where
username and password must both be URL escaped.
Parameters: userinfo - the userinfo string whose parts are URL escaped Parameters: host - the host string Parameters: port - the port number Parameters: path - the path string throws: URIException - If HttpURL.checkValid() fails See Also: HttpURL.getDefaultProtocolCharset |
HttpURL | public HttpURL(String userinfo, String host, int port, String path, String query) throws URIException(Code) | | Construct a HTTP URL from given components.
Note: The userinfo format is normally
<username>:<password> where
username and password must both be URL escaped.
Parameters: userinfo - the userinfo string whose parts are URL escaped Parameters: host - the host string Parameters: port - the port number Parameters: path - the path string Parameters: query - the query string throws: URIException - If HttpURL.checkValid() fails See Also: HttpURL.getDefaultProtocolCharset |
HttpURL | public HttpURL(String userinfo, String host, int port, String path, String query, String fragment) throws URIException(Code) | | Construct a HTTP URL from given components.
Note: The userinfo format is normally
<username>:<password> where
username and password must both be URL escaped.
Parameters: userinfo - the userinfo string whose parts are URL escaped Parameters: host - the host string Parameters: port - the port number Parameters: path - the path string Parameters: query - the query string Parameters: fragment - the fragment string throws: URIException - If HttpURL.checkValid() fails See Also: HttpURL.getDefaultProtocolCharset |
checkValid | protected void checkValid() throws URIException(Code) | | Verify the valid class use for construction.
throws: URIException - the wrong scheme use |
getEscapedPassword | public String getEscapedPassword()(Code) | | Get the escaped password.
the escaped password |
getEscapedUser | public String getEscapedUser()(Code) | | Get the escaped user
the escaped user |
getPort | public int getPort()(Code) | | Get the port number.
the port number |
getRawPassword | public char[] getRawPassword()(Code) | | Get the raw-escaped password.
the raw-escaped password |
getRawPath | public char[] getRawPath()(Code) | | Get the raw escaped path.
the path '/' if empty or undefined |
getRawScheme | public char[] getRawScheme()(Code) | | Get the scheme. You can get the scheme explicitly.
the scheme |
getRawUser | public char[] getRawUser()(Code) | | Get the raw-escaped user.
the raw-escaped user |
getScheme | public String getScheme()(Code) | | Get the scheme. You can get the scheme explicitly.
the scheme null if empty or undefined |
setEscapedPassword | public void setEscapedPassword(String escapedPassword) throws URIException(Code) | | Set the escaped password string.
Parameters: escapedPassword - the escaped password string; could be null throws: URIException - escaped password not valid or username missed |
setEscapedUserinfo | public void setEscapedUserinfo(String escapedUser, String escapedPassword) throws URIException, NullPointerException(Code) | | Set the raw-escaped user and password.
Parameters: escapedUser - the escaped user Parameters: escapedPassword - the escaped password; could be null throws: URIException - escaped user not valid or user required; escapedpassword not valid or username missed throws: NullPointerException - null user |
setPassword | public void setPassword(String password) throws URIException(Code) | | Set the password string.
Parameters: password - the password string; could be null throws: URIException - encoding error or username missed |
setRawPassword | public void setRawPassword(char[] escapedPassword) throws URIException(Code) | | Set the raw-escaped password.
Parameters: escapedPassword - the raw-escaped password; could be null throws: URIException - escaped password not valid or username missed |
setRawUser | public void setRawUser(char[] escapedUser) throws URIException(Code) | | Set the raw-escaped user.
Parameters: escapedUser - the raw-escaped user throws: URIException - escaped user not valid or user required |
setRawUserinfo | public void setRawUserinfo(char[] escapedUser, char[] escapedPassword) throws URIException(Code) | | Set the raw-escaped user and password.
Parameters: escapedUser - the raw-escaped user Parameters: escapedPassword - the raw-escaped password; could be null throws: URIException - escaped user not valid or user required; escapedpassword not valid or username missed |
Methods inherited from org.apache.commons.httpclient.URI | public synchronized Object clone() throws CloneNotSupportedException(Code)(Java Doc) public int compareTo(Object obj) throws ClassCastException(Code)(Java Doc) protected static String decode(char[] component, String charset) throws URIException(Code)(Java Doc) protected static String decode(String component, String charset) throws URIException(Code)(Java Doc) protected static char[] encode(String original, BitSet allowed, String charset) throws URIException(Code)(Java Doc) protected boolean equals(char[] first, char[] second)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public String getAboveHierPath() throws URIException(Code)(Java Doc) public String getAuthority() throws URIException(Code)(Java Doc) public String getCurrentHierPath() throws URIException(Code)(Java Doc) public static String getDefaultDocumentCharset()(Code)(Java Doc) public static String getDefaultDocumentCharsetByLocale()(Code)(Java Doc) public static String getDefaultDocumentCharsetByPlatform()(Code)(Java Doc) public static String getDefaultProtocolCharset()(Code)(Java Doc) public String getEscapedAboveHierPath() throws URIException(Code)(Java Doc) public String getEscapedAuthority()(Code)(Java Doc) public String getEscapedCurrentHierPath() throws URIException(Code)(Java Doc) public String getEscapedFragment()(Code)(Java Doc) public String getEscapedName()(Code)(Java Doc) public String getEscapedPath()(Code)(Java Doc) public String getEscapedPathQuery()(Code)(Java Doc) public String getEscapedQuery()(Code)(Java Doc) public String getEscapedURI()(Code)(Java Doc) public String getEscapedURIReference()(Code)(Java Doc) public String getEscapedUserinfo()(Code)(Java Doc) public String getFragment() throws URIException(Code)(Java Doc) public String getHost() throws URIException(Code)(Java Doc) public String getName() throws URIException(Code)(Java Doc) public String getPath() throws URIException(Code)(Java Doc) public String getPathQuery() throws URIException(Code)(Java Doc) public int getPort()(Code)(Java Doc) public String getProtocolCharset()(Code)(Java Doc) public String getQuery() throws URIException(Code)(Java Doc) public char[] getRawAboveHierPath() throws URIException(Code)(Java Doc) public char[] getRawAuthority()(Code)(Java Doc) protected char[] getRawCurrentHierPath(char[] path) throws URIException(Code)(Java Doc) public char[] getRawCurrentHierPath() throws URIException(Code)(Java Doc) public char[] getRawFragment()(Code)(Java Doc) public char[] getRawHost()(Code)(Java Doc) public char[] getRawName()(Code)(Java Doc) public char[] getRawPath()(Code)(Java Doc) public char[] getRawPathQuery()(Code)(Java Doc) public char[] getRawQuery()(Code)(Java Doc) public char[] getRawScheme()(Code)(Java Doc) public char[] getRawURI()(Code)(Java Doc) public char[] getRawURIReference()(Code)(Java Doc) public char[] getRawUserinfo()(Code)(Java Doc) public String getScheme()(Code)(Java Doc) public String getURI() throws URIException(Code)(Java Doc) public String getURIReference() throws URIException(Code)(Java Doc) public String getUserinfo() throws URIException(Code)(Java Doc) public boolean hasAuthority()(Code)(Java Doc) public boolean hasFragment()(Code)(Java Doc) public boolean hasQuery()(Code)(Java Doc) public boolean hasUserinfo()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) protected int indexFirstOf(String s, String delims)(Code)(Java Doc) protected int indexFirstOf(String s, String delims, int offset)(Code)(Java Doc) protected int indexFirstOf(char[] s, char delim)(Code)(Java Doc) protected int indexFirstOf(char[] s, char delim, int offset)(Code)(Java Doc) public boolean isAbsPath()(Code)(Java Doc) public boolean isAbsoluteURI()(Code)(Java Doc) public boolean isHierPart()(Code)(Java Doc) public boolean isHostname()(Code)(Java Doc) public boolean isIPv4address()(Code)(Java Doc) public boolean isIPv6reference()(Code)(Java Doc) public boolean isNetPath()(Code)(Java Doc) public boolean isOpaquePart()(Code)(Java Doc) public boolean isRegName()(Code)(Java Doc) public boolean isRelPath()(Code)(Java Doc) public boolean isRelativeURI()(Code)(Java Doc) public boolean isServer()(Code)(Java Doc) protected char[] normalize(char[] path) throws URIException(Code)(Java Doc) public void normalize() throws URIException(Code)(Java Doc) protected void parseAuthority(String original, boolean escaped) throws URIException(Code)(Java Doc) protected void parseUriReference(String original, boolean escaped) throws URIException(Code)(Java Doc) protected boolean prevalidate(String component, BitSet disallowed)(Code)(Java Doc) protected char[] removeFragmentIdentifier(char[] component)(Code)(Java Doc) protected char[] resolvePath(char[] basePath, char[] relPath) throws URIException(Code)(Java Doc) public static void setDefaultDocumentCharset(String charset) throws DefaultCharsetChanged(Code)(Java Doc) public static void setDefaultProtocolCharset(String charset) throws DefaultCharsetChanged(Code)(Java Doc) public void setEscapedAuthority(String escapedAuthority) throws URIException(Code)(Java Doc) public void setEscapedFragment(String escapedFragment) throws URIException(Code)(Java Doc) public void setEscapedPath(String escapedPath) throws URIException(Code)(Java Doc) public void setEscapedQuery(String escapedQuery) throws URIException(Code)(Java Doc) public void setFragment(String fragment) throws URIException(Code)(Java Doc) public void setPath(String path) throws URIException(Code)(Java Doc) public void setQuery(String query) throws URIException(Code)(Java Doc) public void setRawAuthority(char[] escapedAuthority) throws URIException, NullPointerException(Code)(Java Doc) public void setRawFragment(char[] escapedFragment) throws URIException(Code)(Java Doc) public void setRawPath(char[] escapedPath) throws URIException(Code)(Java Doc) public void setRawQuery(char[] escapedQuery) throws URIException(Code)(Java Doc) protected void setURI()(Code)(Java Doc) public String toString()(Code)(Java Doc) protected boolean validate(char[] component, BitSet generous)(Code)(Java Doc) protected boolean validate(char[] component, int soffset, int eoffset, BitSet generous)(Code)(Java Doc)
|
|
|