Class DatasonnetExpression

  • All Implemented Interfaces:
    org.apache.camel.Expression, org.apache.camel.ExpressionFactory, HasExpressionType, org.apache.camel.Predicate, org.apache.camel.PredicateFactory, org.apache.camel.spi.ExpressionFactoryAware, org.apache.camel.spi.PredicateFactoryAware

    @Metadata(firstVersion="3.7.0",
              label="language,transformation",
              title="DataSonnet")
    public class DatasonnetExpression
    extends ExpressionDefinition
    To use DataSonnet scripts for message transformations.
    • Constructor Detail

      • DatasonnetExpression

        public DatasonnetExpression()
      • DatasonnetExpression

        public DatasonnetExpression​(String expression)
      • DatasonnetExpression

        public DatasonnetExpression​(org.apache.camel.Expression expression)
    • Method Detail

      • getBodyMediaType

        public String getBodyMediaType()
      • setBodyMediaType

        public void setBodyMediaType​(String bodyMediaType)
        The String representation of the message's body MediaType
      • getOutputMediaType

        public String getOutputMediaType()
      • setOutputMediaType

        public void setOutputMediaType​(String outputMediaType)
        The String representation of the MediaType to output
      • getResultType

        public Class<?> getResultType()
      • setResultType

        public void setResultType​(Class<?> resultType)
        Sets the class of the result type (type from output).

        The default result type is com.datasonnet.document.Document

      • getResultTypeName

        public String getResultTypeName()
      • setResultTypeName

        public void setResultTypeName​(String resultTypeName)
        Sets the class name of the result type (type from output)

        The default result type is com.datasonnet.document.Document