|
||||||||||
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 java.lang.String |
host
|
protected int |
port
|
protected java.lang.String |
protocol
|
protected java.lang.String |
pwd
|
protected java.lang.String |
url
|
protected java.lang.String |
urlPath
|
protected java.lang.String |
user
|
Constructor Summary | |
---|---|
GlobusURL(java.lang.String url)
Parses the url and extracts the url parts. |
|
GlobusURL(java.net.URL url)
Creates a GlobusURL instance from URL instance. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares two urls. |
java.lang.String |
getHost()
Returns the host name of an url. |
java.lang.String |
getPath()
Returns the url path part of an url. |
int |
getPort()
Returns the port number of an url. |
static int |
getPort(java.lang.String protocol)
|
java.lang.String |
getProtocol()
Returns the protocol of an url. |
java.lang.String |
getPwd()
Returns the password of an url. |
java.lang.String |
getURL()
Returns the string representation of an url. |
java.lang.String |
getUser()
Returns the user name of an url. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String protocol
protected java.lang.String host
protected java.lang.String urlPath
protected java.lang.String user
protected java.lang.String pwd
protected java.lang.String url
protected int port
Constructor Detail |
---|
public GlobusURL(java.lang.String url) throws java.net.MalformedURLException
url
- the url to parse.
java.net.MalformedURLException
- if the url
is malformed.public GlobusURL(java.net.URL url)
Method Detail |
---|
public static int getPort(java.lang.String protocol)
public java.lang.String getURL()
public java.lang.String getProtocol()
public java.lang.String getHost()
public int getPort()
public java.lang.String getPath()
public java.lang.String getUser()
public java.lang.String getPwd()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- could be a string representation of an url
or an instance of this class.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |