Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4479

Access to request method or headers from inbound adapter status-code-expression

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 5.1 RC2
    • Component/s: HTTP Support
    • Labels:

      Description

      It may come in handy to be able to access the headers or the HTTP request method from the status-code-expression attribute of an HTTP inbound-channel-adapter.

      For instance, in a inbound adapter handling both POST and OPTIONS requests:

      <int-http:inbound-channel-adapter id="/api/requests"
          channel="httpRequestsChannel"
          path="/requests"
          supported-methods="POST,OPTIONS">
      
      </int-http:inbound-channel-adapter>
      

      it could be interesting to return 201 to a POST request and 200 to an OPTIONS request.

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            watery Marco R.
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: