|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.util.GlobusURL
public class GlobusURL
This class represents the URLs needed by various Globus services, including:
Field Summary | |
---|---|
protected String |
host
|
protected int |
port
|
protected String |
protocol
|
protected String |
pwd
|
protected String |
url
|
protected String |
urlPath
|
protected String |
user
|
Constructor Summary | |
---|---|
GlobusURL(String url)
Parses the url and extracts the url parts. |
|
GlobusURL(URL url)
Creates a GlobusURL instance from URL instance. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compares two urls. |
String |
getFile()
Deprecated. |
String |
getHost()
Returns the host name of an url. |
String |
getPath()
Returns the url path part of an url. |
int |
getPort()
Returns the port number of an url. |
static int |
getPort(String protocol)
|
String |
getProtocol()
Returns the protocol of an url. |
String |
getPwd()
Returns the password of an url. |
String |
getURL()
Returns the string representation of an url. |
String |
getUrlPath()
Deprecated. Though this class does not extend java.net.URL, it should be similar where possible to be intuitive to the user used to URL. |
String |
getUser()
Returns the user name of an url. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String protocol
protected String host
protected String urlPath
protected String user
protected String pwd
protected String url
protected int port
Constructor Detail |
---|
public GlobusURL(String url) throws MalformedURLException
url
- the url to parse.
MalformedURLException
- if the url
is malformed.public GlobusURL(URL url)
Method Detail |
---|
public static int getPort(String protocol)
public String getURL()
public String getProtocol()
public String getHost()
public int getPort()
public String getPath()
public String getFile()
public String getUrlPath()
public String getUser()
public String getPwd()
public boolean equals(Object obj)
equals
in class Object
obj
- could be a string representation of an url
or an instance of this class.
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |