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

Brian Stansberry (JIRA) issues at jboss.org
Thu Feb 9 16:08:00 EST 2017


    [ https://issues.jboss.org/browse/WFCORE-972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13361517#comment-13361517 ] 

Brian Stansberry commented on WFCORE-972:
-----------------------------------------

Should this be X-Correlation-ID? That shows up as a non-standard header on Wikipedia.

Following the non-standard standard has pros and cons that I don't understand well enough to judge between. So I'm just asking not recommending.

> 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: 3.0.0.Beta1
>
>
> {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
(v7.2.3#72005)


More information about the jboss-jira mailing list