|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.client.ServiceURL
| Field Summary | |
private java.lang.String |
contactString
|
static java.lang.String |
DEFAULT_SERVICE_CONTEXT
|
private static int |
HTTP_PORT
|
private static int |
HTTPS_PORT
|
private static org.globus.util.I18n |
i18n
|
private static org.apache.commons.logging.Log |
logger
|
private java.lang.String |
serviceName
|
private java.net.URL |
url
|
private static java.lang.String |
URL_SEPARATOR
|
| Constructor Summary | |
ServiceURL(java.lang.String contactString)
Construct a ServiceURL object from the specified contact string. |
|
ServiceURL(java.lang.String contactString,
java.lang.String serviceName)
|
|
| Method Summary | |
static java.lang.String |
getDefaultHost()
|
static int |
getDefaultPort()
|
static java.lang.String |
getDefaultProtocol()
|
java.lang.String |
getFullServicePath()
|
java.lang.String |
getServiceName()
|
java.net.URL |
getURL()
|
static java.net.URL |
getURL(java.lang.String contactString,
java.lang.String serviceName)
Utility method to get the full URL from a simplified contact string. |
void |
setServiceName(java.lang.String serviceName)
Specify the base name of the service, without the service context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static org.globus.util.I18n i18n
public static final java.lang.String DEFAULT_SERVICE_CONTEXT
private java.lang.String contactString
private java.lang.String serviceName
private java.net.URL url
private static final int HTTP_PORT
private static final int HTTPS_PORT
private static final java.lang.String URL_SEPARATOR
private static org.apache.commons.logging.Log logger
| Constructor Detail |
public ServiceURL(java.lang.String contactString)
[protocol://]host[:[port]][/service context/service path]
If contactString is null then defaults will be used for protocol, host and port.
Note: if the service path is not specified in the contact string then the service name MUST be specified using the appropriate setter.
contactString - The contact string.
public ServiceURL(java.lang.String contactString,
java.lang.String serviceName)
| Method Detail |
public static java.net.URL getURL(java.lang.String contactString,
java.lang.String serviceName)
throws java.net.MalformedURLException
contactString - the simplified or complete contact string to infer
the service URL from. See documentation of the
constructor for the syntax of the contact string.serviceName - the name of the service without the context
java.net.MalformedURLException - if contact string is malformed
as a URL even after prepending default protocol if missing.public java.lang.String getFullServicePath()
public void setServiceName(java.lang.String serviceName)
serviceName - the name of the service
(ex: core/admin/ContainerService)public java.lang.String getServiceName()
public java.net.URL getURL()
throws java.net.MalformedURLException
java.net.MalformedURLException - if contact string is malformed
as a URL even after prepending default protocol if missing.public static java.lang.String getDefaultProtocol()
public static java.lang.String getDefaultHost()
public static int getDefaultPort()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||