public class WSDDDeployment extends WSDDElement implements WSDDTypeMappingContainer, WSDDEngineConfiguration
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
ARRAY_DESERIALIZER_FACTORY, ARRAY_SERIALIZER_FACTORY, ATTR_ATTACHMENT_FORMAT, ATTR_CLASS, ATTR_CLASSNAME, ATTR_DESERIALIZER, ATTR_ENCSTYLE, ATTR_INHEADER, ATTR_INNER_NAME, ATTR_INNER_TYPE, ATTR_ITEMQNAME, ATTR_ITEMTYPE, ATTR_LANG_SPEC_TYPE, ATTR_LOCKED, ATTR_MEP, ATTR_MODE, ATTR_NAME, ATTR_OUTHEADER, ATTR_PIVOT, ATTR_PROVIDER, ATTR_QNAME, ATTR_RETHEADER, ATTR_RETITEMQNAME, ATTR_RETITEMTYPE, ATTR_RETQNAME, ATTR_RETTYPE, ATTR_SERIALIZER, ATTR_SOAP12ACTION, ATTR_SOAPACTION, ATTR_SOAPACTORNAME, ATTR_STREAMING, ATTR_STYLE, ATTR_TYPE, ATTR_USE, ATTR_VALUE, BEAN_DESERIALIZER_FACTORY, BEAN_SERIALIZER_FACTORY, ELEM_WSDD_ARRAYMAPPING, ELEM_WSDD_BEANMAPPING, ELEM_WSDD_CHAIN, ELEM_WSDD_DEPLOY, ELEM_WSDD_DOC, ELEM_WSDD_ELEMENTMAPPING, ELEM_WSDD_ENDPOINTURL, ELEM_WSDD_FAULT, ELEM_WSDD_FAULTFLOW, ELEM_WSDD_GLOBAL, ELEM_WSDD_HANDLER, ELEM_WSDD_JAXRPC_CHAIN, ELEM_WSDD_JAXRPC_HANDLERINFO, ELEM_WSDD_JAXRPC_HEADER, ELEM_WSDD_JAXRPC_ROLE, ELEM_WSDD_NAMESPACE, ELEM_WSDD_OPERATION, ELEM_WSDD_PARAM, ELEM_WSDD_REQFLOW, ELEM_WSDD_RESPFLOW, ELEM_WSDD_ROLE, ELEM_WSDD_SERVICE, ELEM_WSDD_TRANSPORT, ELEM_WSDD_TYPEMAPPING, ELEM_WSDD_UNDEPLOY, ELEM_WSDD_WSDLFILE, NS_PREFIX_WSDD, NS_PREFIX_WSDD_JAVA, PROVIDER_BSF, PROVIDER_COM, PROVIDER_CORBA, PROVIDER_EJB, PROVIDER_HANDLER, PROVIDER_MSG, PROVIDER_RMI, PROVIDER_RPC, QNAME_ARRAYMAPPING, QNAME_BEANMAPPING, QNAME_BSF_PROVIDER, QNAME_CHAIN, QNAME_COM_PROVIDER, QNAME_CORBA_PROVIDER, QNAME_DEPLOY, QNAME_DOC, QNAME_EJB_PROVIDER, QNAME_ELEMENTMAPPING, QNAME_ENDPOINTURL, QNAME_FAULT, QNAME_FAULTFLOW, QNAME_GLOBAL, QNAME_HANDLER, QNAME_HANDLER_PROVIDER, QNAME_JAVAMSG_PROVIDER, QNAME_JAVARPC_PROVIDER, QNAME_JAXRPC_HANDLERINFO, QNAME_JAXRPC_HANDLERINFOCHAIN, QNAME_JAXRPC_HEADER, QNAME_JAXRPC_ROLE, QNAME_NAMESPACE, QNAME_OPERATION, QNAME_PARAM, QNAME_REQFLOW, QNAME_RESPFLOW, QNAME_RMI_PROVIDER, QNAME_SERVICE, QNAME_TRANSPORT, QNAME_TYPEMAPPING, QNAME_UNDEPLOY, QNAME_WSDLFILE, URI_WSDD, URI_WSDD_HANDLER, URI_WSDD_JAVA, URI_WSDD_WSDD_BSF, URI_WSDD_WSDD_COM
PROPERTY_NAME
Constructor and Description |
---|
WSDDDeployment()
Default constructor
|
WSDDDeployment(Element e)
Create an element in WSDD that wraps an extant DOM element
|
Modifier and Type | Method and Description |
---|---|
protected void |
addHandler(WSDDHandler handler) |
protected void |
addService(WSDDService service) |
protected void |
addTransport(WSDDTransport transport) |
void |
configureEngine(AxisEngine engine)
Configure this AxisEngine using whatever data source we have.
|
void |
deployHandler(WSDDHandler handler)
Put a WSDDHandler into this deployment, replacing any other
WSDDHandler which might already be present with the same QName.
|
void |
deployService(WSDDService service)
Put a WSDDService into this deployment, replacing any other
WSDDService which might already be present with the same QName.
|
void |
deployToRegistry(WSDDDeployment target) |
void |
deployTransport(WSDDTransport transport)
Put a WSDDTransport into this deployment, replacing any other
WSDDTransport which might already be present with the same QName.
|
void |
deployTypeMapping(WSDDTypeMapping typeMapping) |
Iterator |
getDeployedServices()
Get an enumeration of the services deployed to this engine
|
WSDDDeployment |
getDeployment()
Get the WSDDDeployment for this engine configuration.
|
protected QName |
getElementName()
Return the element name of a particular subclass.
|
AxisEngine |
getEngine() |
WSDDGlobalConfiguration |
getGlobalConfiguration()
Get our global configuration
|
Hashtable |
getGlobalOptions()
Returns the global configuration options.
|
Handler |
getGlobalRequest()
Returns a global request handler.
|
Handler |
getGlobalResponse()
Returns a global response handler.
|
Handler |
getHandler(QName name)
Return an instance of the named handler.
|
WSDDHandler[] |
getHandlers() |
List |
getRoles()
Get a list of roles that this engine plays globally.
|
SOAPService |
getService(QName name)
Retrieve an instance of the named service.
|
SOAPService |
getServiceByNamespaceURI(String namespace)
Get a service which has been mapped to a particular namespace.
|
WSDDService[] |
getServices()
Return an array of the services in this deployment
|
Handler |
getTransport(QName name)
Retrieve an instance of the named transport.
|
WSDDTransport[] |
getTransports() |
TypeMapping |
getTypeMapping(String encodingStyle) |
TypeMappingRegistry |
getTypeMappingRegistry()
Retrieve the TypeMappingRegistry for this engine.
|
WSDDTypeMapping[] |
getTypeMappings() |
WSDDHandler |
getWSDDHandler(QName qname) |
WSDDService |
getWSDDService(QName qname)
Return the WSDD description for a given named service
|
WSDDTransport |
getWSDDTransport(QName qname) |
void |
registerNamespaceForService(String namespace,
WSDDService service)
Register a particular namepsace which maps to a given WSDDService.
|
void |
removeNamespaceMapping(String namespace)
Remove a namespace -> WSDDService mapping.
|
void |
setGlobalConfiguration(WSDDGlobalConfiguration globalConfig) |
void |
undeployHandler(QName qname)
Remove a named handler
|
void |
undeployService(QName qname)
Remove a named service
|
void |
undeployTransport(QName qname)
Remove a named transport
|
void |
writeEngineConfig(AxisEngine engine)
Read the configuration from an engine, and store it somehow.
|
void |
writeToContext(SerializationContext context)
Write this element out to a SerializationContext
|
getChildElement, getChildElements
public WSDDDeployment()
public WSDDDeployment(Element e) throws WSDDException
e
- the element to create the deployment fromWSDDException
- when problems occur deploying a service or type mapping.protected void addHandler(WSDDHandler handler)
protected void addService(WSDDService service)
protected void addTransport(WSDDTransport transport)
public void deployHandler(WSDDHandler handler)
handler
- a WSDDHandler to insert in this deploymentpublic void deployTransport(WSDDTransport transport)
transport
- a WSDDTransport to insert in this deploymentpublic void deployService(WSDDService service)
service
- a WSDDHandler to insert in this deploymentpublic void undeployHandler(QName qname)
qname
- the QName of the handler to removepublic void undeployService(QName qname)
qname
- the QName of the service to removepublic void undeployTransport(QName qname)
qname
- the QName of the transport to removepublic void deployTypeMapping(WSDDTypeMapping typeMapping) throws WSDDException
deployTypeMapping
in interface WSDDTypeMappingContainer
WSDDException
protected QName getElementName()
WSDDElement
getElementName
in class WSDDElement
public void deployToRegistry(WSDDDeployment target) throws ConfigurationException
ConfigurationException
public void writeToContext(SerializationContext context) throws IOException
WSDDElement
writeToContext
in class WSDDElement
IOException
public WSDDGlobalConfiguration getGlobalConfiguration()
public void setGlobalConfiguration(WSDDGlobalConfiguration globalConfig)
public WSDDTypeMapping[] getTypeMappings()
public WSDDService[] getServices()
public WSDDService getWSDDService(QName qname)
public Handler getHandler(QName name) throws ConfigurationException
getHandler
in interface EngineConfiguration
name
- the name of the handler to getConfigurationException
- if there was a failure in resolving
qname
public Handler getTransport(QName name) throws ConfigurationException
getTransport
in interface EngineConfiguration
name
- the QName
of the transportHandler
implementing the transportConfigurationException
- if there was an error resolving the
transportpublic SOAPService getService(QName name) throws ConfigurationException
getService
in interface EngineConfiguration
name
- the QName
identifying the
Service
Service
associated with qname
ConfigurationException
- if there was an error resolving the
qnamepublic SOAPService getServiceByNamespaceURI(String namespace) throws ConfigurationException
EngineConfiguration
getServiceByNamespaceURI
in interface EngineConfiguration
namespace
- a namespace URIConfigurationException
- if there was an error resolving the
namespacepublic void configureEngine(AxisEngine engine) throws ConfigurationException
EngineConfiguration
configureEngine
in interface EngineConfiguration
engine
- the AxisEngine we'll deploy state toConfigurationException
- if there was a problempublic void writeEngineConfig(AxisEngine engine) throws ConfigurationException
EngineConfiguration
writeEngineConfig
in interface EngineConfiguration
engine
- the AxisEngine from which to read state.ConfigurationException
- if there was a problempublic TypeMapping getTypeMapping(String encodingStyle) throws ConfigurationException
ConfigurationException
public TypeMappingRegistry getTypeMappingRegistry() throws ConfigurationException
EngineConfiguration
getTypeMappingRegistry
in interface EngineConfiguration
ConfigurationException
- if there was an error resolving the
registrypublic Handler getGlobalRequest() throws ConfigurationException
EngineConfiguration
getGlobalRequest
in interface EngineConfiguration
Handler
that globally handles requestsConfigurationException
- if there was some error fetching the
handlerpublic Handler getGlobalResponse() throws ConfigurationException
EngineConfiguration
getGlobalResponse
in interface EngineConfiguration
Handler
that globally handles responsesConfigurationException
- if there was some error fetching the
handlerpublic Hashtable getGlobalOptions() throws ConfigurationException
EngineConfiguration
getGlobalOptions
in interface EngineConfiguration
Hashtable
ConfigurationException
- if the global options could not be
returnedpublic List getRoles()
EngineConfiguration
getRoles
in interface EngineConfiguration
List
of the roles for this enginepublic Iterator getDeployedServices() throws ConfigurationException
getDeployedServices
in interface EngineConfiguration
Iterator
over the ServiceDesc
objectsConfigurationException
- if the deployed services could not be
returnedServiceDesc
public void registerNamespaceForService(String namespace, WSDDService service)
namespace
- a namespace URIservice
- the target WSDDServicepublic void removeNamespaceMapping(String namespace)
namespace
- the namespace URI to unmappublic AxisEngine getEngine()
public WSDDDeployment getDeployment()
WSDDEngineConfiguration
getDeployment
in interface WSDDEngineConfiguration
public WSDDHandler[] getHandlers()
public WSDDHandler getWSDDHandler(QName qname)
public WSDDTransport[] getTransports()
public WSDDTransport getWSDDTransport(QName qname)
Copyright © The Apache Software Foundation. All Rights Reserved.