Search in sources :

Example 6 with HttpChannel

use of org.eclipse.jetty.server.HttpChannel in project pinpoint by naver.

the class ServerHandleInterceptor method getRequest.

@Override
protected Request getRequest(Object[] args) {
    final Object httpChannelObject = args[0];
    if (!(httpChannelObject instanceof HttpChannel)) {
        return null;
    }
    final HttpChannel<?> channel = (HttpChannel<?>) httpChannelObject;
    final Request request = channel.getRequest();
    return request;
}
Also used : HttpChannel(org.eclipse.jetty.server.HttpChannel) Request(org.eclipse.jetty.server.Request)

Aggregations

HttpChannel (org.eclipse.jetty.server.HttpChannel)6 InetSocketAddress (java.net.InetSocketAddress)2 EndPoint (org.eclipse.jetty.io.EndPoint)2 Request (org.eclipse.jetty.server.Request)2 IOException (java.io.IOException)1 AsyncEvent (javax.servlet.AsyncEvent)1 AsyncListener (javax.servlet.AsyncListener)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 HttpServletResponse (javax.servlet.http.HttpServletResponse)1 HttpConfiguration (org.eclipse.jetty.server.HttpConfiguration)1 Test (org.junit.Test)1