Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-1075

Provide a general configuration to producers/consumers on Controller

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • future
    • None
    • controller
    • None

      Would be nice if we could save our developers time providing a way to configure general producers/consumers like sblanc suggested:

      route().
      .defaultProduces(JSP, JSON);
      .defaultConsumes(JSP, JSON);

      In this way users don't need to specify:

      route()
      .from("/delorean").roles("admin")
      .on(RequestMethod.GET)
      .to(Home.class).anotherPage();

      But they can if it's necessary

              boliveir_managed_kafka_security (inactive user) Bruno Oliveira Silva (Inactive)
              boliveir_managed_kafka_security (inactive user) Bruno Oliveira Silva (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: