org.apache.ws.resource
Class WsrfRuntime

java.lang.Object
  extended byorg.apache.ws.resource.WsrfRuntime

public class WsrfRuntime
extends java.lang.Object

A singleton respresenting the WSRF runtime.


Field Summary
static java.lang.String CONFIG_DIALECT_SPRING_BEANS
          DOCUMENT_ME
static java.lang.String CONFIG_DIALECT_WSRF_JNDI_CONFIG
          DOCUMENT_ME
static java.lang.String JNDI_CONFIG_DIALECT
          DOCUMENT_ME
static java.lang.String JNDI_CONFIG_LOCATION
          DOCUMENT_ME
 
Method Summary
 java.net.URL getBaseWebappUrl()
          DOCUMENT_ME
 org.springframework.beans.factory.ListableBeanFactory getBeanFactory()
          If this runtime was configured via Spring, returns the Spring bean factory, otherwise returns null.
protected  java.net.URL getDefaultUrl()
          DOCUMENT_ME
 ResourceHome getResourceHome(java.lang.String portComponentName)
          Returns the ResourceHome for the JSR-109 portComponent with the specified name.
static WsrfRuntime getRuntime()
          DOCUMENT_ME
 java.lang.String getVersion()
          DOCUMENT_ME
 void init(java.util.Properties props)
          Initializes the WSRF runtime - should only be called once.
 void setBaseWebappUrl(java.net.URL baseWebappUrl)
          Sets the base webapp url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_DIALECT_SPRING_BEANS

public static final java.lang.String CONFIG_DIALECT_SPRING_BEANS
DOCUMENT_ME

See Also:
Constant Field Values

CONFIG_DIALECT_WSRF_JNDI_CONFIG

public static final java.lang.String CONFIG_DIALECT_WSRF_JNDI_CONFIG
DOCUMENT_ME

See Also:
Constant Field Values

JNDI_CONFIG_DIALECT

public static final java.lang.String JNDI_CONFIG_DIALECT
DOCUMENT_ME

See Also:
Constant Field Values

JNDI_CONFIG_LOCATION

public static final java.lang.String JNDI_CONFIG_LOCATION
DOCUMENT_ME

See Also:
Constant Field Values
Method Detail

getRuntime

public static WsrfRuntime getRuntime()
DOCUMENT_ME

Returns:
DOCUMENT_ME

setBaseWebappUrl

public void setBaseWebappUrl(java.net.URL baseWebappUrl)
Sets the base webapp url.

The URL should contin the webapp context name. (i.e. http://127.0.0.1:8080/wsrf)

The URL may contain one of the following:

  1. the marker <IP_ADDRESS> in which case we will attempt to determine the IP address at runtime. i.e. http://<IP_ADDRESS>:8080/wsrf (Do not use on multi-homed systems)
  2. the marker <HOST_NAME> in which case we will attempt to determine the host name at runtime i.e. http://<HOST_NAME>:8080/wsrf
  3. NO Marker in which case whatever value you add will be static and used. i.e. http://myhostname:8080/wsrf

Parameters:
baseWebappUrl - The base webapp url containing the webapp context. (i.e. http://127.0.0.1:8080/wsrf)

getBaseWebappUrl

public java.net.URL getBaseWebappUrl()
DOCUMENT_ME

Returns:
DOCUMENT_ME

getBeanFactory

public org.springframework.beans.factory.ListableBeanFactory getBeanFactory()
If this runtime was configured via Spring, returns the Spring bean factory, otherwise returns null.

Returns:
the Spring bean factory, or null if this runtime was not configured via Spring

getResourceHome

public ResourceHome getResourceHome(java.lang.String portComponentName)
                             throws ResourceException
Returns the ResourceHome for the JSR-109 portComponent with the specified name.

Parameters:
portComponentName - a JSR-109 portComponent name
Returns:
the ResourceHome for the JSR-109 portComponent with the specified name
Throws:
ResourceException - if no home is configured for the specified portComponent name

getVersion

public java.lang.String getVersion()
DOCUMENT_ME

Returns:
DOCUMENT_ME

init

public void init(java.util.Properties props)
Initializes the WSRF runtime - should only be called once.

Parameters:
props - properties that tell the runtime how to initialize itself; must not be null

getDefaultUrl

protected java.net.URL getDefaultUrl()
                              throws java.net.MalformedURLException,
                                     java.net.UnknownHostException
DOCUMENT_ME

Returns:
DOCUMENT_ME
Throws:
java.net.UnknownHostException
java.net.MalformedURLException


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.