org.apache.axis2.osgi.core
Interface SOAPProvider


public interface SOAPProvider

SOAPProvider is an interface for generic SOAP functionality. Use this interface to register SOAPProvider services with the OSGi runtime using the BundleContext.registerService() methods.


Field Summary
static java.lang.String PROVIDER_MAJOR_VERSION
          The major version of the SOAPProvider implementation.
static java.lang.String PROVIDER_MINOR_VERSION
          The minor version of the SOAPProvider implementation.
static java.lang.String PROVIDER_NAME
          The name of the SOAPProvider implementation.
 
Method Summary
 void deployService(java.lang.String srvName, java.lang.Class srvClass, java.lang.Object srvObject, java.lang.String handlerChain)
          Deploys an Object as a WebService using the implementation's default binding type.
 void deployService(java.lang.String srvName, java.lang.String bindingType, java.lang.Class srvClass, java.lang.Object srvObject, java.lang.String handlerChain)
          Deploys an Object as a WebService using a specified binding type The service is deployed into the provider's default application context.
 void deployService(WebApp webApp, java.lang.String srvName, java.lang.Class srvClass, java.lang.Object srvObject, java.lang.String handlerChain)
          Deploys an Object as a WebService using the provider's default binding type.
 void deployService(WebApp webApp, java.lang.String srvName, java.lang.String bindingType, java.lang.Class srvClass, java.lang.Object srvObject, java.lang.String handlerChain)
          Deploys an Object as a WebService using a specified binding type The service is deployed into the specified WebApp context
 java.lang.Object getProviderDeployer()
           
 java.lang.Object getProviderDeployer(WebApp webApp)
           
 java.lang.Object getProviderEngine()
           
 java.lang.String getProviderName()
          Getter method for the implementation's provider name.
 java.lang.String getProviderVersion()
          Getter method for the implementation's version.
 WebApp getWebApp(org.osgi.framework.Bundle bundle, java.lang.String contextPath, boolean create)
          Gets a web application from the provider for the given context path, using the provided bundle as the location for the engine's configuration information
 WebApp getWebApp(java.lang.String contextPath, boolean create)
          Gets a web application from the provider for the given context path.
 void undeployService(java.lang.String srvName, java.lang.Class srvClass)
           
 void undeployService(WebApp webApp, java.lang.String srvName, java.lang.Class srvClass)
           
 

Field Detail

PROVIDER_NAME

static final java.lang.String PROVIDER_NAME
The name of the SOAPProvider implementation. Use this as the key when constructing the service's properties for registration with the OSGi runtime.

See Also:
Constant Field Values

PROVIDER_MAJOR_VERSION

static final java.lang.String PROVIDER_MAJOR_VERSION
The major version of the SOAPProvider implementation. Use this as the key when constructing the service's properties for registration with the OSGi runtime.

See Also:
Constant Field Values

PROVIDER_MINOR_VERSION

static final java.lang.String PROVIDER_MINOR_VERSION
The minor version of the SOAPProvider implementation. Use this as the key when constructing the service's properties for registration with the OSGi runtime.

See Also:
Constant Field Values
Method Detail

getProviderName

java.lang.String getProviderName()
Getter method for the implementation's provider name. This name should be the same as the one used during the registration of the SOAPProvider service

Returns:
the Provider Name

getProviderVersion

java.lang.String getProviderVersion()
Getter method for the implementation's version. This name should be constructed from the major and minor versions used during registration of the SOAPProvider service.

Returns:
the Provider Version

getProviderEngine

java.lang.Object getProviderEngine()

getProviderDeployer

java.lang.Object getProviderDeployer()

getProviderDeployer

java.lang.Object getProviderDeployer(WebApp webApp)

deployService

void deployService(java.lang.String srvName,
                   java.lang.Class srvClass,
                   java.lang.Object srvObject,
                   java.lang.String handlerChain)
                   throws java.lang.Exception
Deploys an Object as a WebService using the implementation's default binding type. The service is deployed into the provider's default application context.

Parameters:
srvName - the display name of the service
srvClass - the class or interface that should be exposed. Specifying an interface allows only the desired methods of the service object to be published.
srvObject - the actual implementation
Throws:
java.lang.Exception

deployService

void deployService(java.lang.String srvName,
                   java.lang.String bindingType,
                   java.lang.Class srvClass,
                   java.lang.Object srvObject,
                   java.lang.String handlerChain)
                   throws java.lang.Exception
Deploys an Object as a WebService using a specified binding type The service is deployed into the provider's default application context.

Parameters:
srvName - the display name of the service
bindingType - the name of the desired binding type
srvClass - the class or interface that should be exposed. Specifying an interface allows only the desired methods of the service object to be published.
srvObject - the actual implementation
Throws:
java.lang.Exception

deployService

void deployService(WebApp webApp,
                   java.lang.String srvName,
                   java.lang.Class srvClass,
                   java.lang.Object srvObject,
                   java.lang.String handlerChain)
                   throws java.lang.Exception
Deploys an Object as a WebService using the provider's default binding type. The service is deployed into the specified WebApp context

Parameters:
webApp - the target web application context
srvName - the display name of the service
srvClass - the class or interface that should be exposed. Specifying an interface allows only the desired methods of the service object to be published.
srvObject - the actual implementation
Throws:
java.lang.Exception

deployService

void deployService(WebApp webApp,
                   java.lang.String srvName,
                   java.lang.String bindingType,
                   java.lang.Class srvClass,
                   java.lang.Object srvObject,
                   java.lang.String handlerChain)
                   throws java.lang.Exception
Deploys an Object as a WebService using a specified binding type The service is deployed into the specified WebApp context

Parameters:
webApp - the target web application context
srvName - the display name of the service
bindingType - the name of the desired binding type
srvClass - the class or interface that should be exposed. Specifying an interface allows only the desired methods of the service object to be published.
srvObject - the actual implementation
Throws:
java.lang.Exception

undeployService

void undeployService(java.lang.String srvName,
                     java.lang.Class srvClass)
                     throws java.lang.Exception
Throws:
java.lang.Exception

undeployService

void undeployService(WebApp webApp,
                     java.lang.String srvName,
                     java.lang.Class srvClass)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getWebApp

WebApp getWebApp(java.lang.String contextPath,
                 boolean create)
                 throws java.lang.Exception
Gets a web application from the provider for the given context path.

Parameters:
contextPath - the context path of the desired WebApp
create - if true, create the WebApp if it does not exits.
Returns:
return the WebApp
Throws:
java.lang.Exception

getWebApp

WebApp getWebApp(org.osgi.framework.Bundle bundle,
                 java.lang.String contextPath,
                 boolean create)
                 throws java.lang.Exception
Gets a web application from the provider for the given context path, using the provided bundle as the location for the engine's configuration information

Parameters:
contextPath - the context path of the desired WebApp
create - if true, create the WebApp if it does not exits.
Returns:
return the WebApp
Throws:
java.lang.Exception


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.