FileDocCategorySizeDatePackage
JAFDataHandlerSerializerFactory.javaAPI DocApache Axis 1.42129Sat Apr 22 18:57:28 BST 2006org.apache.axis.encoding.ser

JAFDataHandlerSerializerFactory

public class JAFDataHandlerSerializerFactory extends BaseSerializerFactory
A JAFDataHandlerSerializer Factory
author
Rich Scheuerle (scheu@us.ibm.com)

Fields Summary
Constructors Summary
public JAFDataHandlerSerializerFactory(Class javaType, QName xmlType)

        super(getSerializerClass(javaType, xmlType), xmlType, javaType);
    
public JAFDataHandlerSerializerFactory()

        super(JAFDataHandlerSerializer.class);
    
Methods Summary
private static java.lang.ClassgetSerializerClass(java.lang.Class javaType, javax.xml.namespace.QName xmlType)

        Class ser;
        if (Image.class.isAssignableFrom(javaType)) {
            ser = ImageDataHandlerSerializer.class;
        }
        else if (String.class.isAssignableFrom(javaType)) {
            ser = PlainTextDataHandlerSerializer.class;
        }
        else if (Source.class.isAssignableFrom(javaType)) {
            ser = SourceDataHandlerSerializer.class;
        }
        else if (MimeMultipart.class.isAssignableFrom(javaType)) {
            ser = MimeMultipartDataHandlerSerializer.class;
        }
        else if (OctetStream.class.isAssignableFrom(javaType)) {
            ser = OctetStreamDataHandlerSerializer.class;
        }
        else {
            ser = JAFDataHandlerSerializer.class;
        }
        return ser;