axis.dynamic
Class SoapConfiguration

java.lang.Object
  extended by axis.dynamic.SoapConfiguration
All Implemented Interfaces:
org.apache.axis.EngineConfiguration
Direct Known Subclasses:
SoapServerConfiguration

public abstract class SoapConfiguration
extends Object
implements org.apache.axis.EngineConfiguration

abstract base class for dynamic Axis EngineConfigurations.


Field Summary
protected  org.apache.axis.AxisEngine _engine
          reference to the engine that uses this configuration, set in configureEngine(org.apache.axis.AxisEngine)
protected  Hashtable<String,String> _globalOptions
          synchronization shouldn't be necessary, it's a Hashtable and only modified on startup
protected  org.apache.axis.Handler _globalRequest
          the global request handler (may be a handler chain)
protected  org.apache.axis.Handler _globalResponse
          the global response handler (may be a handler chain)
protected  org.apache.axis.encoding.TypeMappingRegistry _tmr
          this will register the Axis default type mappings
protected  Map<QName,org.apache.axis.Handler> _transports
          the transport handlers.
 
Fields inherited from interface org.apache.axis.EngineConfiguration
PROPERTY_NAME
 
Constructor Summary
SoapConfiguration()
           
 
Method Summary
 void configureEngine(org.apache.axis.AxisEngine engine)
          called from AxisEngine.init().
 void deployTransport(String name, org.apache.axis.Handler transport)
          sets the transport for the given name
 Hashtable<String,String> getGlobalOptions()
          Returns the global configuration options.
 org.apache.axis.Handler getGlobalRequest()
          Returns a global request handler.
 org.apache.axis.Handler getGlobalResponse()
          Returns a global response handler.
 org.apache.axis.Handler getHandler(QName qname)
          We do not use handlers with a 'global' name, so this method always returns null.
 List<String> getRoles()
          currently, we don't use roles, so this method always returns null.
 org.apache.axis.Handler getTransport(QName qname)
           
 org.apache.axis.encoding.TypeMappingRegistry getTypeMappingRegistry()
          Get our TypeMappingRegistry.
 void setGlobalRequest(org.apache.axis.Handler globalRequest)
          Set the global request Handler
 void setGlobalResponse(org.apache.axis.Handler globalResponse)
          Set the global response Handler
 void undeployTransport(String name)
          removes the transport for the given name
 void writeEngineConfig(org.apache.axis.AxisEngine engine)
          We don't write ourselves out, so this is a no-op.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.axis.EngineConfiguration
getDeployedServices, getService, getServiceByNamespaceURI
 

Field Detail

_transports

protected final Map<QName,org.apache.axis.Handler> _transports
the transport handlers.


_tmr

protected final org.apache.axis.encoding.TypeMappingRegistry _tmr
this will register the Axis default type mappings


_globalRequest

protected org.apache.axis.Handler _globalRequest
the global request handler (may be a handler chain)


_globalResponse

protected org.apache.axis.Handler _globalResponse
the global response handler (may be a handler chain)


_engine

protected org.apache.axis.AxisEngine _engine
reference to the engine that uses this configuration, set in configureEngine(org.apache.axis.AxisEngine)


_globalOptions

protected final Hashtable<String,String> _globalOptions
synchronization shouldn't be necessary, it's a Hashtable and only modified on startup

Constructor Detail

SoapConfiguration

public SoapConfiguration()
Method Detail

configureEngine

public void configureEngine(org.apache.axis.AxisEngine engine)
                     throws org.apache.axis.ConfigurationException
called from AxisEngine.init(). Note: when this method is called, the given engine already has a reference to this object.

Specified by:
configureEngine in interface org.apache.axis.EngineConfiguration
Parameters:
engine -
Throws:
org.apache.axis.ConfigurationException
See Also:
EngineConfiguration.configureEngine(AxisEngine), AxisEngine.init()

writeEngineConfig

public void writeEngineConfig(org.apache.axis.AxisEngine engine)
We don't write ourselves out, so this is a no-op.

Specified by:
writeEngineConfig in interface org.apache.axis.EngineConfiguration
Parameters:
engine -

getGlobalOptions

public Hashtable<String,String> getGlobalOptions()
Returns the global configuration options.

Specified by:
getGlobalOptions in interface org.apache.axis.EngineConfiguration
Returns:
the global options

getGlobalRequest

public org.apache.axis.Handler getGlobalRequest()
Returns a global request handler.

Specified by:
getGlobalRequest in interface org.apache.axis.EngineConfiguration
Returns:
the global request handler (may be a handler chain)

setGlobalRequest

public void setGlobalRequest(org.apache.axis.Handler globalRequest)
Set the global request Handler

Parameters:
globalRequest - (may be a handler chain)

getGlobalResponse

public org.apache.axis.Handler getGlobalResponse()
Returns a global response handler.

Specified by:
getGlobalResponse in interface org.apache.axis.EngineConfiguration
Returns:
the global response handler (may be a handler chain)

setGlobalResponse

public void setGlobalResponse(org.apache.axis.Handler globalResponse)
Set the global response Handler

Parameters:
globalResponse - (may be a handler chain)

getHandler

public org.apache.axis.Handler getHandler(QName qname)
We do not use handlers with a 'global' name, so this method always returns null.

Specified by:
getHandler in interface org.apache.axis.EngineConfiguration
Parameters:
qname -
Returns:
global handler with given name
See Also:
EngineConfiguration.getHandler(QName)

getTypeMappingRegistry

public org.apache.axis.encoding.TypeMappingRegistry getTypeMappingRegistry()
Get our TypeMappingRegistry.

Specified by:
getTypeMappingRegistry in interface org.apache.axis.EngineConfiguration
Returns:
the TypeMappingRegistry of this configuration.

getTransport

public org.apache.axis.Handler getTransport(QName qname)
Specified by:
getTransport in interface org.apache.axis.EngineConfiguration
Parameters:
qname -
Returns:
the transport for the given name, may be null
See Also:
EngineConfiguration.getTransport(QName)

deployTransport

public void deployTransport(String name,
                            org.apache.axis.Handler transport)
sets the transport for the given name

Parameters:
name - e.g. "http"
transport -

undeployTransport

public void undeployTransport(String name)
removes the transport for the given name

Parameters:
name -

getRoles

public List<String> getRoles()
currently, we don't use roles, so this method always returns null.

Specified by:
getRoles in interface org.apache.axis.EngineConfiguration
Returns:
empty list


Copyright © 2004-2007 University of Troms?. All Rights Reserved.