org.apache.soap.encoding
Class SOAPMappingRegistry
java.lang.Object
|
+--org.apache.soap.util.xml.XMLJavaMappingRegistry
|
+--org.apache.soap.encoding.SOAPMappingRegistry
- public class SOAPMappingRegistry
- extends XMLJavaMappingRegistry
A SOAPMappingRegistry
object is an
XMLJavaMappingRegistry
with pre-registered
serializers and deserializers to support SOAP.
- Author:
- Matthew J. Duftler (duftler@us.ibm.com), Sanjiva Weerawarana (sanjiva@watson.ibm.com), Francisco Curbera (curbera@us.ibm.com), Sam Ruby (rubys@us.ibm.com), Glen Daniels (gdaniels@allaire.com)
Method Summary |
void |
mapSchemaTypes(QName[] schemaQNames,
boolean serialize)
Map a set of schema types defined in the arrays above. |
QName |
queryElementType(java.lang.Class javaType,
java.lang.String encodingStyleURI)
This function overrides the one in XMLJavaMappingRegistry for the sole
purpose of returning SOAP-ENC:Array when javaType represents an array. |
Serializer |
querySerializer(java.lang.Class javaType,
java.lang.String encodingStyleURI)
This function overrides the one in XMLJavaMappingRegistry for the sole
purpose of returning an ArraySerializer when javaType represents an
array. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
partSer
public static final MimePartSerializer partSer
schemaURI
public java.lang.String schemaURI
SOAPMappingRegistry
public SOAPMappingRegistry()
SOAPMappingRegistry
public SOAPMappingRegistry(java.lang.String schemaURI)
- Sets up serializers for the specified Schema typeset.
- Parameters:
schemaURI
- Should be one of Constants.NS_URI_1999_SCHEMA_XSD,
Constants.NS_URI_2000_SCHEMA_XSD, or Constants.NS_URI_2001_SCHEMA_XSD.
mapSchemaTypes
public void mapSchemaTypes(QName[] schemaQNames,
boolean serialize)
- Map a set of schema types defined in the arrays above. If
the "serialize" arg is set to true, we'll map the serializer
side (i.e. when output gets generated it'll be as those QNames),
otherwise we just do deserializers.
queryElementType
public QName queryElementType(java.lang.Class javaType,
java.lang.String encodingStyleURI)
throws java.lang.IllegalArgumentException
- This function overrides the one in XMLJavaMappingRegistry for the sole
purpose of returning SOAP-ENC:Array when javaType represents an array.
The XMLJavaMappingRegistry will be consulted first, and if no mapping
is found, SOAP-ENC:Array is returned. Obviously, this only applies when
the encoding style is soap encoding.
- Overrides:
- queryElementType in class XMLJavaMappingRegistry
querySerializer
public Serializer querySerializer(java.lang.Class javaType,
java.lang.String encodingStyleURI)
throws java.lang.IllegalArgumentException
- This function overrides the one in XMLJavaMappingRegistry for the sole
purpose of returning an ArraySerializer when javaType represents an
array. The XMLJavaMappingRegistry will be consulted first, and if no
serializer is found for javaType, ArraySerailizer is returned.
Obviously, this only applies when the encoding style is soap encoding.
- Overrides:
- querySerializer in class XMLJavaMappingRegistry
Copyright © 2001 Apache XML Project. All Rights Reserved.