org.codehaus.ivory
Class DefaultAxisService

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLogEnabled
        |
        +--org.codehaus.ivory.DefaultAxisService
All Implemented Interfaces:
AxisService, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.activity.Startable

public class DefaultAxisService
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements AxisService, org.apache.avalon.framework.activity.Startable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.service.Serviceable

The default AxisService implementation.

Since:
Mar 9, 2003
Author:
Dan Diephouse

Field Summary
protected static java.lang.String DEFAULT_SERVER_CONFIG
           
static javax.xml.namespace.QName QNAME_AVALONRPC_PROVIDER
           
protected static java.lang.String SERVER_CONFIG_KEY
           
 
Fields inherited from interface org.codehaus.ivory.AxisService
ROLE, SERVICE_MANAGER_KEY
 
Constructor Summary
DefaultAxisService()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 void exposeClass(java.lang.String serviceName, java.lang.String classService)
          Exposes a class as a SOAP service.
 void exposeClass(java.lang.String serviceName, java.lang.String[] methodNames, java.lang.String className)
          Exposes a class as a SOAP service.
 void exposeService(java.lang.String serviceName, java.lang.String role)
          Exposes an Avalon component as a SOAP service.
 void exposeService(java.lang.String serviceName, java.lang.String[] methodNames, java.lang.String role)
          Exposes an Avalon component as a SOAP service.
 org.apache.axis.server.AxisServer getAxisServer()
          Get the AxisServer.
 org.apache.avalon.framework.service.ServiceManager getServiceManager()
           
 void initialize()
           
protected  void initializeAvalonServices(org.apache.avalon.framework.configuration.Configuration[] services)
           
 void initializeAxisServer()
          Initializes the AxisServer.
protected  void initializeClassServices(org.apache.avalon.framework.configuration.Configuration[] services)
           
protected  void initializeService(org.apache.axis.handlers.soap.SOAPService service, java.lang.String serviceName, java.lang.String[] methodNames, java.lang.String className)
          Initializes the SOAPService with the appropriate information.
protected  void initializeServices(org.apache.avalon.framework.configuration.Configuration services)
           
 void service(org.apache.avalon.framework.service.ServiceManager manager)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QNAME_AVALONRPC_PROVIDER

public static final javax.xml.namespace.QName QNAME_AVALONRPC_PROVIDER

SERVER_CONFIG_KEY

protected static final java.lang.String SERVER_CONFIG_KEY
See Also:
Constant Field Values

DEFAULT_SERVER_CONFIG

protected static final java.lang.String DEFAULT_SERVER_CONFIG
See Also:
Constant Field Values
Constructor Detail

DefaultAxisService

public DefaultAxisService()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Parameters:
configuration -
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Throws:
java.lang.Exception
See Also:
Initializable.initialize()

initializeServices

protected void initializeServices(org.apache.avalon.framework.configuration.Configuration services)
                           throws java.lang.Exception
Parameters:
services -
java.lang.Exception

initializeClassServices

protected void initializeClassServices(org.apache.avalon.framework.configuration.Configuration[] services)
                                throws java.lang.Exception
java.lang.Exception

initializeAvalonServices

protected void initializeAvalonServices(org.apache.avalon.framework.configuration.Configuration[] services)
                                 throws java.lang.Exception
java.lang.Exception

initializeAxisServer

public void initializeAxisServer()
                          throws java.lang.Exception
Initializes the AxisServer.

Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface org.apache.avalon.framework.activity.Startable
Throws:
java.lang.Exception
See Also:
Startable.start()

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface org.apache.avalon.framework.activity.Startable
Throws:
java.lang.Exception
See Also:
Startable.stop()

getAxisServer

public org.apache.axis.server.AxisServer getAxisServer()
Description copied from interface: AxisService
Get the AxisServer.

Specified by:
getAxisServer in interface AxisService
Returns:
AxisServer
See Also:
org.codehaus.ivory.axis.AxisService#getAxisServer()

exposeClass

public void exposeClass(java.lang.String serviceName,
                        java.lang.String classService)
                 throws org.apache.axis.AxisFault,
                        java.lang.ClassNotFoundException
Description copied from interface: AxisService
Exposes a class as a SOAP service. All methods are available to be executed.

Specified by:
exposeClass in interface AxisService
org.apache.axis.AxisFault
java.lang.ClassNotFoundException
See Also:
org.codehaus.ivory.axis.AxisService#exposeClass(java.lang.String, java.lang.Class)

exposeClass

public void exposeClass(java.lang.String serviceName,
                        java.lang.String[] methodNames,
                        java.lang.String className)
                 throws org.apache.axis.AxisFault,
                        java.lang.ClassNotFoundException
Description copied from interface: AxisService
Exposes a class as a SOAP service. Only the methods specified are exposed. If methodNames is null, then all methods are exposed.

Specified by:
exposeClass in interface AxisService
org.apache.axis.AxisFault
java.lang.ClassNotFoundException
See Also:
org.codehaus.ivory.axis.AxisService#exposeClass(java.lang.String, java.lang.String[], java.lang.Class)

exposeService

public void exposeService(java.lang.String serviceName,
                          java.lang.String role)
                   throws org.apache.axis.AxisFault,
                          java.lang.ClassNotFoundException
Description copied from interface: AxisService
Exposes an Avalon component as a SOAP service. All methods are available to be executed.

Specified by:
exposeService in interface AxisService
org.apache.axis.AxisFault
java.lang.ClassNotFoundException
See Also:
org.codehaus.ivory.axis.AxisService#exposeService(java.lang.String, java.lang.String)

exposeService

public void exposeService(java.lang.String serviceName,
                          java.lang.String[] methodNames,
                          java.lang.String role)
                   throws org.apache.axis.AxisFault,
                          java.lang.ClassNotFoundException
Description copied from interface: AxisService
Exposes an Avalon component as a SOAP service. Only the methods specified are exposed. If methodNames is null, then all methods are exposed.

Specified by:
exposeService in interface AxisService
org.apache.axis.AxisFault
java.lang.ClassNotFoundException
See Also:
org.codehaus.ivory.axis.AxisService#exposeService(java.lang.String, java.lang.String[], java.lang.String)

initializeService

protected void initializeService(org.apache.axis.handlers.soap.SOAPService service,
                                 java.lang.String serviceName,
                                 java.lang.String[] methodNames,
                                 java.lang.String className)
                          throws org.apache.axis.AxisFault,
                                 java.lang.ClassNotFoundException
Initializes the SOAPService with the appropriate information.

org.apache.axis.AxisFault
java.lang.ClassNotFoundException

service

public void service(org.apache.avalon.framework.service.ServiceManager manager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
org.apache.avalon.framework.service.ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

getServiceManager

public org.apache.avalon.framework.service.ServiceManager getServiceManager()


Copyright © -2003 Codehaus. All Rights Reserved.