Package org.apache.axis2.wsdl.util
Class WSDLWrapperSaveImpl
- java.lang.Object
-
- org.apache.axis2.wsdl.util.WSDLWrapperSaveImpl
-
- All Implemented Interfaces:
Serializable
,javax.wsdl.Definition
,javax.wsdl.extensions.AttributeExtensible
,javax.wsdl.extensions.ElementExtensible
,javax.wsdl.WSDLElement
,WSDLWrapperImpl
public class WSDLWrapperSaveImpl extends Object implements WSDLWrapperImpl
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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WSDLWrapperSaveImpl(javax.wsdl.Definition def)
ConstructorWSDLWrapperSaveImpl(javax.wsdl.Definition def, URL wURL)
Constructor
-
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)
void
close()
Closes the use of the wrapper implementation and allows internal resources to be released.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)
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()
Returns the WSDL4J Definition object that is being wrappedString
getWSDLLocation()
Gets the location for the WSDL4J Definition object that is being wrappedvoid
loadResources()
void
releaseResources()
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
setDefinitionToWrap(javax.wsdl.Definition d)
Sets the WSDL4J Definition object that is being wrappedvoid
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)
void
setWSDLLocation(String uriLocation)
Sets the location for the WSDL4J Definition object that is being wrappedString
toString()
-
-
-
Constructor Detail
-
WSDLWrapperSaveImpl
public WSDLWrapperSaveImpl(javax.wsdl.Definition def)
Constructor- Parameters:
def
- The WSDL Definition
-
WSDLWrapperSaveImpl
public WSDLWrapperSaveImpl(javax.wsdl.Definition def, URL wURL)
Constructor- Parameters:
def
- The WSDL DefinitionwURL
- The URL for the wsdl
-
-
Method Detail
-
getUnwrappedDefinition
public javax.wsdl.Definition getUnwrappedDefinition()
Description copied from interface:WSDLWrapperImpl
Returns the WSDL4J Definition object that is being wrapped- Specified by:
getUnwrappedDefinition
in interfaceWSDLWrapperImpl
-
setDefinitionToWrap
public void setDefinitionToWrap(javax.wsdl.Definition d)
Sets the WSDL4J Definition object that is being wrapped- Specified by:
setDefinitionToWrap
in interfaceWSDLWrapperImpl
- Parameters:
d
- the WSDL4J Definition object
-
setWSDLLocation
public void setWSDLLocation(String uriLocation)
Sets the location for the WSDL4J Definition object that is being wrapped- Specified by:
setWSDLLocation
in interfaceWSDLWrapperImpl
-
getWSDLLocation
public String getWSDLLocation()
Gets the location for the WSDL4J Definition object that is being wrapped- Specified by:
getWSDLLocation
in interfaceWSDLWrapperImpl
-
close
public void close()
Closes the use of the wrapper implementation and allows internal resources to be released.- Specified by:
close
in interfaceWSDLWrapperImpl
-
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
-
setExtensionAttribute
public void setExtensionAttribute(QName name, Object value)
- Specified by:
setExtensionAttribute
in interfacejavax.wsdl.extensions.AttributeExtensible
-
releaseResources
public void releaseResources()
- Specified by:
releaseResources
in interfaceWSDLWrapperImpl
-
loadResources
public void loadResources()
-
-