JAFDataHandlerSerializerFactorypublic class JAFDataHandlerSerializerFactory extends BaseSerializerFactory A JAFDataHandlerSerializer Factory |
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.Class | getSerializerClass(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;
|
|