| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.axis.deployment.wsdd.WSDDConstantsorg.apache.axis.deployment.wsdd.WSDDElementorg.apache.axis.deployment.wsdd.WSDDDeploymentpublic class WSDDDeploymentextends WSDDElementimplements WSDDTypeMappingContainer, WSDDEngineConfigurationField Summary | |
protected static Log | |
Fields inherited from interface org.apache.axis.EngineConfiguration | |
PROPERTY_NAME | |
Constructor Summary | |
| |
| |
Method Summary | |
protected void |
|
protected void |
|
protected void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Iterator |
|
WSDDDeployment |
|
protected QName |
|
AxisEngine | |
WSDDGlobalConfiguration |
|
Hashtable |
|
Handler |
|
Handler |
|
Handler |
|
WSDDHandler[] | |
List |
|
SOAPService |
|
SOAPService |
|
WSDDService[] |
|
Handler |
|
WSDDTransport[] | |
TypeMapping |
|
TypeMappingRegistry |
|
WSDDTypeMapping[] | |
WSDDHandler |
|
WSDDService |
|
WSDDTransport |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.apache.axis.deployment.wsdd.WSDDElement | |
getChildElement, getChildElements, getElementName, writeToContext | |
public WSDDDeployment()
Default constructor
public WSDDDeployment(Element e)
throws WSDDExceptionCreate an element in WSDD that wraps an extant DOM element
- Parameters:
e- the element to create the deployment from
- Throws:
WSDDException- when problems occur deploying a service or type mapping.
public void configureEngine(AxisEngine engine) throws ConfigurationException
Configure this AxisEngine using whatever data source we have.
- Specified by:
- configureEngine in interface EngineConfiguration
- Parameters:
engine- the AxisEngine we'll deploy state to
- Throws:
ConfigurationException- if there was a problem
public void deployHandler(WSDDHandler handler)
Put a WSDDHandler into this deployment, replacing any other WSDDHandler which might already be present with the same QName.
- Parameters:
handler- a WSDDHandler to insert in this deployment
public void deployService(WSDDService service)
Put a WSDDService into this deployment, replacing any other WSDDService which might already be present with the same QName.
- Parameters:
service- a WSDDHandler to insert in this deployment
public void deployTransport(WSDDTransport transport)
Put a WSDDTransport into this deployment, replacing any other WSDDTransport which might already be present with the same QName.
- Parameters:
transport- a WSDDTransport to insert in this deployment
public void deployTypeMapping(WSDDTypeMapping typeMapping) throws WSDDException
- Specified by:
- deployTypeMapping in interface WSDDTypeMappingContainer
public Iterator getDeployedServices()
throws ConfigurationExceptionGet an enumeration of the services deployed to this engine
- Specified by:
- getDeployedServices in interface EngineConfiguration
public WSDDDeployment getDeployment()
Get the WSDDDeployment for this engine configuration.
- Specified by:
- getDeployment in interface WSDDEngineConfiguration
- Returns:
- the WSDDDeployment
protected QName getElementName()
Return the element name of a particular subclass.
- Overrides:
- getElementName in interface WSDDElement
public WSDDGlobalConfiguration getGlobalConfiguration()
Get our global configuration
- Returns:
- a global configuration object
public Hashtable getGlobalOptions()
throws ConfigurationExceptionReturns the global configuration options.
- Specified by:
- getGlobalOptions in interface EngineConfiguration
- Returns:
- the global options as a
Hashtable
- Throws:
ConfigurationException- if the global options could not be returned
public Handler getGlobalRequest() throws ConfigurationException
Returns a global request handler.
- Specified by:
- getGlobalRequest in interface EngineConfiguration
- Returns:
- the
Handlerthat globally handles requests
- Throws:
ConfigurationException- if there was some error fetching the handler
public Handler getGlobalResponse() throws ConfigurationException
Returns a global response handler.
- Specified by:
- getGlobalResponse in interface EngineConfiguration
- Returns:
- the
Handlerthat globally handles responses
- Throws:
ConfigurationException- if there was some error fetching the handler
public Handler getHandler(QName name) throws ConfigurationException
Return an instance of the named handler.
- Specified by:
- getHandler in interface EngineConfiguration
- Parameters:
name- the name of the handler to get
- Returns:
- an Axis handler with the specified QName or null of not found
public List getRoles()
Get a list of roles that this engine plays globally. Services within the engine configuration may also add additional roles.
- Specified by:
- getRoles in interface EngineConfiguration
- Returns:
- a
Listof the roles for this engine
public SOAPService getService(QName name) throws ConfigurationException
Retrieve an instance of the named service.
- Specified by:
- getService in interface EngineConfiguration
- Parameters:
name- theQNameidentifying theService
- Returns:
- the
Serviceassociated withqname
- Throws:
ConfigurationException- if there was an error resolving the qname
public SOAPService getServiceByNamespaceURI(String namespace) throws ConfigurationException
Get a service which has been mapped to a particular namespace.
- Specified by:
- getServiceByNamespaceURI in interface EngineConfiguration
- Parameters:
namespace- a namespace URI
- Returns:
- an instance of the appropriate Service, or null
- Throws:
ConfigurationException- if there was an error resolving the namespace
public Handler getTransport(QName name) throws ConfigurationException
Retrieve an instance of the named transport.
- Specified by:
- getTransport in interface EngineConfiguration
- Parameters:
name- theQNameof the transport
- Returns:
- a
Handlerimplementing the transport
- Throws:
ConfigurationException- if there was an error resolving the transport
public TypeMappingRegistry getTypeMappingRegistry() throws ConfigurationException
Retrieve the TypeMappingRegistry for this engine.
- Specified by:
- getTypeMappingRegistry in interface EngineConfiguration
- Returns:
- the type mapping registry
- Throws:
ConfigurationException- if there was an error resolving the registry
public WSDDTypeMapping[] getTypeMappings()
- Returns:
- an array of type mappings in this deployment
public WSDDService getWSDDService(QName qname)
Return the WSDD description for a given named service
public void registerNamespaceForService(String namespace,
WSDDService service)Register a particular namepsace which maps to a given WSDDService. This will be used for namespace-based dispatching.
- Parameters:
namespace- a namespace URIservice- the target WSDDService
public void removeNamespaceMapping(String namespace)
Remove a namespace -> WSDDService mapping.
- Parameters:
namespace- the namespace URI to unmap
public void undeployHandler(QName qname)
Remove a named handler
- Parameters:
qname- the QName of the handler to remove
public void undeployService(QName qname)
Remove a named service
- Parameters:
qname- the QName of the service to remove
public void undeployTransport(QName qname)
Remove a named transport
- Parameters:
qname- the QName of the transport to remove
public void writeEngineConfig(AxisEngine engine) throws ConfigurationException
Read the configuration from an engine, and store it somehow.
- Specified by:
- writeEngineConfig in interface EngineConfiguration
- Parameters:
engine- the AxisEngine from which to read state.
- Throws:
ConfigurationException- if there was a problem
public void writeToContext(SerializationContext context) throws IOException
Write this element out to a SerializationContext
- Overrides:
- writeToContext in interface WSDDElement