Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.axis.deployment.wsdd
Class WSDDService  view WSDDService download WSDDService.java

java.lang.Object
  extended byorg.apache.axis.deployment.wsdd.WSDDConstants
      extended byorg.apache.axis.deployment.wsdd.WSDDElement
          extended byorg.apache.axis.deployment.wsdd.WSDDDeployableItem
              extended byorg.apache.axis.deployment.wsdd.WSDDTargetedChain
                  extended byorg.apache.axis.deployment.wsdd.WSDDService
All Implemented Interfaces:
java.io.Serializable, WSDDTypeMappingContainer

public class WSDDService
extends WSDDTargetedChain
implements WSDDTypeMappingContainer

A service represented in WSDD.


Field Summary
private  WSDDJAXRPCHandlerInfoChain _wsddHIchain
           
private  org.apache.axis.handlers.soap.SOAPService cachedService
           
(package private)  org.apache.axis.description.JavaServiceDesc desc
           
private  java.lang.String descriptionURL
           
private  java.util.Vector faultFlows
           
private  java.util.Vector namespaces
          Which namespaces should auto-dispatch to this service?
private  java.util.Vector operations
           
private  javax.xml.namespace.QName providerQName
          Our provider - used to figure out which Handler we use as a service pivot (see getInstance() below)
private  java.util.List roles
          Which roles does this service support?
private  int sendType
          What attachment format should be used?
private  boolean streaming
          Is streaming (i.e.
private  org.apache.axis.constants.Style style
          Style - document, wrapped, message, or RPC (the default)
private  org.apache.axis.encoding.TypeMappingRegistry tmr
           
private  java.util.Vector typeMappings
           
private  org.apache.axis.constants.Use use
          Use - encoded (the default) or literal
 
Fields inherited from class org.apache.axis.deployment.wsdd.WSDDTargetedChain
 
Fields inherited from class org.apache.axis.deployment.wsdd.WSDDDeployableItem
log, parameters, qname, scope, SCOPE_PER_ACCESS, SCOPE_PER_REQUEST, SCOPE_SINGLETON, scopeStrings, singletonInstance, type
 
Fields inherited from class org.apache.axis.deployment.wsdd.WSDDElement
 
Fields inherited from class org.apache.axis.deployment.wsdd.WSDDConstants
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_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
 
Constructor Summary
WSDDService()
          Default constructor
WSDDService(org.w3c.dom.Element e)
           
 
Method Summary
 void addOperation(WSDDOperation operation)
          Add a WSDDOperation to the Service.
 void addTypeMapping(WSDDTypeMapping mapping)
          Add a WSDDTypeMapping to the Service.
private  void createTMR()
           
 void deployToRegistry(WSDDDeployment registry)
           
 void deployTypeMapping(WSDDTypeMapping mapping)
           
protected  javax.xml.namespace.QName getElementName()
          Return the element name of a particular subclass.
 WSDDFaultFlow getFaultFlow(javax.xml.namespace.QName name)
           
 WSDDFaultFlow[] getFaultFlows()
           
 WSDDJAXRPCHandlerInfoChain getHandlerInfoChain()
           
 java.util.Vector getNamespaces()
          Obtain the list of namespaces registered for this service
 javax.xml.namespace.QName getProviderQName()
           
 org.apache.axis.description.ServiceDesc getServiceDesc()
           
 java.lang.String getServiceDescriptionURL()
          Get any service description URL which might be associated with this service.
 org.apache.axis.constants.Style getStyle()
          Get the service style - document or RPC
 org.apache.axis.encoding.TypeMapping getTypeMapping(java.lang.String encodingStyle)
           
 java.util.Vector getTypeMappings()
           
 org.apache.axis.constants.Use getUse()
          Get the service use - literal or encoded
protected  void initTMR()
          Initialize a TypeMappingRegistry with the WSDDTypeMappings.
 org.apache.axis.Handler makeNewInstance(org.apache.axis.EngineConfiguration registry)
          Creates a new instance of this deployable.
 void removeNamespaceMappings(WSDDDeployment registry)
           
 void setCachedService(org.apache.axis.handlers.soap.SOAPService service)
           
 void setHandlerInfoChain(WSDDJAXRPCHandlerInfoChain hichain)
           
 void setProviderQName(javax.xml.namespace.QName providerQName)
           
 void setServiceDescriptionURL(java.lang.String sdUrl)
          Set the service description URL for this service.
 void setStyle(org.apache.axis.constants.Style style)
          Set the service style - document or RPC
 void setTypeMappings(java.util.Vector typeMappings)
           
 void setUse(org.apache.axis.constants.Use use)
          Set the service use - literal or encoded
 void validateDescriptors()
          This method can be used for dynamic deployment using new WSDDService() etc.
 void writeToContext(org.apache.axis.encoding.SerializationContext context)
          Write this element out to a SerializationContext
 
Methods inherited from class org.apache.axis.deployment.wsdd.WSDDTargetedChain
getPivotQName, getRequestFlow, getResponseFlow, setPivotQName, setRequestFlow, setResponseFlow, setType, writeFlowsToContext
 
Methods inherited from class org.apache.axis.deployment.wsdd.WSDDDeployableItem
createInstance, getInstance, getJavaClass, getParameter, getParametersTable, getQName, getType, removeParameter, setName, setOptionsHashtable, setParameter, setQName, setType, writeParamsToContext
 
Methods inherited from class org.apache.axis.deployment.wsdd.WSDDElement
getChildElement, getChildElements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tmr

private org.apache.axis.encoding.TypeMappingRegistry tmr

faultFlows

private java.util.Vector faultFlows

typeMappings

private java.util.Vector typeMappings

operations

private java.util.Vector operations

namespaces

private java.util.Vector namespaces
Which namespaces should auto-dispatch to this service?


roles

private java.util.List roles
Which roles does this service support?


descriptionURL

private java.lang.String descriptionURL

style

private org.apache.axis.constants.Style style
Style - document, wrapped, message, or RPC (the default)


use

private org.apache.axis.constants.Use use
Use - encoded (the default) or literal


cachedService

private transient org.apache.axis.handlers.soap.SOAPService cachedService

providerQName

private javax.xml.namespace.QName providerQName
Our provider - used to figure out which Handler we use as a service pivot (see getInstance() below)


_wsddHIchain

private WSDDJAXRPCHandlerInfoChain _wsddHIchain

desc

org.apache.axis.description.JavaServiceDesc desc

streaming

private boolean streaming
Is streaming (i.e. NO high-fidelity recording, deserialize on the fly) on for this service?


sendType

private int sendType
What attachment format should be used?

Constructor Detail

WSDDService

public WSDDService()
Default constructor


WSDDService

public WSDDService(org.w3c.dom.Element e)
            throws WSDDException
Method Detail

initTMR

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


createTMR

private void createTMR()

validateDescriptors

public void validateDescriptors()
                         throws WSDDException
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().


addTypeMapping

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


addOperation

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


getElementName

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

Specified by:
getElementName in class WSDDElement

getServiceDescriptionURL

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


setServiceDescriptionURL

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


getProviderQName

public javax.xml.namespace.QName getProviderQName()

setProviderQName

public void setProviderQName(javax.xml.namespace.QName providerQName)

getServiceDesc

public org.apache.axis.description.ServiceDesc getServiceDesc()

getStyle

public org.apache.axis.constants.Style getStyle()
Get the service style - document or RPC


setStyle

public void setStyle(org.apache.axis.constants.Style style)
Set the service style - document or RPC


getUse

public org.apache.axis.constants.Use getUse()
Get the service use - literal or encoded


setUse

public void setUse(org.apache.axis.constants.Use use)
Set the service use - literal or encoded


getFaultFlows

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

getNamespaces

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


getFaultFlow

public WSDDFaultFlow getFaultFlow(javax.xml.namespace.QName name)
Overrides:
getFaultFlow in class WSDDTargetedChain

makeNewInstance

public org.apache.axis.Handler makeNewInstance(org.apache.axis.EngineConfiguration registry)
                                        throws org.apache.axis.ConfigurationException
Description copied from class: WSDDDeployableItem
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

deployTypeMapping

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

writeToContext

public void writeToContext(org.apache.axis.encoding.SerializationContext context)
                    throws java.io.IOException
Write this element out to a SerializationContext

Specified by:
writeToContext in class WSDDElement

setCachedService

public void setCachedService(org.apache.axis.handlers.soap.SOAPService service)

getTypeMappings

public java.util.Vector getTypeMappings()

setTypeMappings

public void setTypeMappings(java.util.Vector typeMappings)

deployToRegistry

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

removeNamespaceMappings

public void removeNamespaceMappings(WSDDDeployment registry)

getTypeMapping

public org.apache.axis.encoding.TypeMapping getTypeMapping(java.lang.String encodingStyle)

getHandlerInfoChain

public WSDDJAXRPCHandlerInfoChain getHandlerInfoChain()

setHandlerInfoChain

public void setHandlerInfoChain(WSDDJAXRPCHandlerInfoChain hichain)