|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--faust.sacha.web.util.URLInfo
Class that defines a HTTP url.
Constructor Summary | |
protected |
URLInfo()
|
|
URLInfo(java.lang.String url)
|
|
URLInfo(java.lang.String url,
int urlType)
|
|
URLInfo(java.lang.String url,
URLInfo parentURL)
|
|
URLInfo(java.lang.String url,
URLInfo parentURL,
int urlType)
|
Method Summary | |
java.lang.String |
getAnchor()
|
java.lang.String |
getBaseURL()
Returns the base url for this url. |
java.lang.String |
getDirectURL()
Returns the url without the cgi arguments and anchor. |
java.lang.String |
getFile()
Returns the file part of the url. |
java.lang.String |
getFolder()
Returns the folder peace of the url. |
java.lang.String |
getHost()
|
java.lang.String |
getPath()
Returns the path part of this url (folder/file). |
int |
getPort()
Returns the port used by this url. |
java.lang.String |
getProtocol()
Returns the protocol used by this url. |
java.lang.String |
getQuery()
Returns the query part of this url. |
java.lang.String |
getURL()
Returns the url in the following format: [protocol][domain][folder][file][script argument or anchor] |
int |
getURLType()
|
java.lang.String |
getURLWithoutAnchor()
|
boolean |
isSecure()
Returns if the url reference to a HTTPS connection. |
boolean |
sameAs(URLInfo toCompare)
This will compare two url reference to see if they refer to the same resource. |
protected boolean |
setBaseURLAndPathdAnchor()
|
protected boolean |
setFolderAndFile()
|
protected boolean |
setPortAndProtocolAndHost()
|
protected void |
setQuery()
|
protected void |
setQuery(java.lang.String query)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected URLInfo()
public URLInfo(java.lang.String url) throws java.net.MalformedURLException
url
- The url that you want to define.
java.net.MalformedURLException
public URLInfo(java.lang.String url, int urlType) throws java.net.MalformedURLException
public URLInfo(java.lang.String url, URLInfo parentURL) throws java.net.MalformedURLException
url
- The url or peace of url that you want to define.parentURL
- The parent url that serves as the base of the url that you want to define.
java.net.MalformedURLException
public URLInfo(java.lang.String url, URLInfo parentURL, int urlType) throws java.net.MalformedURLException
Method Detail |
protected boolean setBaseURLAndPathdAnchor()
protected boolean setFolderAndFile()
protected boolean setPortAndProtocolAndHost()
protected void setQuery()
protected void setQuery(java.lang.String query)
public java.lang.String getBaseURL()
public java.lang.String getFolder()
public java.lang.String getFile()
public java.lang.String getPath()
public int getPort()
public java.lang.String getProtocol()
public java.lang.String getQuery()
public java.lang.String getURL()
public java.lang.String getDirectURL()
public boolean isSecure()
public java.lang.String getHost()
public boolean sameAs(URLInfo toCompare)
toCompare
- url to compare againts.
public int getURLType()
public java.lang.String getAnchor()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getURLWithoutAnchor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |