Class PortComposite
- java.lang.Object
-
- org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite
-
- org.apache.axis2.jaxws.description.builder.PortComposite
-
- All Implemented Interfaces:
TMAnnotationComposite
,TMFAnnotationComposite
public class PortComposite extends DescriptionBuilderComposite
This subclass of the DescriptionBuilderComposite will be used to model information specific to a port. The DescriptionBuilderComposite, when used in server-side processing, more or less represents a single web service implementation class. It is possible, and likely, that a single implementation class will serve multiple ports. The PortComposite allows metadata that applies at the port level to be separated from the DescriptionBuilderComposite. This will allow processing and configuring of multiple ports in the description hierarchy from a single DBC object.
-
-
Constructor Summary
Constructors Constructor Description PortComposite(DescriptionBuilderComposite baseDBC)
-
Method Summary
-
Methods inherited from class org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite
addCustomAnnotationInstance, addCustomAnnotationProcessor, addFieldDescriptionComposite, addMethodDescriptionComposite, addPortComposite, addWebServiceFeature, addWebServiceRefAnnot, getAllWebServiceRefAnnots, getConfigurationContext, getCorrespondingClass, getPortComposites, getServiceRefName, getServiceRefName, getSparseComposite, getWebFaultAnnot, getWebServiceClientAnnot, getWebServiceClientAnnot, getWebServiceFeatures, getWebServiceRefAnnot, getWsdlURL, isMTOMEnabled, isServiceProvider, setCatalogManager, setClassLoader, setClassModifiers, setClassName, setCorrespondingClass, setInterfacesList, setIsInterface, setIsServiceProvider, setPreferredPort, setServiceModeAnnot, setSoapBindingAnnot, setSparseComposite, setSuperClassName, setWebFaultAnnot, setWebServiceClientAnnot, setWebServiceFeatures, setWebServiceRefAnnot, setWsdlDefinition, setwsdlURL
-
-
-
-
Constructor Detail
-
PortComposite
public PortComposite(DescriptionBuilderComposite baseDBC)
-
-
Method Detail
-
getCustomWsdlGenerator
public WsdlGenerator getCustomWsdlGenerator()
- Overrides:
getCustomWsdlGenerator
in classDescriptionBuilderComposite
- Returns:
- Returns the ModuleClassType.
-
getWebServiceAnnot
public WebServiceAnnot getWebServiceAnnot()
- Overrides:
getWebServiceAnnot
in classDescriptionBuilderComposite
-
getWebServiceProviderAnnot
public WebServiceProviderAnnot getWebServiceProviderAnnot()
- Overrides:
getWebServiceProviderAnnot
in classDescriptionBuilderComposite
- Returns:
- Returns the webServiceProviderAnnot.
-
setCustomWsdlGenerator
public void setCustomWsdlGenerator(WsdlGenerator wsdlGenerator)
- Overrides:
setCustomWsdlGenerator
in classDescriptionBuilderComposite
-
setHandlerChainAnnot
public void setHandlerChainAnnot(HandlerChainAnnot handlerChainAnnot)
- Specified by:
setHandlerChainAnnot
in interfaceTMFAnnotationComposite
- Overrides:
setHandlerChainAnnot
in classDescriptionBuilderComposite
- Parameters:
handlerChainAnnot
- The handlerChainAnnot to set.
-
setHandlerChainsType
public void setHandlerChainsType(HandlerChainsType handlerChainsType)
- Overrides:
setHandlerChainsType
in classDescriptionBuilderComposite
-
setIsMTOMEnabled
public void setIsMTOMEnabled(boolean isMTOMEnabled)
- Overrides:
setIsMTOMEnabled
in classDescriptionBuilderComposite
-
setProperties
public void setProperties(Map<String,Object> properties)
- Overrides:
setProperties
in classDescriptionBuilderComposite
-
setWebServiceAnnot
public void setWebServiceAnnot(WebServiceAnnot webServiceAnnot)
- Overrides:
setWebServiceAnnot
in classDescriptionBuilderComposite
-
setWebServiceProviderAnnot
public void setWebServiceProviderAnnot(WebServiceProviderAnnot webServiceProviderAnnot)
- Overrides:
setWebServiceProviderAnnot
in classDescriptionBuilderComposite
- Parameters:
webServiceProviderAnnot
- The webServiceProviderAnnot to set.
-
getBindingTypeAnnot
public BindingTypeAnnot getBindingTypeAnnot()
- Overrides:
getBindingTypeAnnot
in classDescriptionBuilderComposite
- Returns:
- Returns the webServiceRefAnnot.
-
getHandlerChainAnnot
public HandlerChainAnnot getHandlerChainAnnot()
- Overrides:
getHandlerChainAnnot
in classDescriptionBuilderComposite
- Returns:
- Returns the handlerChainAnnotImpl.
-
getHandlerChainsType
public HandlerChainsType getHandlerChainsType()
- Overrides:
getHandlerChainsType
in classDescriptionBuilderComposite
-
isMTOMEnabled
public boolean isMTOMEnabled()
- Overrides:
isMTOMEnabled
in classDescriptionBuilderComposite
-
setBindingTypeAnnot
public void setBindingTypeAnnot(BindingTypeAnnot bindingTypeAnnot)
- Overrides:
setBindingTypeAnnot
in classDescriptionBuilderComposite
-
getProperties
public Map<String,Object> getProperties()
- Overrides:
getProperties
in classDescriptionBuilderComposite
-
addPortComposite
public void addPortComposite(PortComposite portDBC)
Description copied from class:DescriptionBuilderComposite
Adds a PortComposite to the generic list. This list of PortComposite objects is not keyed by wsdl:service QName.- Overrides:
addPortComposite
in classDescriptionBuilderComposite
-
getPortComposites
public List<PortComposite> getPortComposites()
Description copied from class:DescriptionBuilderComposite
Gets the generic PortComposite instances.- Overrides:
getPortComposites
in classDescriptionBuilderComposite
-
getCatalogManager
public JAXWSCatalogManager getCatalogManager()
Description copied from class:DescriptionBuilderComposite
Returns the catalog manager associated with this composite, if any.- Overrides:
getCatalogManager
in classDescriptionBuilderComposite
- Returns:
-
getClassLoader
public ClassLoader getClassLoader()
- Overrides:
getClassLoader
in classDescriptionBuilderComposite
- Returns:
- Returns the ClassLoader.
-
getClassModifiers
public String[] getClassModifiers()
- Overrides:
getClassModifiers
in classDescriptionBuilderComposite
- Returns:
- Returns the classModifiers.
-
getClassName
public String getClassName()
- Overrides:
getClassName
in classDescriptionBuilderComposite
- Returns:
- Returns the className.
-
getCustomAnnotationInstances
public List<CustomAnnotationInstance> getCustomAnnotationInstances()
- Overrides:
getCustomAnnotationInstances
in classDescriptionBuilderComposite
-
getCustomAnnotationProcessors
public Map<String,CustomAnnotationProcessor> getCustomAnnotationProcessors()
- Overrides:
getCustomAnnotationProcessors
in classDescriptionBuilderComposite
-
getFieldDescriptionComposite
public FieldDescriptionComposite getFieldDescriptionComposite(String fieldName)
- Overrides:
getFieldDescriptionComposite
in classDescriptionBuilderComposite
- Returns:
- Returns the methodDescriptionComposite..null if not found
-
getInterfacesList
public List<String> getInterfacesList()
- Overrides:
getInterfacesList
in classDescriptionBuilderComposite
- Returns:
- Returns the list of implemented interfaces.
-
getMethodDescriptionComposite
public MethodDescriptionComposite getMethodDescriptionComposite(String methodName, int occurence)
Description copied from class:DescriptionBuilderComposite
Returns the nth occurence of this MethodComposite. Since method names are not unique, we have to account for multiple occurrences- Overrides:
getMethodDescriptionComposite
in classDescriptionBuilderComposite
occurence
- The nth occurance to return; not this is NOT 0 based- Returns:
- Returns the methodDescriptionComposite
-
getMethodDescriptionComposite
public List<MethodDescriptionComposite> getMethodDescriptionComposite(String methodName)
Description copied from class:DescriptionBuilderComposite
Returns a collection of all MethodDescriptionComposites that match the specified name- Overrides:
getMethodDescriptionComposite
in classDescriptionBuilderComposite
-
getMethodDescriptionsList
public List<MethodDescriptionComposite> getMethodDescriptionsList()
- Overrides:
getMethodDescriptionsList
in classDescriptionBuilderComposite
-
getPreferredPort
public QName getPreferredPort()
Description copied from class:DescriptionBuilderComposite
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.- Overrides:
getPreferredPort
in classDescriptionBuilderComposite
- Returns:
-
getPreferredPort
public QName getPreferredPort(Object key)
- Overrides:
getPreferredPort
in classDescriptionBuilderComposite
-
getServiceModeAnnot
public ServiceModeAnnot getServiceModeAnnot()
- Overrides:
getServiceModeAnnot
in classDescriptionBuilderComposite
- Returns:
- Returns the serviceModeAnnot.
-
getSoapBindingAnnot
public SoapBindingAnnot getSoapBindingAnnot()
- Overrides:
getSoapBindingAnnot
in classDescriptionBuilderComposite
- Returns:
- Returns the soapBindingAnnot.
-
getSuperClassName
public String getSuperClassName()
- Overrides:
getSuperClassName
in classDescriptionBuilderComposite
- Returns:
- Returns the super class name.
-
isInterface
public boolean isInterface()
- Overrides:
isInterface
in classDescriptionBuilderComposite
- Returns:
- Returns true if this is an interface
-
getWsdlDefinition
public javax.wsdl.Definition getWsdlDefinition()
- Overrides:
getWsdlDefinition
in classDescriptionBuilderComposite
- Returns:
- Returns the wsdlDefinition
-
getServiceQNames
public Set<QName> getServiceQNames()
Description copied from class:DescriptionBuilderComposite
Get the set of wsdl:service QNames represented by this DBC's metadata- Overrides:
getServiceQNames
in classDescriptionBuilderComposite
- Returns:
-
getWsdlDefinition
public javax.wsdl.Definition getWsdlDefinition(QName serviceQName)
Description copied from class:DescriptionBuilderComposite
Retrive a WSDL Definition by a service QName- Overrides:
getWsdlDefinition
in classDescriptionBuilderComposite
-
setServiceQNames
public void setServiceQNames(Set<QName> serviceQNames)
Description copied from class:DescriptionBuilderComposite
Add the set of wsdl:service QNames that are represented by this DBC's metadata- Overrides:
setServiceQNames
in classDescriptionBuilderComposite
-
setWsdlDefinition
public void setWsdlDefinition(QName serviceQName, javax.wsdl.Definition definition)
Description copied from class:DescriptionBuilderComposite
Store a WSDL Definition keyed by a service QName- Overrides:
setWsdlDefinition
in classDescriptionBuilderComposite
-
setwsdlURL
public void setwsdlURL(QName serviceQName, URL url)
Description copied from class:DescriptionBuilderComposite
Store a WSDL URL keyed by a service QName- Overrides:
setwsdlURL
in classDescriptionBuilderComposite
-
getWsdlURL
public URL getWsdlURL(QName serviceQName)
Description copied from class:DescriptionBuilderComposite
Retrive a WSDL URL by a service QName- Overrides:
getWsdlURL
in classDescriptionBuilderComposite
-
toString
public String toString()
Description copied from class:DescriptionBuilderComposite
Convenience method for unit testing. We will print all of the data members here.- Overrides:
toString
in classDescriptionBuilderComposite
-
-