[jboss-jira] [JBoss JIRA] (WFCORE-972) Provide a way to correlate HTTP management requests

Brian Stansberry (JIRA) issues at jboss.org
Wed Sep 9 18:10:00 EDT 2015


     [ https://issues.jboss.org/browse/WFCORE-972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry moved WFLY-4952 to WFCORE-972:
-----------------------------------------------

          Project: WildFly Core  (was: WildFly)
              Key: WFCORE-972  (was: WFLY-4952)
      Component/s: Domain Management
                       (was: Domain Management)
    Fix Version/s: 2.0.0.CR1
                       (was: 10.0.0.CR1)


> Provide a way to correlate HTTP management requests
> ---------------------------------------------------
>
>                 Key: WFCORE-972
>                 URL: https://issues.jboss.org/browse/WFCORE-972
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: Domain Management
>            Reporter: Heiko Braun
>            Assignee: Heiko Braun
>             Fix For: 2.0.0.CR1
>
>
> {noformat}
> 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);
>     }
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list