|
Oracle® Application Server XML Java API Reference 10g Release 3 (10.1.3) B28238-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.soap.server.DeploymentDescriptor
oracle.soap.server.ServiceDeploymentDescriptor
ServiceDeploymentDescriptor
defines the deployment information for a SOAP service, independent of its provider type. The class supports any number of named provider options, which allows the descriptor to be easily extended (without code changes) for new types of providers.
Field Summary | |
protected boolean |
m_checkMustUnderstands |
protected java.lang.String[] |
m_faultListener |
protected boolean |
m_isApacheDescriptor |
protected boolean |
m_isStatic |
protected java.lang.String[] |
m_methods |
protected java.lang.String |
m_providerClass |
protected java.lang.String |
m_providerId |
protected java.util.Hashtable |
m_providerOptions |
protected byte |
m_providerType |
protected int |
m_scope |
protected java.lang.String |
m_serviceClass |
protected int |
m_serviceType |
protected java.util.Hashtable |
m_sqlMap |
protected TypeMapping[] |
m_typeMappings |
static byte |
PROVIDER_JAVA |
static byte |
PROVIDER_SCRIPT_FILE |
static byte |
PROVIDER_SCRIPT_STRING |
static byte |
PROVIDER_USER_DEFINED |
static int |
SCOPE_APPLICATION |
static int |
SCOPE_REQUEST |
static int |
SCOPE_SESSION |
static int |
SERVICE_TYPE_MESSAGE |
static int |
SERVICE_TYPE_RPC |
Fields inherited from class oracle.soap.server.DeploymentDescriptor |
m_id |
Constructor Summary | |
ServiceDeploymentDescriptor() Construct a new service descriptor. |
Method Summary | |
SOAPFaultRouter |
buildFaultRouter(java.lang.ClassLoader cl) Get the fault router. |
static SOAPMappingRegistry |
buildSOAPMappingRegistry(ServiceDeploymentDescriptor sdd) Utility to generate an XML serialization registry from all the type mappings registered into a deployment descriptor. |
static SOAPMappingRegistry |
buildSOAPMappingRegistry(ServiceDeploymentDescriptor sdd, java.lang.ClassLoader cl) Utility to generate an XML serialization registry from all the type mappings registered into a deployment descriptor. |
static ServiceDeploymentDescriptor |
fromXML(Element root) Populate the ServiceDeploymentDescriptor with information from the given document, which is the XML representation of the descriptor. |
boolean |
getCheckMustUnderstands() Get the mustUnderstand attribute processing mode |
java.lang.String |
getDefaultSMRClass() Get the default SOAP mapping registry class. |
java.lang.String[] |
getFaultListener() Get the fault listener list. |
boolean |
getIsApacheDescriptor() Get indication of whether this is an Apache SOAP deployment descriptor or not. |
boolean |
getIsStatic() Get an indication of whether the methods exposed by this service are static or not. |
java.lang.String[] |
getMethods() Get the list of methods that are provided by this service. |
java.lang.String |
getProviderClass() Get the provider class. |
java.lang.String |
getProviderId() Get the provider id for this service. |
java.util.Hashtable |
getProviderOptions() Get the provider-specific options. |
byte |
getProviderType() Get the provider type. |
int |
getScope() Get the scope. |
java.lang.String |
getServiceClass() Get the Java class for this service. |
int |
getServiceType() Get the service type. |
java.util.Hashtable |
getSqlMap() Get the SQL type to Java type map. |
TypeMapping[] |
getTypeMappings() Get the XML-Java type mappings, which define how to deserialize XML into Java and serialize Java into XML. |
boolean |
isMethodValid(java.lang.String methodName) Determine if the given method is valid for this service. |
void |
setCheckMustUnderstands(boolean checkThem) Set the mustUnderstand attribute processing mode |
void |
setDefaultSMRClass(java.lang.String defaultSMRClass) Set the default SOAP mapping registry class. |
void |
setFaultListener(java.lang.String[] faultListener) Set the fault listener list. |
void |
setIsApacheDescriptor(boolean isApache) Set whether this is an Apache SOAP deployment descriptor or not. |
void |
setIsStatic(boolean isStatic) Set the attribute which indicates whether the methods exposed by this service are static or not. |
void |
setMethods(java.lang.String[] methods) Set the list of methods that are provided by this service. |
void |
setProviderClass(java.lang.String providerClass) Set the provider class. |
void |
setProviderId(java.lang.String providerId) Set the id of the provider for this service. |
void |
setProviderOptions(java.util.Hashtable providerOptions) Set the provider-specific options. |
void |
setProviderType(byte providerType) Set the provider type. |
void |
setScope(int scope) Set the execution scope. |
void |
setServiceClass(java.lang.String className) Set the Java class for this service. |
void |
setServiceType(int serviceType) Set the service type. |
void |
setSqlMap(java.util.Hashtable sqlMap) Set the map that maps from SQL type to Java type. |
void |
setTypeMappings(TypeMapping[] typeMappings) Set the XML-Java type mappings, which define how to deserialize XML into Java and serialize Java into XML. |
java.lang.String |
toString() Get a printable representation of this descriptor. |
void |
toXML(java.io.Writer pr) Write out the service deployment descriptor as XML. |
Methods inherited from class oracle.soap.server.DeploymentDescriptor |
getId, setId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int SERVICE_TYPE_RPC
public static final int SERVICE_TYPE_MESSAGE
public static final byte PROVIDER_JAVA
public static final byte PROVIDER_SCRIPT_FILE
public static final byte PROVIDER_SCRIPT_STRING
public static final byte PROVIDER_USER_DEFINED
public static final int SCOPE_REQUEST
public static final int SCOPE_SESSION
public static final int SCOPE_APPLICATION
protected int m_serviceType
protected boolean m_checkMustUnderstands
protected boolean m_isApacheDescriptor
protected java.lang.String m_providerId
protected byte m_providerType
protected java.lang.String m_providerClass
protected java.util.Hashtable m_providerOptions
protected int m_scope
protected java.lang.String[] m_methods
protected java.lang.String m_serviceClass
protected boolean m_isStatic
protected TypeMapping[] m_typeMappings
protected java.util.Hashtable m_sqlMap
protected java.lang.String[] m_faultListener
Constructor Detail |
public ServiceDeploymentDescriptor()
Method Detail |
public boolean getIsApacheDescriptor()
true
if this descriptor was deployed as an Apache SOAP deployment descriptor. false
if it was deployed as an Oracle SOAP service deployment descriptor.public void setIsApacheDescriptor(boolean isApache)
isApache
- true
if this descriptor was deployed as an Apache SOAP deployment descriptor. false
if it was deployed as an Oracle SOAP service deployment descriptor.public void setProviderId(java.lang.String providerId)
providerId
- The provider's id for this service.public java.lang.String getProviderId()
public void setMethods(java.lang.String[] methods)
methods
- The list of provided methods.public java.lang.String[] getMethods()
public void setScope(int scope)
scope
- The execution scope, which is one of the SCOPE_xxx constants.public int getScope()
public void setServiceType(int serviceType)
serviceType
- The service type, which is one of the SERVICE_TYPE_xxx constants.public int getServiceType()
public void setProviderClass(java.lang.String providerClass)
providerClass
- The name of the class that implements the provider for this service. This is only valid for Apache deployment descriptors.public java.lang.String getProviderClass()
public void setProviderType(byte providerType)
providerType
- The provider type, which can be any string. The provider type is used to validate the XML service descriptor (for the provider-specific options).public byte getProviderType()
public void setProviderOptions(java.util.Hashtable providerOptions)
providerOptions
- The name-value pairs that represent the provider-specific options for this service.public java.util.Hashtable getProviderOptions()
public void setFaultListener(java.lang.String[] faultListener)
faultListener
- The list of class names that are fault listeners for this service.public java.lang.String[] getFaultListener()
public SOAPFaultRouter buildFaultRouter(java.lang.ClassLoader cl)
public void setTypeMappings(TypeMapping[] typeMappings)
typeMappings
- The type mappings.public TypeMapping[] getTypeMappings()
public void setSqlMap(java.util.Hashtable sqlMap)
sqlMap
- The SQL type to Java class map.public java.util.Hashtable getSqlMap()
public void setDefaultSMRClass(java.lang.String defaultSMRClass)
defaultSMRClass
- The default SOAP mapping registry class.public java.lang.String getDefaultSMRClass()
public boolean getCheckMustUnderstands()
public void setCheckMustUnderstands(boolean checkThem)
checkThem
- The mustUnderstand processing mode.public void setServiceClass(java.lang.String className)
className
- fully qualified Java class name.public java.lang.String getServiceClass()
public void setIsStatic(boolean isStatic)
isStatic
- true
if the methods are static else false
.public boolean getIsStatic()
true
if the methods are static else false
.public boolean isMethodValid(java.lang.String methodName)
true
if the method is valid for this service, else false
.public static ServiceDeploymentDescriptor fromXML(Element root)
ServiceDeploymentDescriptor
with information from the given document, which is the XML representation of the descriptor.root
- The root of the XML document that represents the service descriptor.ServiceDeploymentDescriptor
that contains the information from the document.java.lang.IllegalArgumentException
- Invalid document.public void toXML(java.io.Writer pr)
pr
- The writer for the XML output.public java.lang.String toString()
public static SOAPMappingRegistry buildSOAPMappingRegistry(ServiceDeploymentDescriptor sdd)
public static SOAPMappingRegistry buildSOAPMappingRegistry(ServiceDeploymentDescriptor sdd, java.lang.ClassLoader cl)
|
Oracle® Application Server XML Java API Reference 10g Release 3 (10.1.3) B28238-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |