|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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(String namespace,
Class javaType,
QName name,
SOAPDeserializer deserializer,
SOAPSerializer serializer)
Add entry for the mapping between java type and XMML/SOAP Qualified name |
void |
addMethodsAuthorizedProcessor(String name,
IMethodsAuthorizedProcessor methods)
Add in the list a IIMethodsAuthorizedProcessor instance |
void |
addSpecializedRegistry(String name,
ISpecializedRegistry registry)
Add registry entry corresponding to a Portal Service |
static void |
destroy()
Destroy the instance |
Hashtable |
getAllSpecializedRegistry()
Get the list of the specialized registry contains in the central registry |
QName |
getArrayQName()
Get the QName Array for SOAP Array Type |
String |
getDefaultNamespace(Class type)
Get Default namespace for the Java type |
SOAPDeserializer |
getDeserializer(QName qname,
String targetNamespace)
Get Deserialzater for QName |
QNameURI |
getElementType(Class type)
Get QNameURI for Class type |
QName |
getElementType(Class type,
String targetNamespace)
Get QName for Class type |
ISOAPHeaderProcessor |
getHeaderProcessor(String action)
Holds the basic function link to the SOAPHeader |
static SOAPRegistry |
getInstance()
Get the current instance of the SOAPRegistry |
Class |
getJavaType(QName qname,
String targetNamespace)
Get Java Type for QName |
Hashtable |
getListJavaTypes()
Get list of Java types |
Hashtable |
getListQName()
Get list of Qname |
Hashtable |
getListSerializers()
Get List of Serializers |
Hashtable |
getListSpecializedRegistry()
Get lsit of ISpecializedRegistry |
Hashtable |
getListUnSerializers()
Get list of unserializers |
IMethodsAuthorizedProcessor |
getMethodsAuthorizedProcessor(String name)
get an instance of IMethodsAuthorizedProcessor |
SOAPSerializer |
getSerializer(Class type,
String encodingStyleURI)
Get Serializer for Java Type |
ISpecializedRegistry |
getSpecializedRegistry(String name)
Get an intance of specific registry for a Portal Service |
boolean |
isPrimitive(Class aClass)
Test if the class is java lang primitive |
ISpecializedRegistry |
removeSpecializedRegistry(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,
String targetNamespace)
qname - Qname to find serializer fortargetNamespace - namespace of the QName (optional since EP60 SP2)
public SOAPSerializer getSerializer(Class type,
String encodingStyleURI)
type - Type to find deserializer for
public QName getElementType(Class type,
String targetNamespace)
type - the class to findtargetNamespace - namespace attach to the Class Type and Current context
public QNameURI getElementType(Class type)
type - the class to find
public String getDefaultNamespace(Class type)
type - the Java type to find
public Class getJavaType(QName qname,
String targetNamespace)
qname - the QName to findtargetNamespace - (optinal since EP60 SP2)
public boolean isPrimitive(Class aClass)
aClass - the class t determined
public void addMappings(String namespace,
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(String name,
ISpecializedRegistry registry)
name - the name of the serviceregistry - the correctly instanciated specific registrypublic ISpecializedRegistry getSpecializedRegistry(String name)
name - the name of the service to find
public Hashtable getAllSpecializedRegistry()
public ISpecializedRegistry removeSpecializedRegistry(String name)
name - the name of the portal service attached to this registry
public void addMethodsAuthorizedProcessor(String name,
IMethodsAuthorizedProcessor methods)
name - name of the portal servicemethods - the processorpublic IMethodsAuthorizedProcessor getMethodsAuthorizedProcessor(String name)
name - the name of the portal service looking
public void setArrayQName(QName name)
name - the corresponding Qnamepublic QName getArrayQName()
public void setArraySerializer(SOAPSerializer ser)
ser - the corresponding serializerpublic ISOAPHeaderProcessor getHeaderProcessor(String action)
action - action attahc to SOAP Header
public Hashtable getListSerializers()
public Hashtable getListUnSerializers()
public Hashtable getListJavaTypes()
public Hashtable getListQName()
public Hashtable getListSpecializedRegistry()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||