Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17046

camel-datasonnet - Datasonnet methods bodyMediaType and outputMediaType is missing in Java DSL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.11.1, 3.11.2, 3.11.0
    • 3.13.0
    • None
    • None
    • Unknown

    Description

      According to the documentation you should be able to specify the body and output media type using the convenience methods bodyMediaType() and outputMediaType(). But these methods aren't available in the Java DSL. Trying to use bodyMediaType() the IDE (Eclipse) reports this error:
      "The method bodyMediaType(String) is undefined for the type ValueBuilder"
      Compiling gives this error:
      "Compilation failure: 
      [ERROR] Routes.java:[37,85] cannot find symbol
      [ERROR]   symbol:   method bodyMediaType(java.lang.String)
      [ERROR]   location: class org.apache.camel.builder.ValueBuilder"

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              henka-rl Henrik Karlsson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: