[ https://issues.jboss.org/browse/WFLY-4952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Greene updated WFLY-4952:
-------------------------------
Fix Version/s: 10.0.0.Beta2
(was: 10.0.0.Beta1)
> Provide a way to correlate HTTP management requests
> ---------------------------------------------------
>
> Key: WFLY-4952
> URL: https://issues.jboss.org/browse/WFLY-4952
> Project: WildFly
> Issue Type: Enhancement
> Components: Domain Management
> Reporter: Heiko Braun
> Assignee: Heiko Braun
> Fix For: 10.0.0.Beta2
>
>
> {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.3.15#6346)