Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-972

Provide a way to correlate HTTP management requests

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Alpha1
    • None
    • Management
    • None

      public class CorrelationHandler implements HttpHandler {
      
          private static final HttpString HEADER = new HttpString("X-CORR-ID");
      
          private final HttpHandler next;
      
          public CorrelationHandler(HttpHandler next) {
              this.next = next;
          }
      
          @Override
          public void handleRequest(HttpServerExchange exchange) throws Exception {
              String corr = exchange.getRequestHeaders().getFirst(HEADER);
              if(corr != null) {
                  exchange.getResponseHeaders().put(HEADER, corr);
              }
              next.handleRequest(exchange);
      
          }
      }
      

              bstansbe@redhat.com Brian Stansberry
              rhn-support-hbraun Heiko Braun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: