/*
 * Copyright 2018 NAVER Corp.
 *
 * 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
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * 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 com.navercorp.pinpoint.bootstrap.plugin.request;

/**
 * @author Woonduk Kang(emeroad)
 */
public interface RequestAdaptor<REQ> {

    String getHeader(REQ request, String name);


    /**
     * Procedure name(optional)
     *
     * @return
     */
    String getRpcName(REQ request);

    /**
     * Server address
     *
     * @return
     */
    String getEndPoint(REQ request);

    /**
     * Client address
     *
     * @return
     */
    String getRemoteAddress(REQ request);

    /**
     * Server address that the client used
     *
     * @return
     */
    String getAcceptorHost(REQ request);
}

@@ -643,16 +643,74 @@
 quest;%0A%0A
+import java.io.IOException;%0Aimport java.util.Collection;%0A%0A
 /**%0A * @
@@ -831,16 +831,236 @@
 name);%0A%0A
+    /**%0A     * get a list of request header names%0A     * @param request request%0A     * @return list of request header names (may duplicated)%0A     */%0A    Collection%3CString%3E getHeaderNames(REQ request) throws IOException;%0A
 %0A    /**

Add getHeaderNames to RequestAdaptor