org.jboss.axis.deployment.wsdd
Class WSDDService

java.lang.Object
  extended byorg.jboss.axis.deployment.wsdd.WSDDConstants (src) 
      extended byorg.jboss.axis.deployment.wsdd.WSDDElement (src) 
          extended byorg.jboss.axis.deployment.wsdd.WSDDDeployableItem (src) 
              extended byorg.jboss.axis.deployment.wsdd.WSDDTargetedChain (src) 
                  extended byorg.jboss.axis.deployment.wsdd.WSDDService
All Implemented Interfaces:
WSDDTypeMappingContainer (src)

public class WSDDService
extends WSDDTargetedChain (src)
implements WSDDTypeMappingContainer (src)

A service represented in WSDD.


Field Summary
 
Fields inherited from class org.jboss.axis.deployment.wsdd.WSDDDeployableItem (src)
parameters, qname, scope, SCOPE_PER_ACCESS, SCOPE_PER_REQUEST, SCOPE_SINGLETON, scopeStrings, singletonInstance, type
 
Fields inherited from class org.jboss.axis.deployment.wsdd.WSDDConstants (src)
ATTR_ATTACHMENT_FORMAT, ATTR_CLASS, ATTR_CLASSNAME, ATTR_DESERIALIZER, ATTR_ENCSTYLE, ATTR_INHEADER, ATTR_LANG_SPEC_TYPE, ATTR_LOCKED, ATTR_MODE, ATTR_NAME, ATTR_ONEWAY, ATTR_OUTHEADER, ATTR_PIVOT, ATTR_PROVIDER, ATTR_QNAME, ATTR_RETHEADER, ATTR_RETQNAME, ATTR_RETTYPE, ATTR_SERIALIZER, ATTR_SOAPACTORNAME, ATTR_STREAMING, ATTR_STYLE, ATTR_TYPE, ATTR_USE, ATTR_VALUE, BEAN_DESERIALIZER_FACTORY, BEAN_SERIALIZER_FACTORY, 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_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_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
 
Constructor Summary
WSDDService()
          Default constructor
WSDDService(org.w3c.dom.Element e)
           
 
Method Summary
 void addOperation(WSDDOperation (src)  operation)
          Add a WSDDOperation to the Service.
 void addTypeMapping(WSDDTypeMapping (src)  mapping)
          Add a WSDDTypeMapping to the Service.
 void deployToRegistry(WSDDDeployment (src)  registry)
           
 void deployTypeMapping(WSDDTypeMapping (src)  mapping)
           
protected  QName (src) getElementName()
          Return the element name of a particular subclass.
 WSDDFaultFlow (src) getFaultFlow(QName (src)  name)
           
 WSDDFaultFlow (src) [] getFaultFlows()
           
 WSDDJAXRPCHandlerInfoChain (src) getHandlerInfoChain()
           
 java.util.Vector getNamespaces()
          Obtain the list of namespaces registered for this service
 QName (src) getProviderQName()
           
 ServiceDesc (src) getServiceDesc()
           
 java.lang.String getServiceDescriptionURL()
          Get any service description URL which might be associated with this service.
 Style (src) getStyle()
          Get the service style - document or RPC
 TypeMapping (src) getTypeMapping(java.lang.String encodingStyle)
           
 java.util.Vector getTypeMappings()
           
 Use (src) getUse()
          Get the service use - literal or encoded
protected  void initTMR()
          Initialize a TypeMappingRegistry with the WSDDTypeMappings.
 Handler (src) makeNewInstance(EngineConfiguration (src)  registry)
          Creates a new instance of this deployable.
 void removeNamespaceMappings(WSDDDeployment (src)  registry)
           
 void setCachedService(SOAPService (src)  service)
           
 void setHandlerInfoChain(WSDDJAXRPCHandlerInfoChain (src)  hichain)
           
 void setProviderQName(QName (src)  providerQName)
           
 void setServiceDescriptionURL(java.lang.String sdUrl)
          Set the service description URL for this service.
 void setStyle(Style (src)  style)
          Set the service style - document or RPC
 void setTypeMappings(java.util.Vector typeMappings)
           
 void setUse(Use (src)  use)
          Set the service use - literal or encoded
 void validateDescriptors()
          This method can be used for dynamic deployment using new WSDDService() etc.
 void writeToContext(SerializationContext (src)  context)
          Write this element out to a SerializationContext
 
Methods inherited from class org.jboss.axis.deployment.wsdd.WSDDTargetedChain (src)
getPivotQName, getRequestFlow, getResponseFlow, setPivotQName, setRequestFlow, setResponseFlow, setType, writeFlowsToContext
 
Methods inherited from class org.jboss.axis.deployment.wsdd.WSDDDeployableItem (src)
getInstance, getJavaClass, getParameter, getParametersTable, getQName, getType, removeParameter, setName, setOptionsHashtable, setParameter, setQName, setType, writeParamsToContext
 
Methods inherited from class org.jboss.axis.deployment.wsdd.WSDDElement (src)
getChildElement, getChildElements, getDocumentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDDService

public WSDDService()
Default constructor


WSDDService

public WSDDService(org.w3c.dom.Element e)
            throws WSDDException (src) 
Parameters:
e - (Element) XXX
Throws:
WSDDException (src) - XXX
Method Detail

initTMR

protected void initTMR()
                throws WSDDException (src) 
Initialize a TypeMappingRegistry with the WSDDTypeMappings. Note: Extensions of WSDDService may override initTMR to popluate the tmr with different type mappings.

Throws:
WSDDException (src)

validateDescriptors

public void validateDescriptors()
                         throws WSDDException (src) 
This method can be used for dynamic deployment using new WSDDService() etc. It validates some standard parameters for some standard providers (if present). Do this before deployment.deployService().

Throws:
WSDDException (src)

addTypeMapping

public void addTypeMapping(WSDDTypeMapping (src)  mapping)
Add a WSDDTypeMapping to the Service.

Parameters:
mapping -

addOperation

public void addOperation(WSDDOperation (src)  operation)
Add a WSDDOperation to the Service.

Parameters:
operation - the operation to add

getElementName

protected QName (src)  getElementName()
Description copied from class: WSDDElement (src)
Return the element name of a particular subclass.

Specified by:
getElementName in class WSDDElement (src)

getServiceDescriptionURL

public java.lang.String getServiceDescriptionURL()
Get any service description URL which might be associated with this service.

Returns:
a String containing a URL, or null.

setServiceDescriptionURL

public void setServiceDescriptionURL(java.lang.String sdUrl)
Set the service description URL for this service.

Parameters:
sdUrl - a String containing a URL

getProviderQName

public QName (src)  getProviderQName()

setProviderQName

public void setProviderQName(QName (src)  providerQName)

getServiceDesc

public ServiceDesc (src)  getServiceDesc()

getStyle

public Style (src)  getStyle()
Get the service style - document or RPC


setStyle

public void setStyle(Style (src)  style)
Set the service style - document or RPC


getUse

public Use (src)  getUse()
Get the service use - literal or encoded


setUse

public void setUse(Use (src)  use)
Set the service use - literal or encoded


getFaultFlows

public WSDDFaultFlow (src) [] getFaultFlows()
Overrides:
getFaultFlows in class WSDDTargetedChain (src)
Returns:
XXX

getNamespaces

public java.util.Vector getNamespaces()
Obtain the list of namespaces registered for this service

Returns:
a Vector of namespaces (Strings) which should dispatch to this service

getFaultFlow

public WSDDFaultFlow (src)  getFaultFlow(QName (src)  name)
Overrides:
getFaultFlow in class WSDDTargetedChain (src)
Parameters:
name - XXX
Returns:
XXX

makeNewInstance

public Handler (src)  makeNewInstance(EngineConfiguration (src)  registry)
                        throws ConfigurationException (src) 
Description copied from class: WSDDDeployableItem (src)
Creates a new instance of this deployable. if the java class is not found, the registry is queried to find a suitable item

Overrides:
makeNewInstance in class WSDDTargetedChain (src)
Parameters:
registry - XXX
Returns:
XXX
Throws:
ConfigurationException (src) - XXX

deployTypeMapping

public void deployTypeMapping(WSDDTypeMapping (src)  mapping)
                       throws WSDDException (src) 
Specified by:
deployTypeMapping in interface WSDDTypeMappingContainer (src)
Throws:
WSDDException (src)

writeToContext

public void writeToContext(SerializationContext (src)  context)
                    throws java.io.IOException
Write this element out to a SerializationContext

Specified by:
writeToContext in class WSDDElement (src)
Throws:
java.io.IOException

setCachedService

public void setCachedService(SOAPService (src)  service)

getTypeMappings

public java.util.Vector getTypeMappings()

setTypeMappings

public void setTypeMappings(java.util.Vector typeMappings)

deployToRegistry

public void deployToRegistry(WSDDDeployment (src)  registry)
Overrides:
deployToRegistry in class WSDDTargetedChain (src)

removeNamespaceMappings

public void removeNamespaceMappings(WSDDDeployment (src)  registry)

getTypeMapping

public TypeMapping (src)  getTypeMapping(java.lang.String encodingStyle)

getHandlerInfoChain

public WSDDJAXRPCHandlerInfoChain (src)  getHandlerInfoChain()

setHandlerInfoChain

public void setHandlerInfoChain(WSDDJAXRPCHandlerInfoChain (src)  hichain)