Package org.apache.axis2.wsdl.util
Class WSDLDefinitionWrapper
- java.lang.Object
-
- org.apache.axis2.wsdl.util.WSDLDefinitionWrapper
-
- All Implemented Interfaces:
Serializable
,javax.wsdl.Definition
,javax.wsdl.extensions.AttributeExtensible
,javax.wsdl.extensions.ElementExtensible
,javax.wsdl.WSDLElement
public class WSDLDefinitionWrapper extends Object implements javax.wsdl.Definition
There are cases where a WSDL definition is kept in memory in case it needs to be accessed during runtime. In situations where there are lots of WSDL definitions or big WSDLs, the memory footprint can be huge. This class provides support for processing a WSDL4J definition with a lower memory footprint. This is useful for certain environments. This class makes the decision on which implementation to use to reduce memory footprint. This allows other implementations to be used for specific environments without adding lots of extra overhead to every environment.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WSDLDefinitionWrapper(javax.wsdl.Definition def, boolean limitMemory, int memoryType)
WSDLDefinitionWrapper(javax.wsdl.Definition def, URL wURL, boolean limitInMemory)
ConstructorWSDLDefinitionWrapper(javax.wsdl.Definition def, URL wURL, boolean limitInMemory, int memoryType)
ConstructorWSDLDefinitionWrapper(javax.wsdl.Definition def, URL wURL, int limitType)
ConstructorWSDLDefinitionWrapper(javax.wsdl.Definition def, URL wURL, AxisConfiguration axisCfg)
ConstructorWSDLDefinitionWrapper(javax.wsdl.Definition def, AxisConfiguration axisConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBinding(javax.wsdl.Binding binding)
void
addExtensibilityElement(javax.wsdl.extensions.ExtensibilityElement extElement)
void
addImport(javax.wsdl.Import importDef)
void
addMessage(javax.wsdl.Message message)
void
addNamespace(String prefix, String namespaceURI)
void
addPortType(javax.wsdl.PortType portType)
void
addService(javax.wsdl.Service service)
javax.wsdl.Binding
createBinding()
javax.wsdl.BindingFault
createBindingFault()
javax.wsdl.BindingInput
createBindingInput()
javax.wsdl.BindingOperation
createBindingOperation()
javax.wsdl.BindingOutput
createBindingOutput()
javax.wsdl.Fault
createFault()
javax.wsdl.Import
createImport()
javax.wsdl.Input
createInput()
javax.wsdl.Message
createMessage()
javax.wsdl.Operation
createOperation()
javax.wsdl.Output
createOutput()
javax.wsdl.Part
createPart()
javax.wsdl.Port
createPort()
javax.wsdl.PortType
createPortType()
javax.wsdl.Service
createService()
javax.wsdl.Types
createTypes()
Map
getAllBindings()
Map
getAllPortTypes()
Map
getAllServices()
javax.wsdl.Binding
getBinding(QName name)
Map
getBindings()
Element
getDocumentationElement()
String
getDocumentBaseURI()
List
getExtensibilityElements()
Object
getExtensionAttribute(QName name)
Map
getExtensionAttributes()
javax.wsdl.extensions.ExtensionRegistry
getExtensionRegistry()
Map
getImports()
List
getImports(String namespaceURI)
int
getMemoryLimitType()
javax.wsdl.Message
getMessage(QName name)
Map
getMessages()
String
getNamespace(String prefix)
Map
getNamespaces()
List
getNativeAttributeNames()
javax.wsdl.PortType
getPortType(QName name)
Map
getPortTypes()
String
getPrefix(String namespaceURI)
QName
getQName()
javax.wsdl.Service
getService(QName name)
Map
getServices()
String
getTargetNamespace()
javax.wsdl.Types
getTypes()
javax.wsdl.Definition
getUnwrappedDefinition()
javax.wsdl.Binding
removeBinding(QName name)
javax.wsdl.extensions.ExtensibilityElement
removeExtensibilityElement(javax.wsdl.extensions.ExtensibilityElement extElement)
javax.wsdl.Import
removeImport(javax.wsdl.Import importDef)
javax.wsdl.Message
removeMessage(QName name)
String
removeNamespace(String prefix)
javax.wsdl.PortType
removePortType(QName name)
javax.wsdl.Service
removeService(QName name)
void
setDocumentationElement(Element docEl)
void
setDocumentBaseURI(String d)
void
setExtensionAttribute(QName name, Object value)
void
setExtensionRegistry(javax.wsdl.extensions.ExtensionRegistry extReg)
void
setQName(QName n)
void
setTargetNamespace(String t)
void
setTypes(javax.wsdl.Types types)
String
toString()
-
-
-
Constructor Detail
-
WSDLDefinitionWrapper
public WSDLDefinitionWrapper(javax.wsdl.Definition def, boolean limitMemory, int memoryType)
- Parameters:
def
-limitMemory
- true if you want to use a memory sensitive wrapper
-
WSDLDefinitionWrapper
public WSDLDefinitionWrapper(javax.wsdl.Definition def, AxisConfiguration axisConfig)
- Parameters:
def
- WDDL DefinitionaxisConfig
- Axis Configuration
-
WSDLDefinitionWrapper
public WSDLDefinitionWrapper(javax.wsdl.Definition def, URL wURL, boolean limitInMemory)
Constructor- Parameters:
def
- The WSDL DefinitionwURL
- The URL for the wsdllimitInMemory
- The setting indicating whether the in-memory WSDL copy should be manipulated to reduce memory footprint
-
WSDLDefinitionWrapper
public WSDLDefinitionWrapper(javax.wsdl.Definition def, URL wURL, boolean limitInMemory, int memoryType)
Constructor- Parameters:
def
- The WSDL DefinitionwURL
- The URL for the wsdllimitInMemory
- The setting indicating whether the in-memory WSDL copy should be manipulated to reduce memory footprintmemoryType
-
-
WSDLDefinitionWrapper
public WSDLDefinitionWrapper(javax.wsdl.Definition def, URL wURL, int limitType)
Constructor- Parameters:
def
- The WSDL DefinitionwURL
- The URL for the wsdllimitType
- The setting indicating which reduction technique to use
-
WSDLDefinitionWrapper
public WSDLDefinitionWrapper(javax.wsdl.Definition def, URL wURL, AxisConfiguration axisCfg)
Constructor- Parameters:
def
- The WSDL DefinitionwURL
- The URL for the wsdlaxisCfg
- The AxisConfiguration object, to be used to get configuration settings
-
-
Method Detail
-
getUnwrappedDefinition
public javax.wsdl.Definition getUnwrappedDefinition()
-
getMemoryLimitType
public int getMemoryLimitType()
-
setDocumentBaseURI
public void setDocumentBaseURI(String d)
- Specified by:
setDocumentBaseURI
in interfacejavax.wsdl.Definition
-
getDocumentBaseURI
public String getDocumentBaseURI()
- Specified by:
getDocumentBaseURI
in interfacejavax.wsdl.Definition
-
setQName
public void setQName(QName n)
- Specified by:
setQName
in interfacejavax.wsdl.Definition
-
getQName
public QName getQName()
- Specified by:
getQName
in interfacejavax.wsdl.Definition
-
setTargetNamespace
public void setTargetNamespace(String t)
- Specified by:
setTargetNamespace
in interfacejavax.wsdl.Definition
-
getTargetNamespace
public String getTargetNamespace()
- Specified by:
getTargetNamespace
in interfacejavax.wsdl.Definition
-
addNamespace
public void addNamespace(String prefix, String namespaceURI)
- Specified by:
addNamespace
in interfacejavax.wsdl.Definition
-
removeNamespace
public String removeNamespace(String prefix)
- Specified by:
removeNamespace
in interfacejavax.wsdl.Definition
-
getNamespace
public String getNamespace(String prefix)
- Specified by:
getNamespace
in interfacejavax.wsdl.Definition
-
getPrefix
public String getPrefix(String namespaceURI)
- Specified by:
getPrefix
in interfacejavax.wsdl.Definition
-
getNamespaces
public Map getNamespaces()
- Specified by:
getNamespaces
in interfacejavax.wsdl.Definition
-
getNativeAttributeNames
public List getNativeAttributeNames()
- Specified by:
getNativeAttributeNames
in interfacejavax.wsdl.extensions.AttributeExtensible
-
setTypes
public void setTypes(javax.wsdl.Types types)
- Specified by:
setTypes
in interfacejavax.wsdl.Definition
-
getTypes
public javax.wsdl.Types getTypes()
- Specified by:
getTypes
in interfacejavax.wsdl.Definition
-
addImport
public void addImport(javax.wsdl.Import importDef)
- Specified by:
addImport
in interfacejavax.wsdl.Definition
-
removeImport
public javax.wsdl.Import removeImport(javax.wsdl.Import importDef)
- Specified by:
removeImport
in interfacejavax.wsdl.Definition
-
getImports
public List getImports(String namespaceURI)
- Specified by:
getImports
in interfacejavax.wsdl.Definition
-
getImports
public Map getImports()
- Specified by:
getImports
in interfacejavax.wsdl.Definition
-
addMessage
public void addMessage(javax.wsdl.Message message)
- Specified by:
addMessage
in interfacejavax.wsdl.Definition
-
getMessage
public javax.wsdl.Message getMessage(QName name)
- Specified by:
getMessage
in interfacejavax.wsdl.Definition
-
removeMessage
public javax.wsdl.Message removeMessage(QName name)
- Specified by:
removeMessage
in interfacejavax.wsdl.Definition
-
getMessages
public Map getMessages()
- Specified by:
getMessages
in interfacejavax.wsdl.Definition
-
addBinding
public void addBinding(javax.wsdl.Binding binding)
- Specified by:
addBinding
in interfacejavax.wsdl.Definition
-
getBinding
public javax.wsdl.Binding getBinding(QName name)
- Specified by:
getBinding
in interfacejavax.wsdl.Definition
-
removeBinding
public javax.wsdl.Binding removeBinding(QName name)
- Specified by:
removeBinding
in interfacejavax.wsdl.Definition
-
getBindings
public Map getBindings()
- Specified by:
getBindings
in interfacejavax.wsdl.Definition
-
getAllBindings
public Map getAllBindings()
- Specified by:
getAllBindings
in interfacejavax.wsdl.Definition
-
addPortType
public void addPortType(javax.wsdl.PortType portType)
- Specified by:
addPortType
in interfacejavax.wsdl.Definition
-
getPortType
public javax.wsdl.PortType getPortType(QName name)
- Specified by:
getPortType
in interfacejavax.wsdl.Definition
-
removePortType
public javax.wsdl.PortType removePortType(QName name)
- Specified by:
removePortType
in interfacejavax.wsdl.Definition
-
getPortTypes
public Map getPortTypes()
- Specified by:
getPortTypes
in interfacejavax.wsdl.Definition
-
getAllPortTypes
public Map getAllPortTypes()
- Specified by:
getAllPortTypes
in interfacejavax.wsdl.Definition
-
addService
public void addService(javax.wsdl.Service service)
- Specified by:
addService
in interfacejavax.wsdl.Definition
-
getService
public javax.wsdl.Service getService(QName name)
- Specified by:
getService
in interfacejavax.wsdl.Definition
-
removeService
public javax.wsdl.Service removeService(QName name)
- Specified by:
removeService
in interfacejavax.wsdl.Definition
-
getServices
public Map getServices()
- Specified by:
getServices
in interfacejavax.wsdl.Definition
-
getAllServices
public Map getAllServices()
- Specified by:
getAllServices
in interfacejavax.wsdl.Definition
-
setDocumentationElement
public void setDocumentationElement(Element docEl)
- Specified by:
setDocumentationElement
in interfacejavax.wsdl.WSDLElement
-
getDocumentationElement
public Element getDocumentationElement()
- Specified by:
getDocumentationElement
in interfacejavax.wsdl.WSDLElement
-
addExtensibilityElement
public void addExtensibilityElement(javax.wsdl.extensions.ExtensibilityElement extElement)
- Specified by:
addExtensibilityElement
in interfacejavax.wsdl.extensions.ElementExtensible
-
getExtensibilityElements
public List getExtensibilityElements()
- Specified by:
getExtensibilityElements
in interfacejavax.wsdl.extensions.ElementExtensible
-
createBinding
public javax.wsdl.Binding createBinding()
- Specified by:
createBinding
in interfacejavax.wsdl.Definition
-
createBindingFault
public javax.wsdl.BindingFault createBindingFault()
- Specified by:
createBindingFault
in interfacejavax.wsdl.Definition
-
createBindingInput
public javax.wsdl.BindingInput createBindingInput()
- Specified by:
createBindingInput
in interfacejavax.wsdl.Definition
-
createBindingOperation
public javax.wsdl.BindingOperation createBindingOperation()
- Specified by:
createBindingOperation
in interfacejavax.wsdl.Definition
-
createBindingOutput
public javax.wsdl.BindingOutput createBindingOutput()
- Specified by:
createBindingOutput
in interfacejavax.wsdl.Definition
-
createFault
public javax.wsdl.Fault createFault()
- Specified by:
createFault
in interfacejavax.wsdl.Definition
-
createImport
public javax.wsdl.Import createImport()
- Specified by:
createImport
in interfacejavax.wsdl.Definition
-
createInput
public javax.wsdl.Input createInput()
- Specified by:
createInput
in interfacejavax.wsdl.Definition
-
createMessage
public javax.wsdl.Message createMessage()
- Specified by:
createMessage
in interfacejavax.wsdl.Definition
-
createOperation
public javax.wsdl.Operation createOperation()
- Specified by:
createOperation
in interfacejavax.wsdl.Definition
-
createOutput
public javax.wsdl.Output createOutput()
- Specified by:
createOutput
in interfacejavax.wsdl.Definition
-
createPart
public javax.wsdl.Part createPart()
- Specified by:
createPart
in interfacejavax.wsdl.Definition
-
createPort
public javax.wsdl.Port createPort()
- Specified by:
createPort
in interfacejavax.wsdl.Definition
-
createPortType
public javax.wsdl.PortType createPortType()
- Specified by:
createPortType
in interfacejavax.wsdl.Definition
-
createService
public javax.wsdl.Service createService()
- Specified by:
createService
in interfacejavax.wsdl.Definition
-
createTypes
public javax.wsdl.Types createTypes()
- Specified by:
createTypes
in interfacejavax.wsdl.Definition
-
setExtensionRegistry
public void setExtensionRegistry(javax.wsdl.extensions.ExtensionRegistry extReg)
- Specified by:
setExtensionRegistry
in interfacejavax.wsdl.Definition
-
getExtensionRegistry
public javax.wsdl.extensions.ExtensionRegistry getExtensionRegistry()
- Specified by:
getExtensionRegistry
in interfacejavax.wsdl.Definition
-
removeExtensibilityElement
public javax.wsdl.extensions.ExtensibilityElement removeExtensibilityElement(javax.wsdl.extensions.ExtensibilityElement extElement)
- Specified by:
removeExtensibilityElement
in interfacejavax.wsdl.extensions.ElementExtensible
-
getExtensionAttribute
public Object getExtensionAttribute(QName name)
- Specified by:
getExtensionAttribute
in interfacejavax.wsdl.extensions.AttributeExtensible
-
getExtensionAttributes
public Map getExtensionAttributes()
- Specified by:
getExtensionAttributes
in interfacejavax.wsdl.extensions.AttributeExtensible
-
-