com.norconex.commons.lang.url
Class HttpURL
java.lang.Object
com.norconex.commons.lang.url.HttpURL
- All Implemented Interfaces:
- Serializable
public class HttpURL
- extends Object
- implements Serializable
This class can be seen as a mutable URL, which could be a replacement
or "wrapper" to the URL
class.
- Author:
- Pascal Essiembre
- See Also:
- Serialized Form
DEFAULT_HTTP_PORT
public static final int DEFAULT_HTTP_PORT
- See Also:
- Constant Field Values
DEFAULT_HTTPS_PORT
public static final int DEFAULT_HTTPS_PORT
- See Also:
- Constant Field Values
HttpURL
public HttpURL()
HttpURL
public HttpURL(URL url)
HttpURL
public HttpURL(String url)
getQueryString
public QueryString getQueryString()
setQueryString
public void setQueryString(QueryString queryString)
getHost
public String getHost()
setHost
public void setHost(String host)
getProtocol
public String getProtocol()
setProtocol
public void setProtocol(String protocol)
isSecure
public boolean isSecure()
getPort
public int getPort()
setPort
public void setPort(int port)
getLastPathSegment
public String getLastPathSegment()
toURL
public URL toURL()
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2008-2013 Norconex Inc.. All Rights Reserved.