public void setTransformType ( TransformType transformType ) { this . transformType = transformType ; if ( contentType == null && transformType != null ) { if ( transformType == TransformType . TEXT ) { contentType = ContentType . TEXT_PLAIN . toString ( ) ; } else if ( transformType == TransformType . JSON ) { contentType = ContentType . TEXT_JSON . toString ( ) ; } else if ( transformType == TransformType . XML ) { contentType = ContentType . TEXT_XML . toString ( ) ; } } }
Sets the transform type .