public class GlobusURL extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
host |
protected int |
port |
protected String |
protocol |
protected String |
pwd |
protected String |
url |
protected String |
urlPath |
protected String |
user |
Constructor and Description |
---|
GlobusURL(String url)
Parses the url and extracts the url parts.
|
GlobusURL(URL url)
Creates a GlobusURL instance from URL instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares two urls.
|
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 |
getUser()
Returns the user name of an url.
|
int |
hashCode() |
String |
toString() |
protected String protocol
protected String host
protected String urlPath
protected String user
protected String pwd
protected String url
protected int port
public GlobusURL(String url) throws MalformedURLException
url
- the url to parse.MalformedURLException
- if the url
is malformed.public GlobusURL(URL url)
public static int getPort(String protocol)
public String getURL()
public String getProtocol()
public String getHost()
public int getPort()
public String getPath()
public String getUser()
public String getPwd()
public boolean equals(Object obj)
Copyright © 2016. All rights reserved.