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

Rest DSL input/output type class

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.6.0
    • 3.7.0
    • osgi, rest
    • None
    • Unknown

    Description

      Currently RestDefinition methods:

      • type(Class<?> classType)
      • outType(Class<?> classType)

      use the methods setType, setOutType from VerbDefinition that accept a string instead of their variants that accept the class or should at least use both variants if they are really needed.

      The reason for opening this that setting the class name only in verb definition, in my OSGI application, causes ClassNotFoundException  in RestBindingReifier#setupJson.

      As a workaround at the moment, after configuring the RestDefinition object I retrieve the VerbDefinitions in it and set the typeClass and outTypeClass manually there.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            semmellitis Ioannis Sarantidis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment