|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--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 java.lang.String[] |
m_faultListener
|
protected java.lang.String |
m_id
|
protected java.lang.String[] |
m_methods
|
protected java.lang.String |
m_providerId
|
protected java.util.Hashtable |
m_providerOptions
|
protected java.lang.String |
m_providerType
|
protected int |
m_scope
|
protected int |
m_serviceType
|
protected java.util.Hashtable |
m_sqlMap
|
protected org.apache.soap.server.TypeMapping[] |
m_typeMappings
|
static int |
SCOPE_APPLICATION
|
static int |
SCOPE_REQUEST
|
static int |
SCOPE_SESSION
|
static int |
SERVICE_TYPE_MESSAGE
|
static int |
SERVICE_TYPE_RPC
|
Constructor Summary | |
ServiceDeploymentDescriptor()
Construct a new service descriptor. |
Method Summary | |
org.apache.soap.server.SOAPFaultRouter |
buildFaultRouter()
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 java.util.Hashtable |
buildSqlClassMap(ServiceDeploymentDescriptor sdd)
Utility to generate a map from SQL type to Java Class using the type mapping information from the deployment descriptor. |
static ServiceDeploymentDescriptor |
fromXML(org.w3c.dom.Element root)
Populate the ServiceDeploymentDescriptor with information
from the given document, which is the XML representation of the
descriptor. |
java.lang.String |
getDefaultSMRClass()
Get the default SOAP mapping registry class. |
java.lang.String[] |
getFaultListener()
Get the fault listener list. |
java.lang.String |
getId()
Get the service id. |
java.lang.String[] |
getMethods()
Get the list of methods that are provided by this service. |
java.lang.String |
getProviderId()
Get the provider id for this service. |
java.util.Hashtable |
getProviderOptions()
Get the provider-specific options. |
java.lang.String |
getProviderType()
Get the provider type. |
int |
getScope()
Get the scope. |
int |
getServiceType()
Get the service type. |
java.util.Hashtable |
getSqlMap()
Get the SQL type to Java type map. |
org.apache.soap.server.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 |
setDefaultSMRClass(java.lang.String defaultSMRClass)
Set the default SOAP mapping registry class. |
void |
setFaultListener(java.lang.String[] faultListener)
Set the fault listener list. |
void |
setId(java.lang.String id)
Set the service id, which must be a valid URI. |
void |
setMethods(java.lang.String[] methods)
Set the list of methods that are provided by this service. |
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(java.lang.String providerType)
Set the provider type. |
void |
setScope(int scope)
Set the execution scope. |
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(org.apache.soap.server.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 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 int SCOPE_REQUEST
public static final int SCOPE_SESSION
public static final int SCOPE_APPLICATION
protected java.lang.String m_id
protected int m_serviceType
protected java.lang.String m_providerType
protected java.lang.String m_providerId
protected int m_scope
protected java.lang.String[] m_methods
protected java.util.Hashtable m_providerOptions
protected org.apache.soap.server.TypeMapping[] m_typeMappings
protected java.util.Hashtable m_sqlMap
protected java.lang.String[] m_faultListener
Constructor Detail |
public ServiceDeploymentDescriptor()
Method Detail |
public void setId(java.lang.String id)
id
- The service URI.public java.lang.String getId()
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 setProviderType(java.lang.String 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 java.lang.String 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 org.apache.soap.server.SOAPFaultRouter buildFaultRouter()
public void setTypeMappings(org.apache.soap.server.TypeMapping[] typeMappings)
typeMappings
- The type mappings.public org.apache.soap.server.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 isMethodValid(java.lang.String methodName)
true
if the method is valid for this service,
else false
.public static ServiceDeploymentDescriptor fromXML(org.w3c.dom.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()
toString
in class java.lang.Object
public static SOAPMappingRegistry buildSOAPMappingRegistry(ServiceDeploymentDescriptor sdd)
dd
- the deployment descriptorpublic static java.util.Hashtable buildSqlClassMap(ServiceDeploymentDescriptor sdd) throws SOAPException
sdd
- The service deployment descriptor to use.SOAPException
- Failed to generate map.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |