|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.container.ServiceHost
Host lookup used to support multi-homed host configurations
| Field Summary | |
private static java.lang.String |
defaultHost
|
private static int |
defaultPort
|
private static java.lang.String |
defaultProtocol
|
private static boolean |
defaultsSet
|
private static org.apache.commons.logging.Log |
logger
|
static java.lang.String |
PROXY_PORT_PROPERTY
|
| Constructor Summary | |
ServiceHost()
|
|
| Method Summary | |
static java.net.URL |
getBaseURL()
Returns container base URL in the following form: scheme://host:port/context/. |
static java.net.URL |
getBaseURL(org.apache.axis.MessageContext context)
Returns container base URL in the following form: scheme://host:port/context/. |
static java.net.URL |
getDefaultBaseURL()
Returns the default container base URL in the following form: scheme://host:port/context/. |
static java.lang.String |
getDefaultHost()
Returns the default hostname of the container. |
static int |
getDefaultPort()
Returns the default port of the container. |
static java.lang.String |
getDefaultProtocol()
Returns the default protocol of the container. |
private static java.net.URL |
getEndpoint(org.apache.axis.MessageContext messageContext)
|
static java.lang.String |
getHost()
Returns the hostname of the container. |
static java.lang.String |
getHost(org.apache.axis.AxisEngine engine)
Returns the hostname of the container. |
static java.lang.String |
getHost(ContainerConfig config)
Returns the hostname of the container. |
static java.lang.String |
getHost(org.apache.axis.MessageContext context)
Returns the hostname of the container. |
static int |
getPort()
Returns the port number of the container. |
static int |
getPort(org.apache.axis.MessageContext context)
Returns the port number of the container. |
static java.lang.String |
getProtocol()
Returns the protocol of the container. |
static java.lang.String |
getProtocol(org.apache.axis.MessageContext context)
Returns the protocol of the container. |
protected static void |
setDefaults(java.lang.String protocol,
java.lang.String host,
int port)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PROXY_PORT_PROPERTY
private static final org.apache.commons.logging.Log logger
private static boolean defaultsSet
private static int defaultPort
private static java.lang.String defaultProtocol
private static java.lang.String defaultHost
| Constructor Detail |
public ServiceHost()
| Method Detail |
protected static void setDefaults(java.lang.String protocol,
java.lang.String host,
int port)
private static java.net.URL getEndpoint(org.apache.axis.MessageContext messageContext)
throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.net.URL getDefaultBaseURL()
throws java.io.IOException
scheme://host:port/context/. For example:
https://localhost:8443/wsrf/services/.
getBaseURL() function
for better chance of getting the right base URL.
java.io.IOException
public static java.net.URL getBaseURL()
throws java.io.IOException
scheme://host:port/context/. For example:
https://localhost:8443/wsrf/services/.
The container base URL is determined from the transport URL property
in MessageContext associated with the current thread.
If there is no MessageContext associated with the thread
default values will be used for the base URL.
java.io.IOException
public static java.net.URL getBaseURL(org.apache.axis.MessageContext context)
throws java.io.IOException
scheme://host:port/context/. For example:
https://localhost:8443/wsrf/services/.
The container base URL is determined from the transport URL property
in the specified MessageContext object.
If the MessageContext parameter is not specified the
default values will be used for the base URL.
context - MessageContext object from which to
determine the container base URL. Can be null.
java.io.IOExceptionpublic static int getDefaultPort()
getPort() function
for better chance of getting the right port number of the container.
public static int getPort()
MessageContext associated with the current thread.
If there is no MessageContext associated with the thread
the default port number will be returned.
public static int getPort(org.apache.axis.MessageContext context)
MessageContext object.
If the MessageContext parameter is not specified the
default port number will be returned.
context - MessageContext object from which to
determine the container port number. Can be null.
public static java.lang.String getDefaultProtocol()
http.
getProtocol() function
for better chance of getting the right protocol of the container.
public static java.lang.String getProtocol()
http.
The container protocol is determined from the transport URL property
in MessageContext associated with the current thread.
If there is no MessageContext associated with the thread
default protocol will be returned.
public static java.lang.String getProtocol(org.apache.axis.MessageContext context)
http.
The container protocol is determined from the transport URL property
in the specified MessageContext object.
If the MessageContext parameter is not specified the
default protocol will be returned.
context - MessageContext object from which to
determine the container protocol. Can be null.
public static java.lang.String getDefaultHost()
throws java.io.IOException
getHost() function for
better chance of getting the right hostname.
java.io.IOException
public static java.lang.String getHost()
throws java.io.IOException
MessageContext associated with the current thread.
If there is no MessageContext associated with the thread
the default hostname will be returned.
java.io.IOException
public static java.lang.String getHost(org.apache.axis.MessageContext context)
throws java.io.IOException
MessageContext configuration parameter.
context - MessageContext object from which to
determine the container hostname. Can be null.
If null the default hostname will be returned.
java.io.IOException
public static java.lang.String getHost(org.apache.axis.AxisEngine engine)
throws java.io.IOException
AxisEngine configuration parameter.
engine - AxisEngine object from which to
determine the container hostname. Can be null.
If null the default hostname will be returned.
java.io.IOException
public static java.lang.String getHost(ContainerConfig config)
throws java.io.IOException
config - ContainerConfig object from which to
determine the container hostname. Cannot be null.
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||