com.norconex.commons.lang.url
Class HttpURL

java.lang.Object
  extended by 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

Field Summary
static int DEFAULT_HTTP_PORT
           
static int DEFAULT_HTTPS_PORT
           
 
Constructor Summary
HttpURL()
           
HttpURL(String url)
           
HttpURL(URL url)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getHost()
           
 String getLastPathSegment()
           
 int getPort()
           
 String getProtocol()
           
 QueryString getQueryString()
           
 int hashCode()
           
 boolean isSecure()
           
 void setHost(String host)
           
 void setPort(int port)
           
 void setProtocol(String protocol)
           
 void setQueryString(QueryString queryString)
           
 String toString()
           
 URL toURL()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

HttpURL

public HttpURL()

HttpURL

public HttpURL(URL url)

HttpURL

public HttpURL(String url)
Method Detail

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.