org.apache.soap.server
Class DeploymentDescriptor

java.lang.Object
  |
  +--org.apache.soap.server.DeploymentDescriptor

public class DeploymentDescriptor
extends java.lang.Object
implements java.io.Serializable

This class represents the deployment information about a SOAP service.

Author:
Sanjiva Weerawarana (sanjiva@watson.ibm.com)
See Also:
Serialized Form

Field Summary
static byte PROVIDER_JAVA
           
static byte PROVIDER_SCRIPT_FILE
           
static byte PROVIDER_SCRIPT_STRING
           
static int SCOPE_APPLICATION
           
static int SCOPE_PAGE
           
static int SCOPE_REQUEST
           
static int SCOPE_SESSION
           
 
Constructor Summary
DeploymentDescriptor()
          Constructor.
 
Method Summary
static SOAPMappingRegistry buildSOAPMappingRegistry(DeploymentDescriptor dd)
          Utility to generate an XML serialization registry from all the type mappings registered into a deployment descriptor.
static DeploymentDescriptor fromXML(org.w3c.dom.Element root)
          Build a deployment descriptor from a document corresponding to the deployment descriptor DTD.
 java.lang.String getID()
           
 boolean getIsStatic()
           
 TypeMapping[] getMappings()
          Return the registered mappings.
 java.lang.String[] getMethods()
           
 java.lang.String getProviderClass()
           
 byte getProviderType()
           
 int getScope()
           
 java.lang.String getScriptFilenameOrString()
           
 java.lang.String getScriptLanguage()
           
 void setID(java.lang.String id)
          ID of this service.
 void setIsStatic(boolean isStatic)
          For Java providers, is it static or not.
 void setMappings(TypeMapping[] mappings)
          Type mappings between XML types of certain encodings and Java types.
 void setMethods(java.lang.String[] methods)
          Methods provided by the service.
 void setProviderClass(java.lang.String providerClass)
          For Java providers, the class providing the service.
 void setProviderType(byte providerType)
          Type of provider.
 void setScope(int scope)
          Lifecyle of the object providing the service.
 void setScriptFilenameOrString(java.lang.String scriptFilenameOrString)
           
 void setScriptLanguage(java.lang.String scriptLanguage)
           
 java.lang.String toString()
          What do u think this does?
 void toXML(java.io.Writer pr)
          Write out the deployment descriptor according to the the deployment descriptor DTD.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SCOPE_PAGE

public static final int SCOPE_PAGE

SCOPE_REQUEST

public static final int SCOPE_REQUEST

SCOPE_SESSION

public static final int SCOPE_SESSION

SCOPE_APPLICATION

public static final int SCOPE_APPLICATION

PROVIDER_JAVA

public static final byte PROVIDER_JAVA

PROVIDER_SCRIPT_FILE

public static final byte PROVIDER_SCRIPT_FILE

PROVIDER_SCRIPT_STRING

public static final byte PROVIDER_SCRIPT_STRING
Constructor Detail

DeploymentDescriptor

public DeploymentDescriptor()
Constructor.
Parameters:
id - the name of the service. Should be of valid URI syntax.
Method Detail

setID

public void setID(java.lang.String id)
ID of this service.

getID

public java.lang.String getID()

setScope

public void setScope(int scope)
Lifecyle of the object providing the service.

getScope

public int getScope()

setMethods

public void setMethods(java.lang.String[] methods)
Methods provided by the service.

getMethods

public java.lang.String[] getMethods()

setProviderType

public void setProviderType(byte providerType)
Type of provider.

getProviderType

public byte getProviderType()

setProviderClass

public void setProviderClass(java.lang.String providerClass)
For Java providers, the class providing the service.

getProviderClass

public java.lang.String getProviderClass()

setIsStatic

public void setIsStatic(boolean isStatic)
For Java providers, is it static or not.

getIsStatic

public boolean getIsStatic()

setScriptLanguage

public void setScriptLanguage(java.lang.String scriptLanguage)

getScriptLanguage

public java.lang.String getScriptLanguage()

setScriptFilenameOrString

public void setScriptFilenameOrString(java.lang.String scriptFilenameOrString)

getScriptFilenameOrString

public java.lang.String getScriptFilenameOrString()

setMappings

public void setMappings(TypeMapping[] mappings)
Type mappings between XML types of certain encodings and Java types.
Parameters:
map - the structure containing the mapping info

getMappings

public TypeMapping[] getMappings()
Return the registered mappings.

toXML

public void toXML(java.io.Writer pr)
Write out the deployment descriptor according to the the deployment descriptor DTD.

fromXML

public static DeploymentDescriptor fromXML(org.w3c.dom.Element root)
Build a deployment descriptor from a document corresponding to the deployment descriptor DTD.

toString

public java.lang.String toString()
What do u think this does?
Overrides:
toString in class java.lang.Object

buildSOAPMappingRegistry

public static SOAPMappingRegistry buildSOAPMappingRegistry(DeploymentDescriptor dd)
Utility to generate an XML serialization registry from all the type mappings registered into a deployment descriptor.
Parameters:
dd - the deployment descriptor
Returns:
the xml serialization registry


Copyright © 2000 Apache XML Project. All Rights Reserved.