|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.portal.prt.service.soap.mapping.SOAPRegistry
Class in charge of maintaining all the mapping and basic information on Available Portal Services
- Mapping of basic Java Type and SOAP/XMl Qualified Name.
- List of specilaized rgistry; containing nformation of Mapping for specific Portal Service
- List of Header Porcessor
- List of method Authorized Processor
This registry is initialized by the InitMapping class and soapTypes.xml
| Method Summary | |
void |
addMappings(java.lang.String namespace,
java.lang.Class javaType,
QName name,
SOAPDeserializer deserializer,
SOAPSerializer serializer)
Add entry for the mapping between java type and XMML/SOAP Qualified name |
void |
addMethodsAuthorizedProcessor(java.lang.String name,
IMethodsAuthorizedProcessor methods)
Add in the list a IIMethodsAuthorizedProcessor instance |
void |
addSpecializedRegistry(java.lang.String name,
ISpecializedRegistry registry)
Add registry entry corresponding to a Portal Service |
static void |
destroy()
Destroy the instance |
java.util.Hashtable |
getAllSpecializedRegistry()
Get the list of the specialized registry contains in the central registry |
QName |
getArrayQName()
Get the QName Array for SOAP Array Type |
java.lang.String |
getDefaultNamespace(java.lang.Class type)
Get Default namespace for the Java type |
SOAPDeserializer |
getDeserializer(QName qname,
java.lang.String targetNamespace)
Get Deserialzater for QName |
QNameURI |
getElementType(java.lang.Class type)
Get QNameURI for Class type |
QName |
getElementType(java.lang.Class type,
java.lang.String targetNamespace)
Get QName for Class type |
ISOAPHeaderProcessor |
getHeaderProcessor(java.lang.String action)
Holds the basic function link to the SOAPHeader |
static SOAPRegistry |
getInstance()
Get the current instance of the SOAPRegistry |
java.lang.Class |
getJavaType(QName qname,
java.lang.String targetNamespace)
Get Java Type for QName |
java.util.Hashtable |
getListJavaTypes()
Get list of Java types |
java.util.Hashtable |
getListQName()
Get list of Qname |
java.util.Hashtable |
getListSerializers()
Get List of Serializers |
java.util.Hashtable |
getListSpecializedRegistry()
Get lsit of ISpecializedRegistry |
java.util.Hashtable |
getListUnSerializers()
Get list of unserializers |
IMethodsAuthorizedProcessor |
getMethodsAuthorizedProcessor(java.lang.String name)
get an instance of IMethodsAuthorizedProcessor |
SOAPSerializer |
getSerializer(java.lang.Class type,
java.lang.String encodingStyleURI)
Get Serializer for Java Type |
ISpecializedRegistry |
getSpecializedRegistry(java.lang.String name)
Get an intance of specific registry for a Portal Service |
boolean |
isPrimitive(java.lang.Class aClass)
Test if the class is java lang primitive |
ISpecializedRegistry |
removeSpecializedRegistry(java.lang.String name)
Remove a specialized registry from the list |
void |
setArrayQName(QName name)
Set the QName of SOAP Array Type |
void |
setArraySerializer(SOAPSerializer ser)
Set the Serializer for SOAP Array Type |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static SOAPRegistry getInstance()
public static void destroy()
public SOAPDeserializer getDeserializer(QName qname,
java.lang.String targetNamespace)
qname - Qname to find serializer fortargetNamespace - namespace of the QName (optional since EP60 SP2)
public SOAPSerializer getSerializer(java.lang.Class type,
java.lang.String encodingStyleURI)
type - Type to find deserializer fortargetNamespace - namespace attach to the Class Type and Current context
public QName getElementType(java.lang.Class type,
java.lang.String targetNamespace)
type - the class to findtargetNamespace - namespace attach to the Class Type and Current contextpublic QNameURI getElementType(java.lang.Class type)
type - the class to findpublic java.lang.String getDefaultNamespace(java.lang.Class type)
type - the Java type to find
public java.lang.Class getJavaType(QName qname,
java.lang.String targetNamespace)
qname - the QName to findtargetNamespace - (optinal since EP60 SP2)public boolean isPrimitive(java.lang.Class aClass)
aClass - the class t determined
public void addMappings(java.lang.String namespace,
java.lang.Class javaType,
QName name,
SOAPDeserializer deserializer,
SOAPSerializer serializer)
namespace - namespace of the of the mappingjavaType - the java type to mapname - the Qualidied name of the parameterdeserializer - the object corresponding to the adapted deserilaizerserializer - the object corresponding to the adapted serilaizer
public void addSpecializedRegistry(java.lang.String name,
ISpecializedRegistry registry)
name - the name of the serviceregistry - the correctly instanciated specific registrypublic ISpecializedRegistry getSpecializedRegistry(java.lang.String name)
name - the name of the service to findpublic java.util.Hashtable getAllSpecializedRegistry()
public ISpecializedRegistry removeSpecializedRegistry(java.lang.String name)
name - the name of the portal service attached to this registry
public void addMethodsAuthorizedProcessor(java.lang.String name,
IMethodsAuthorizedProcessor methods)
name - name of the portal servicemethods - the processorpublic IMethodsAuthorizedProcessor getMethodsAuthorizedProcessor(java.lang.String name)
name - the name of the portal service lookingpublic void setArrayQName(QName name)
name - the corresponding Qnamepublic QName getArrayQName()
public void setArraySerializer(SOAPSerializer ser)
ser - the corresponding serializerpublic ISOAPHeaderProcessor getHeaderProcessor(java.lang.String action)
action - action attahc to SOAP Headerpublic java.util.Hashtable getListSerializers()
public java.util.Hashtable getListUnSerializers()
public java.util.Hashtable getListJavaTypes()
public java.util.Hashtable getListQName()
public java.util.Hashtable getListSpecializedRegistry()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||