Class DescriptionBuilderComposite
java.lang.Object
org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite
- All Implemented Interfaces:
TMAnnotationComposite,TMFAnnotationComposite
- Direct Known Subclasses:
PortComposite
public class DescriptionBuilderComposite
extends Object
implements TMAnnotationComposite, TMFAnnotationComposite
-
Constructor Summary
ConstructorsConstructorDescriptionDescriptionBuilderComposite(org.apache.axis2.context.ConfigurationContext configContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomAnnotationInstance(CustomAnnotationInstance annotation) voidvoidaddFieldDescriptionComposite(FieldDescriptionComposite fieldDescription) voidaddMethodDescriptionComposite(MethodDescriptionComposite methodDescription) voidaddPortComposite(QName serviceQName, PortComposite portDBC) Adds a PortComposite to a list that is keyed by a wsdl:service QName.voidaddPortComposite(PortComposite portDBC) Adds a PortComposite to the generic list.voidvoidaddWebServiceRefAnnot(WebServiceRefAnnot webServiceRefAnnot) Returns the catalog manager associated with this composite, if any.String[]org.apache.axis2.context.ConfigurationContextReturns the corresponding class associated with this composite, if any.getFieldDescriptionComposite(String fieldName) getMethodDescriptionComposite(String methodName) Returns a collection of all MethodDescriptionComposites that match the specified namegetMethodDescriptionComposite(String methodName, int occurence) Returns the nth occurence of this MethodComposite.Gets the generic PortComposite instances.getPortComposites(QName serviceQName) Gets all the PortComposite instances associated with a particular wsdl:service QName.For a service requester, the QName of the prefered port for this service.getPreferredPort(Object key) Get the set of wsdl:service QNames represented by this DBC's metadatagetServiceRefName(Object serviceDelegateKey) For the current composite, return the serivce ref name from the sparse composite associted with the service delegate key.static StringgetServiceRefName(DescriptionBuilderComposite sparseComposite) Static utility method that, given a sparse composite, returns the SERVICE_REF_NAME value from the property on that sparse composite or null if the property was not specified.getSparseComposite(Object key) getWebServiceRefAnnot(String name) javax.wsdl.Definitionjavax.wsdl.DefinitiongetWsdlDefinition(QName serviceQName) Retrive a WSDL Definition by a service QNamegetWsdlURL(QName serviceQName) Retrive a WSDL URL by a service QNamebooleanbooleanbooleanisMTOMEnabled(Object key) booleanAnswer does this composite represent a service requester (aka client) or a service provider (aka server).voidsetBindingTypeAnnot(BindingTypeAnnot bindingTypeAnnot) voidsetCatalogManager(JAXWSCatalogManager theCatalogManager) Set the Catalog Manager associated with this composite.voidsetClassLoader(ClassLoader classLoader) voidsetClassModifiers(String[] classModifiers) voidsetClassName(String className) voidsetCorrespondingClass(Class theClass) Set the class associated with this composite.voidsetCustomWsdlGenerator(WsdlGenerator wsdlGenerator) voidsetHandlerChainAnnot(HandlerChainAnnot handlerChainAnnot) voidsetHandlerChainsType(HandlerChainsType handlerChainsType) voidsetInterfacesList(List<String> interfacesList) voidsetIsInterface(boolean isInterface) voidsetIsMTOMEnabled(boolean isMTOMEnabled) voidsetIsServiceProvider(boolean value) Set the indication of whether this composite represents a service requester (aka client) or a service provider (aka server).voidsetPreferredPort(QName preferredPort) For a service requester, set the QName of the preferred port for this service.voidsetProperties(Map<String, Object> properties) voidsetServiceModeAnnot(ServiceModeAnnot serviceModeAnnot) voidsetServiceQNames(Set<QName> serviceQNames) Add the set of wsdl:service QNames that are represented by this DBC's metadatavoidsetSoapBindingAnnot(SoapBindingAnnot soapBindingAnnot) voidsetSparseComposite(Object key, DescriptionBuilderComposite sparseComposite) voidsetSuperClassName(String extendsClass) voidsetWebFaultAnnot(WebFaultAnnot webFaultAnnot) voidsetWebServiceAnnot(WebServiceAnnot webServiceAnnot) voidsetWebServiceClientAnnot(WebServiceClientAnnot webServiceClientAnnot) voidsetWebServiceFeatures(List<Annotation> list) voidsetWebServiceProviderAnnot(WebServiceProviderAnnot webServiceProviderAnnot) voidsetWebServiceRefAnnot(WebServiceRefAnnot webServiceRefAnnot) voidsetWsdlDefinition(javax.wsdl.Definition wsdlDef) voidsetWsdlDefinition(QName serviceQName, javax.wsdl.Definition definition) Store a WSDL Definition keyed by a service QNamevoidsetwsdlURL(URL wsdlURL) voidsetwsdlURL(QName serviceQName, URL url) Store a WSDL URL keyed by a service QNametoString()Convenience method for unit testing.
-
Constructor Details
-
DescriptionBuilderComposite
public DescriptionBuilderComposite() -
DescriptionBuilderComposite
public DescriptionBuilderComposite(org.apache.axis2.context.ConfigurationContext configContext)
-
-
Method Details
-
setSparseComposite
-
getSparseComposite
-
setPreferredPort
For a service requester, set the QName of the preferred port for this service. This indicates which port (i.e. which EndpointDescription) should be returned if a port QName isn't specified. This may be null, indicating the first valid port in the WSDL should be returned.- Parameters:
preferredPort-
-
getPreferredPort
For a service requester, the QName of the prefered port for this service. This indicates which port should be returned if a port QName wasn't specified. This may be null, indicating the first valid port in the WSDL should be returned.- Returns:
-
getPreferredPort
-
setIsMTOMEnabled
public void setIsMTOMEnabled(boolean isMTOMEnabled) -
isMTOMEnabled
public boolean isMTOMEnabled() -
isMTOMEnabled
-
getWebServiceAnnot
-
getClassModifiers
- Returns:
- Returns the classModifiers.
-
getClassName
- Returns:
- Returns the className.
-
getSuperClassName
- Returns:
- Returns the super class name.
-
getInterfacesList
- Returns:
- Returns the list of implemented interfaces.
-
getHandlerChainAnnot
- Returns:
- Returns the handlerChainAnnotImpl.
-
getServiceModeAnnot
- Returns:
- Returns the serviceModeAnnot.
-
getSoapBindingAnnot
- Returns:
- Returns the soapBindingAnnot.
-
getWebFaultAnnot
- Returns:
- Returns the webFaultAnnot.
-
getWebServiceClientAnnot
- Returns:
- Returns the webServiceClientAnnot.
-
getWebServiceClientAnnot
-
getWebServiceProviderAnnot
- Returns:
- Returns the webServiceProviderAnnot.
-
getAllWebServiceRefAnnots
- Returns:
- Returns the webServiceRefAnnot list.
-
getWebServiceRefAnnot
- Returns:
- Returns the webServiceRefAnnot.
-
getBindingTypeAnnot
- Returns:
- Returns the webServiceRefAnnot.
-
getWebServiceFeatures
-
setWebServiceFeatures
-
addWebServiceFeature
-
getWsdlDefinition
public javax.wsdl.Definition getWsdlDefinition()- Returns:
- Returns the wsdlDefinition
-
getWsdlURL
- Returns:
- Returns the wsdlURL
-
getMethodDescriptionComposite
Returns a collection of all MethodDescriptionComposites that match the specified name -
getMethodDescriptionComposite
Returns the nth occurence of this MethodComposite. Since method names are not unique, we have to account for multiple occurrences- Parameters:
methodName-occurence- The nth occurance to return; not this is NOT 0 based- Returns:
- Returns the methodDescriptionComposite
-
getMethodDescriptionsList
-
getFieldDescriptionComposite
- Returns:
- Returns the methodDescriptionComposite..null if not found
-
getCustomWsdlGenerator
- Returns:
- Returns the ModuleClassType.
-
getClassLoader
- Returns:
- Returns the ClassLoader.
-
isInterface
public boolean isInterface()- Returns:
- Returns true if this is an interface
-
setWebServiceAnnot
-
setClassModifiers
- Parameters:
classModifiers- The classModifiers to set.
-
setClassName
- Parameters:
className- The className to set.
-
setSuperClassName
- Parameters:
extendsClass- The name of the super class to set.
-
setInterfacesList
- Parameters:
interfacesList- The interfacesList to set.
-
setHandlerChainAnnot
- Specified by:
setHandlerChainAnnotin interfaceTMFAnnotationComposite- Parameters:
handlerChainAnnot- The handlerChainAnnot to set.
-
setServiceModeAnnot
- Parameters:
serviceModeAnnot- The serviceModeAnnot to set.
-
setSoapBindingAnnot
- Specified by:
setSoapBindingAnnotin interfaceTMAnnotationComposite- Parameters:
soapBindingAnnot- The soapBindingAnnot to set.
-
setWebFaultAnnot
- Parameters:
webFaultAnnot- The webFaultAnnot to set.
-
setWebServiceClientAnnot
- Parameters:
webServiceClientAnnot- The webServiceClientAnnot to set.
-
setWebServiceProviderAnnot
- Parameters:
webServiceProviderAnnot- The webServiceProviderAnnot to set.
-
addWebServiceRefAnnot
- Parameters:
webServiceRefAnnot- The webServiceRefAnnot to add to the list.
-
setWebServiceRefAnnot
- Specified by:
setWebServiceRefAnnotin interfaceTMFAnnotationComposite
-
addCustomAnnotationProcessor
-
getCustomAnnotationProcessors
-
addCustomAnnotationInstance
-
getCustomAnnotationInstances
-
setWsdlDefinition
public void setWsdlDefinition(javax.wsdl.Definition wsdlDef) - Parameters:
wsdlDefinition- The wsdlDefinition to set.
-
setwsdlURL
- Parameters:
wsdlURL- The wsdlURL to set.
-
setBindingTypeAnnot
- Parameters:
BindingTypeAnnot- The BindingTypeAnnot to set.
-
setIsInterface
public void setIsInterface(boolean isInterface) - Parameters:
isInterface- Sets whether this composite represents a class or interface
-
addMethodDescriptionComposite
- Parameters:
methodDescription- The methodDescription to add to the set.
-
addFieldDescriptionComposite
- Parameters:
methodDescription- The methodDescription to add to the set.
-
setCustomWsdlGenerator
-
setClassLoader
-
getHandlerChainsType
-
setHandlerChainsType
-
isServiceProvider
public boolean isServiceProvider()Answer does this composite represent a service requester (aka client) or a service provider (aka server).- Returns:
- true if this is a service provider (aka an endpoint or a service implementation or a server)
-
setIsServiceProvider
public void setIsServiceProvider(boolean value) Set the indication of whether this composite represents a service requester (aka client) or a service provider (aka server). -
setCorrespondingClass
Set the class associated with this composite. For a service requester, this could be the Service class or the SEI class. For a service provider this will be null (unless the deprecated service construction logic in DescriptionFactory is used)- Parameters:
theClass-
-
getCorrespondingClass
Returns the corresponding class associated with this composite, if any.- Returns:
-
setCatalogManager
Set the Catalog Manager associated with this composite.- Parameters:
theCatalogManger-
-
getCatalogManager
Returns the catalog manager associated with this composite, if any.- Returns:
-
setProperties
-
getProperties
-
setWsdlDefinition
Store a WSDL Definition keyed by a service QName -
getWsdlDefinition
Retrive a WSDL Definition by a service QName -
setwsdlURL
Store a WSDL URL keyed by a service QName -
getWsdlURL
Retrive a WSDL URL by a service QName -
setServiceQNames
Add the set of wsdl:service QNames that are represented by this DBC's metadata -
getServiceQNames
Get the set of wsdl:service QNames represented by this DBC's metadata- Returns:
-
toString
Convenience method for unit testing. We will print all of the data members here. -
getConfigurationContext
public org.apache.axis2.context.ConfigurationContext getConfigurationContext() -
addPortComposite
Adds a PortComposite to the generic list. This list of PortComposite objects is not keyed by wsdl:service QName. -
addPortComposite
Adds a PortComposite to a list that is keyed by a wsdl:service QName. -
getPortComposites
Gets the generic PortComposite instances. -
getPortComposites
Gets all the PortComposite instances associated with a particular wsdl:service QName.- Returns:
-
getServiceRefName
Static utility method that, given a sparse composite, returns the SERVICE_REF_NAME value from the property on that sparse composite or null if the property was not specified.- Parameters:
sparseComposite- The sparse composite instance to get the SERVICE_REF_NAME parameter from- Returns:
- A String containing the Service Ref Name or null if the parameter was not found.
-
getServiceRefName
For the current composite, return the serivce ref name from the sparse composite associted with the service delegate key.- Parameters:
serviceDelegateKey- The instance of the service delegate associated with the sparse composite from which the service ref name is to be retrieved.- Returns:
- The service ref name associated with the service delegate key or null if one was not found.
-