|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.encoding.TypeMappingImpl org.apache.axis.encoding.DefaultTypeMappingImpl
This is the implementation of the axis Default TypeMapping (which extends the JAX-RPC TypeMapping interface) for SOAP 1.1.
A TypeMapping contains tuples as follows: {Java type, SerializerFactory, DeserializerFactory, Type QName) In other words, it serves to map Java types to and from XML types using particular Serializers/Deserializers. Each TypeMapping is associated with one or more encodingStyle URIs. The wsdl in your web service will use a number of types. The tuple information for each of these will be accessed via the TypeMapping. This TypeMapping is the "default" one, which includes all the standard SOAP and schema XSD types. Individual TypeMappings (associated with AxisEngines and SOAPServices) will delegate to this one, so if you haven't overriden a default mapping we'll end up getting it from here.
Nested Class Summary |
Nested classes inherited from class org.apache.axis.encoding.TypeMappingImpl |
TypeMappingImpl.Pair |
Field Summary |
Fields inherited from class org.apache.axis.encoding.TypeMappingImpl |
delegate |
Constructor Summary | |
protected |
DefaultTypeMappingImpl()
|
protected |
DefaultTypeMappingImpl(boolean encoded)
|
Method Summary | |
static TypeMapping |
getSingleton()
Obtain the singleton default typemapping. |
protected void |
myRegister(javax.xml.namespace.QName xmlType,
Class javaType,
SerializerFactory sf,
javax.xml.rpc.encoding.DeserializerFactory df)
Construct TypeMapping for all the [xmlType, javaType] for all of the known xmlType namespaces. |
protected void |
myRegisterSimple(javax.xml.namespace.QName xmlType,
Class javaType)
Register a "simple" type mapping - in other words, a |
void |
register(Class javaType,
javax.xml.namespace.QName xmlType,
javax.xml.rpc.encoding.SerializerFactory sf,
javax.xml.rpc.encoding.DeserializerFactory dsf)
Registers SerializerFactory and DeserializerFactory for a specific type mapping between an XML type and Java type. |
void |
removeDeserializer(Class javaType,
javax.xml.namespace.QName xmlType)
Removes the DeserializerFactory registered for the specified pair of Java type and XML data type. |
void |
removeSerializer(Class javaType,
javax.xml.namespace.QName xmlType)
Removes the SerializerFactory registered for the specified pair of Java type and XML data type. |
void |
setSupportedEncodings(String[] namespaceURIs)
Sets the list of encoding styles supported by this TypeMapping object. |
Methods inherited from class org.apache.axis.encoding.TypeMappingImpl |
getAllClasses, getClassForQName, getDelegate, getDeserializer, getDeserializer, getSerializer, getSerializer, getSupportedEncodings, getTypeQName, getTypeQNameRecursive, getXMLType, internalRegister, isRegistered, setDelegate, setDoAutoTypes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected DefaultTypeMappingImpl()
protected DefaultTypeMappingImpl(boolean encoded)
Method Detail |
public static TypeMapping getSingleton()
protected void myRegisterSimple(javax.xml.namespace.QName xmlType, Class javaType)
xmlType
- javaType
- protected void myRegister(javax.xml.namespace.QName xmlType, Class javaType, SerializerFactory sf, javax.xml.rpc.encoding.DeserializerFactory df)
xmlType
- is the QName typejavaType
- is the java typesf
- is the ser factory (if null, the simple factory is used)df
- is the deser factory (if null, the simple factory is used)public void register(Class javaType, javax.xml.namespace.QName xmlType, javax.xml.rpc.encoding.SerializerFactory sf, javax.xml.rpc.encoding.DeserializerFactory dsf) throws javax.xml.rpc.JAXRPCException
TypeMappingImpl
register
in interface javax.xml.rpc.encoding.TypeMapping
register
in class TypeMappingImpl
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data typesf
- - SerializerFactorydsf
- - DeserializerFactory
javax.xml.rpc.JAXRPCException
- - If any error during the registrationpublic void removeSerializer(Class javaType, javax.xml.namespace.QName xmlType) throws javax.xml.rpc.JAXRPCException
TypeMappingImpl
removeSerializer
in interface javax.xml.rpc.encoding.TypeMapping
removeSerializer
in class TypeMappingImpl
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data type
javax.xml.rpc.JAXRPCException
- - If there is error in
removing the registered SerializerFactorypublic void removeDeserializer(Class javaType, javax.xml.namespace.QName xmlType) throws javax.xml.rpc.JAXRPCException
TypeMappingImpl
removeDeserializer
in interface javax.xml.rpc.encoding.TypeMapping
removeDeserializer
in class TypeMappingImpl
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data type
javax.xml.rpc.JAXRPCException
- - If there is error in
removing the registered DeserializerFactorypublic void setSupportedEncodings(String[] namespaceURIs)
TypeMappingImpl
setSupportedEncodings
in interface javax.xml.rpc.encoding.TypeMapping
setSupportedEncodings
in class TypeMappingImpl
namespaceURIs
- String[] of namespace URI's
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |