/**
 * Copyright 2021 VMware, Inc.
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * https://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.micrometer.core.instrument.tracing.context;

import io.micrometer.core.lang.NonNull;
import io.micrometer.core.instrument.transport.http.HttpServerRequest;
import io.micrometer.core.instrument.transport.http.HttpServerResponse;

/**
 * {@link io.micrometer.core.instrument.Timer.HandlerContext HandlerContext} for an HTTP server request/response.
 *
 * @author Marcin Grzejszczak
 * @since 2.0.0
 */
public class HttpServerHandlerContext extends HttpHandlerContext<HttpServerRequest, HttpServerResponse> {

    private final HttpServerRequest request;

    private HttpServerResponse response;

    private Object handler;

    /**
     * Creates a new {@link HttpServerHandlerContext}.
     *
     * @param request http server request
     */
    public HttpServerHandlerContext(HttpServerRequest request) {
        this.request = request;
    }

    @NonNull
    @Override
    public HttpServerRequest getRequest() {
        return this.request;
    }

    /**
     * Sets a request handler.
     *
     * @param handler handler for this request
     * @return this
     */
    public HttpServerHandlerContext setHandler(Object handler) {
        this.handler = handler;
        return this;
    }

    @Override
    public HttpServerResponse getResponse() {
        return this.response;
    }

    @Override
    public HttpServerHandlerContext setResponse(HttpServerResponse response) {
        this.response = response;
        return this;
    }

}

@@ -1209,37 +1209,8 @@
 e;%0A%0A
-    private Object handler;%0A%0A
     
@@ -1540,254 +1540,8 @@
  %7D%0A%0A
-    /**%0A     * Sets a request handler.%0A     *%0A     * @param handler handler for this request%0A     * @return this%0A     */%0A    public HttpServerHandlerContext setHandler(Object handler) %7B%0A        this.handler = handler;%0A        return this;%0A    %7D%0A%0A
     

Remove unused field/method handler