|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents the deployment descriptor. It describes contents of a package used for package deployment.
Field Summary | |
static java.lang.String |
NAMESPACE_PACKAGE_1_0
Namespace of package deployment descriptor version 1.0. |
static java.lang.String |
NAMESPACE_PACKAGE_1_1
Namespace of package deployment descriptor version 1.1. |
static java.lang.String |
NAMESPACE_PACKAGE_1_2
Namespace of package deployment descriptor version 1.2. |
static java.lang.String |
NAMESPACE_PACKAGE_1_3
Namespace of package deployment descriptor version 1.3. |
Method Summary | |
Dependency |
addDependency(QName name,
java.lang.String requiredVersion)
Creates and adds a new Dependency object. |
Export |
addExport()
Creates and adds a new Export object. |
FaultSerialization |
addFaultSerialization(java.lang.String name,
java.lang.String serializerClass,
java.lang.String deserializerClass)
Creates and adds a new FaultSerialization object. |
Handler |
addHandler(java.lang.String name,
java.lang.String implClass)
Creates and adds a new Handler object. |
HeaderProcessor |
addHeaderProcessor(java.lang.String name,
java.lang.String implClass)
Deprecated. Use Handler instead of (@link HeaderProcessor},
addHandler(String, String) as a replacement. |
Interceptor |
addInterceptor(java.lang.String name,
java.lang.String implClass)
Creates and adds a new Interceptor object. |
Listener |
addListener(java.lang.String name,
java.lang.String implClass)
Creates and adds a new Listener object. |
Module |
addModule(java.lang.String name,
java.lang.String implClass)
Creates and adds a new Module object. |
PolicyAssertion |
addPolicyAssertion(QName name,
java.lang.String implClass)
Creates and adds a new PolicyAssertion object. |
Processing |
addProcessing(java.lang.String name)
Creates and adds a new Processing object. |
Serialization |
addSerialization(java.lang.String name,
java.lang.String serializerClass,
java.lang.String deserializerClass)
Creates and adds a new Serialization object. |
ServiceClient |
addServiceClient(QName servicePortType,
Endpoint serviceURL)
Creates and adds a new ServiceClientImpl object. |
ServiceEndpoint |
addServiceEndpoint(java.lang.String name,
java.lang.String path,
ServiceInstance serviceInstance)
Creates and adds a new Service object. |
ServiceInstance |
addServiceInstance(java.lang.String name,
java.lang.String implClass)
Creates and adds a new ServiceInstance object. |
Transport |
addTransport(java.lang.String name,
java.lang.String implClass)
Creates and adds a new Transport object. |
TypeMapping |
addTypeMapping(java.lang.String name)
Creates and adds a new TypeMapping object. |
java.util.List |
getDependencies()
Returns a map of all dependencies defined in this deployment descriptor. |
java.util.List |
getExports()
Returns a list of all exports defined in this deployment descriptor. |
java.util.Map |
getFaultSerializations()
Returns a map of all fault serializations defined in this deployment descriptor. |
java.util.Map |
getHandlers()
Returns a list of all handlers. |
java.util.Map |
getHeaderProcessors()
Deprecated. Use Handler instead of (@link HeaderProcessor},
getHandlers() as a replacement. |
java.util.Map |
getInterceptors()
Returns a map of all interceptors defined in this deployment descriptor. |
Endpoint |
getLicense()
Returns the reference to a license document. |
java.util.Map |
getListeners()
Returns a map of all Listeners defined in this deployment descriptor. |
java.lang.String |
getLocation()
Returns the location of this deployment descriptor/package. |
java.util.Map |
getModules()
Returns a map of all named modules defined in this deployment descriptor. |
java.lang.String |
getName()
Returns the name of the deployment descriptor. |
java.lang.String |
getNamespace()
Returns the namespace of the deployment descriptor according to the version of deserialized deplyment descriptor XML document. |
Packager |
getPackager()
Returns the information about the packager. |
java.util.Map |
getPolicyAssertions()
Returns a map of all policy assertions defined in this deployment descriptor. |
java.util.Map |
getProcessings()
Returns a map of all named processings defined in this deployment descriptor. |
java.util.Map |
getSerializations()
Returns a map of all serializations defined in this deployment descriptor. |
java.util.List |
getServiceClients()
Returns a map of all named service clients defined in this deployment descriptor. |
java.util.Map |
getServiceEndpoints()
Returns a map of all named services defined in this deployment descriptor. |
java.util.Map |
getServiceInstances()
Returns a map of all named serviceInstances defined in this deployment descriptor. |
java.lang.String |
getTargetNamespace()
Returns the target namespace or "" in case of an empty namespace. |
java.util.Map |
getTransports()
Returns a map of all named transports defined in this deployment descriptor. |
java.util.Map |
getTypeMappings()
Returns a map of all named type mappings defined in this deployment descriptor. |
Version |
getVersion()
Returns the version of the deployment descriptor or null if not known. |
boolean |
isClientPackage()
Returns the client flag of the package. |
boolean |
isLibrary()
Returns true if the package is a library package, false otherwise. |
void |
setClientPackage(boolean clientPackage)
Sets the client flag of the package. |
void |
setLibrary(boolean library)
Sets the library flag of the package. |
void |
setLicense(Endpoint endpoint)
Sets the reference to a license document. |
void |
setLocation(java.lang.String location)
Sets the location of this deployment descriptor/package. |
void |
setName(java.lang.String name)
Sets the name of the deployment descriptor. |
Packager |
setPackager(java.lang.String name)
Creates object containing the information about the packager. |
void |
setTargetNamespace(java.lang.String targetNamespace)
Sets the target namespace. |
Version |
setVersion(java.lang.String version)
Sets the version of the deployment descriptor. |
Methods inherited from interface org.systinet.wasp.dd.ConfigurablePart |
getConfiguration |
Methods inherited from interface org.systinet.wasp.dd.DeploymentPart |
getDeploymentDescriptor |
Methods inherited from interface org.systinet.wasp.dd.ExtensiblePart |
addElement, getElements |
Methods inherited from interface org.systinet.wasp.dd.DocumentablePart |
getDocumentation, setDocumentation |
Field Detail |
public static final java.lang.String NAMESPACE_PACKAGE_1_0
http://systinet.com/wasp/package/1.0
. This version of
deployment descriptor is supported by WASP 4.0 and newer.
getNamespace()
,
Constant Field Valuespublic static final java.lang.String NAMESPACE_PACKAGE_1_1
http://systinet.com/wasp/package/1.1
. This version of
deployment descriptor is supported by WASP 4.5 and newer.
getNamespace()
,
Constant Field Valuespublic static final java.lang.String NAMESPACE_PACKAGE_1_2
http://systinet.com/wasp/package/1.2
. This version of
deployment descriptor is supported by WASP 4.6 and newer.
getNamespace()
,
Constant Field Valuespublic static final java.lang.String NAMESPACE_PACKAGE_1_3
http://systinet.com/wasp/package/1.3
. This version of
deployment descriptor is supported by WSO2 SOA Enablement Server 5.0 and newer.
getNamespace()
,
Constant Field ValuesMethod Detail |
public java.lang.String getNamespace()
NAMESPACE_PACKAGE_1_0
,
NAMESPACE_PACKAGE_1_1
,
NAMESPACE_PACKAGE_1_2
and
NAMESPACE_PACKAGE_1_3
.public java.lang.String getTargetNamespace()
""
in case of an empty namespace.
public void setTargetNamespace(java.lang.String targetNamespace)
targetNamespace
- the target namespace or ""
in case of
an empty namespace. null
is handled as ""
.public java.lang.String getName()
""
if name has not been set yet.public void setName(java.lang.String name)
name
- the name, it's length must be greater than 0.public Version getVersion()
null
if not known.
public Version setVersion(java.lang.String version)
version
- the version being set, MUST NOT be null.
Version
objectpublic boolean isLibrary()
true
if the package is a library package, false
otherwise.
true
if the package is a library package, false
otherwisepublic void setLibrary(boolean library)
library
- the library flag of the packagepublic boolean isClientPackage()
true
if the package is a client onepublic void setClientPackage(boolean clientPackage)
clientPackage
- true
if the package is a client onepublic Interceptor addInterceptor(java.lang.String name, java.lang.String implClass) throws DuplicatedNameException
Interceptor
object.
name
- the local part of the QName
of the interceptor to be addedimplClass
- the implementation class
Interceptor
object
DuplicatedNameException
NamedPart.setName(java.lang.String)
,
ImplementablePart.setImplementationClass(java.lang.String)
public java.util.Map getInterceptors()
Interceptor
object reference.public Dependency addDependency(QName name, java.lang.String requiredVersion) throws DuplicatedNameException
Dependency
object.
name
- the QName of the dependency to be addedrequiredVersion
- the required version of the deployment descriptor.
Dependency
object
DuplicatedNameException
Dependency.getReferredName()
,
Dependency.setRequiredVersion(java.lang.String)
public java.util.List getDependencies()
public Packager getPackager()
public Packager setPackager(java.lang.String name)
name
- name of the packager, use null
to clear the packager
Packager
object or null
Packager.setName(java.lang.String)
public Endpoint getLicense()
public void setLicense(Endpoint endpoint)
endpoint
- non-null
endpoint of the license documentpublic java.lang.String getLocation()
public void setLocation(java.lang.String location) throws java.lang.IllegalStateException
location
- the location of this deployment descriptor/package
java.lang.IllegalStateException
- when trying to set location of deployment
descriptor/package not created from scratch (i.e. read from a file)public Serialization addSerialization(java.lang.String name, java.lang.String serializerClass, java.lang.String deserializerClass) throws DuplicatedNameException
Serialization
object.
name
- the local part of the QName
of the serialization to be addedserializerClass
- the implementation class of the serializerdeserializerClass
- the implementation class of the deserializer
Serialization
object
DuplicatedNameException
NamedPart.setName(java.lang.String)
,
Serialization.setSerializerClass(java.lang.String)
,
Serialization.setDeserializerClass(java.lang.String)
public java.util.Map getSerializations()
Serialization
object reference.public FaultSerialization addFaultSerialization(java.lang.String name, java.lang.String serializerClass, java.lang.String deserializerClass) throws DuplicatedNameException
FaultSerialization
object.
name
- the local part of the QName
of the fault serialization to be addedserializerClass
- the implementation class of the serializerdeserializerClass
- the implementation class of the deserializer
FaultSerialization
object
DuplicatedNameException
NamedPart.setName(java.lang.String)
,
FaultSerialization.setSerializerClass(java.lang.String)
,
FaultSerialization.setDeserializerClass(java.lang.String)
public java.util.Map getFaultSerializations()
FaultSerialization
object reference.public Processing addProcessing(java.lang.String name) throws DuplicatedNameException
Processing
object.
name
- the local part of the QName
of the processing to be added
Processing
object
DuplicatedNameException
NamedPart.setName(java.lang.String)
public java.util.Map getProcessings()
Processing
object reference.public ServiceEndpoint addServiceEndpoint(java.lang.String name, java.lang.String path, ServiceInstance serviceInstance) throws DuplicatedNameException
Service
object.
name
- the local part of the QName
of the service to be addedpath
- endpoint of the serviceserviceInstance
- reference to an existing ServiceInstance
object
ServiceEndpointImpl
object
DuplicatedNameException
NamedPart.setName(java.lang.String)
,
ServiceEndpoint.setPath(java.lang.String)
,
ServiceEndpoint.setServiceInstance(org.systinet.wasp.dd.ServiceInstance)
public java.util.Map getServiceEndpoints()
ServiceEndpointImpl
object reference.public HeaderProcessor addHeaderProcessor(java.lang.String name, java.lang.String implClass) throws DuplicatedNameException
Handler
instead of (@link HeaderProcessor},
addHandler(String, String)
as a replacement.
object.
- Parameters:
name
- the local part of the QName
of the header processor to be addedimplClass
- the implementation class
- Returns:
- the newly created
HeaderProcessor
object
- Throws:
DuplicatedNameException
- See Also:
NamedPart.setName(java.lang.String)
,
ImplementablePart.setImplementationClass(java.lang.String)
public java.util.Map getHeaderProcessors()
Handler
instead of (@link HeaderProcessor},
getHandlers()
as a replacement.
HeaderProcessor
object reference.public Handler addHandler(java.lang.String name, java.lang.String implClass) throws DuplicatedNameException
Handler
object.
name
- the local part of the QName
of the header processor to be addedimplClass
- the implementation class
object
- Throws:
DuplicatedNameException
- See Also:
NamedPart.setName(java.lang.String)
,
ImplementablePart.setImplementationClass(java.lang.String)
public java.util.Map getHandlers()
public Export addExport()
Export
object.
Export
objectpublic java.util.List getExports()
Export
object references.public Transport addTransport(java.lang.String name, java.lang.String implClass) throws DuplicatedNameException
Transport
object.
name
- the local part of the QName
of the transport to be addedimplClass
- the implementation class
Transport
object
DuplicatedNameException
NamedPart.setName(java.lang.String)
,
ImplementablePart.setImplementationClass(java.lang.String)
public java.util.Map getTransports()
Transport
object reference.public Module addModule(java.lang.String name, java.lang.String implClass) throws DuplicatedNameException
Module
object.
name
- the local part of the QName
of the module to be addedimplClass
- the implementation class
Module
object
DuplicatedNameException
NamedPart.setName(java.lang.String)
,
ImplementablePart.setImplementationClass(java.lang.String)
public java.util.Map getModules()
Module
object reference.public ServiceInstance addServiceInstance(java.lang.String name, java.lang.String implClass) throws DuplicatedNameException
ServiceInstance
object.
name
- the local part of the QName
of the service instance to be addedimplClass
- the implementation class
ServiceInstance
object
DuplicatedNameException
NamedPart.setName(java.lang.String)
,
ImplementablePart.setImplementationClass(java.lang.String)
public java.util.Map getServiceInstances()
ServiceInstance
object reference.public ServiceClient addServiceClient(QName servicePortType, Endpoint serviceURL)
ServiceClientImpl
object.
servicePortType
- service port typeserviceURL
- service endpoint
ServiceClientImpl
objectServiceClient.setServicePortType(javax.xml.namespace.QName)
,
ServiceClient.setServiceURL(org.idoox.transport.client.Endpoint)
public java.util.List getServiceClients()
ServiceClientImpl
object references.public TypeMapping addTypeMapping(java.lang.String name) throws DuplicatedNameException
TypeMapping
object.
name
- the local part of the QName
of the type mapping to be added
TypeMapping
object
DuplicatedNameException
NamedPart.setName(java.lang.String)
public java.util.Map getTypeMappings()
TypeMapping
object reference.public Listener addListener(java.lang.String name, java.lang.String implClass) throws DuplicatedNameException
Listener
object.
name
- the local part of the QName
of the listener to be addedimplClass
- the implementation class
Listener
object
DuplicatedNameException
NamedPart.setName(java.lang.String)
,
ImplementablePart.setImplementationClass(java.lang.String)
public java.util.Map getListeners()
Listener
object reference.public PolicyAssertion addPolicyAssertion(QName name, java.lang.String implClass) throws DuplicatedNameException
PolicyAssertion
object.
name
- the QName
of the policy assertion to be addedimplClass
- the implementation class
PolicyAssertion
object
DuplicatedNameException
public java.util.Map getPolicyAssertions()
PolicyAssertion
object reference.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |