org.apache.ws.util.platform
Class JaxRpcPlatform

java.lang.Object
  extended byorg.apache.ws.util.platform.JaxRpcPlatform
Direct Known Subclasses:
AxisJaxRpcPlatform, JBossJaxRpcPlatform, WeblogicJaxRpcPlatform, WebsphereJaxRpcPlatform

public abstract class JaxRpcPlatform
extends java.lang.Object

An Enumeration of JAX-RPC platform types supported by Apache WSRF. Currently the supported platforms are Apache Axis (AXIS) and BEA WebLogic Server (WEBLOGIC).

Author:
Ian Springer, Sal Campana

Field Summary
static JaxRpcPlatform AXIS
          Axis JaxRpcPlatform instance.
static JaxRpcPlatform WEBLOGIC
          Weblogic JaxRpcPlatform instance.
 
Constructor Summary
JaxRpcPlatform()
           
 
Method Summary
abstract  ResourceContext createResourceContext(javax.xml.rpc.handler.soap.SOAPMessageContext soapMsgContext)
          Creates a ResourceContext for this request.
abstract  java.lang.String getDescription()
          Returns a short description of the platform.
abstract  java.lang.String getEndpointUrl(java.lang.String baseWebappUrl, java.lang.String serviceName)
          Returns the platform-specific endpoint url for a service on a given platform.
static JaxRpcPlatform getJaxRpcPlatform()
          Returns the JaxRpcPlatform for this environment.
abstract  java.lang.String getSoapFactoryImpl()
          Returns the SOAPFactoryImpl class name.
abstract  java.lang.String toString()
          Returns the description of the JAX-RPC platform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AXIS

public static JaxRpcPlatform AXIS
Axis JaxRpcPlatform instance.


WEBLOGIC

public static JaxRpcPlatform WEBLOGIC
Weblogic JaxRpcPlatform instance.

Constructor Detail

JaxRpcPlatform

public JaxRpcPlatform()
Method Detail

getDescription

public abstract java.lang.String getDescription()
Returns a short description of the platform.

Returns:
a short description of the platform

getEndpointUrl

public abstract java.lang.String getEndpointUrl(java.lang.String baseWebappUrl,
                                                java.lang.String serviceName)
Returns the platform-specific endpoint url for a service on a given platform. An example of this would be:
baseWebappUrl = http://localhost:8080/wsrf
serviceName = filesystem
On the Axis platform the endpoint URL is: http://localhost:8080/wsrf/services/filesystem

Parameters:
baseWebappUrl - The url containing the webapp context (i.e. http://localhost:8080/wsrf)
serviceName - The service name which is registered with the platform
Returns:
The endpoint url for the service.

getSoapFactoryImpl

public abstract java.lang.String getSoapFactoryImpl()
Returns the SOAPFactoryImpl class name.

Returns:
SOAPFactoryImpl class name.

createResourceContext

public abstract ResourceContext createResourceContext(javax.xml.rpc.handler.soap.SOAPMessageContext soapMsgContext)
                                               throws java.lang.Exception
Creates a ResourceContext for this request.

Parameters:
soapMsgContext - the JAX-RPC SOAP message context for this request
Returns:
a ResourceContext for this request
Throws:
java.lang.Exception

toString

public abstract java.lang.String toString()
Returns the description of the JAX-RPC platform.

Returns:
String

getJaxRpcPlatform

public static JaxRpcPlatform getJaxRpcPlatform()
Returns the JaxRpcPlatform for this environment. This method is meant to be called from within the classloader hosting the JAX-RPC engine.

Returns:
the JaxRpcPlatform for this classloader


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