本文整理了Java中org.eclipse.jetty.server.Request.getContentRead
方法的一些代码示例,展示了Request.getContentRead
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getContentRead
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Request
类名称:Request
方法名:getContentRead
暂无
代码示例来源:origin: io.airlift/http-server
@Override
public void log(Request request, Response response)
{
Duration requestTime = new Duration(max(0, System.currentTimeMillis() - request.getTimeStamp()), TimeUnit.MILLISECONDS);
stats.record(request.getContentRead(), response.getContentCount(), requestTime);
}
}
代码示例来源:origin: com.teradata.airlift/http-server
@Override
public void log(Request request, Response response)
{
Duration requestTime = new Duration(max(0, System.currentTimeMillis() - request.getTimeStamp()), TimeUnit.MILLISECONDS);
long dispatchTime = request.getTimeStamp();
Duration schedulingDelay = new Duration(max(0, dispatchTime - request.getTimeStamp()), TimeUnit.MILLISECONDS);
stats.record(request.getMethod(), response.getStatus(), request.getContentRead(), response.getContentCount(), schedulingDelay, requestTime);
}
}
代码示例来源:origin: com.proofpoint.platform/http-server
@Override
public void log(Request request, Response response)
{
Duration requestTime = new Duration(max(0, System.currentTimeMillis() - request.getTimeStamp()), TimeUnit.MILLISECONDS);
SSLSession sslSession = (SSLSession) request.getAttribute(REQUEST_SSL_SESSION_ATTRIBUTE);
stats.record(request.getContentRead(), response.getContentCount(), requestTime);
detailedRequestStats.requestTimeByCode(response.getStatus(), response.getStatus() / 100).add(requestTime);
if (sslSession != null) {
detailedRequestStats.tlsRequest(sslSession.getProtocol(), sslSession.getCipherSuite()).add(1);
}
}
}
代码示例来源:origin: com.teradata.airlift/http-server
request.getHeader("User-Agent"),
request.getHeader("Referer"),
request.getContentRead(),
request.getHeader("Content-Type"),
response.getContentCount(),
代码示例来源:origin: com.proofpoint.platform/http-server
user,
request.getHeader("User-Agent"),
request.getContentRead(),
response.getContentCount(),
response.getStatus(),
代码示例来源:origin: io.airlift/http-server
request.getHeader("User-Agent"),
request.getHeader("Referer"),
request.getContentRead(),
request.getHeader("Content-Type"),
response.getContentCount(),
代码示例来源:origin: com.teradata.airlift/http-server
when(request.getUserPrincipal()).thenReturn(principal);
when(request.getMethod()).thenReturn(method);
when(request.getContentRead()).thenReturn(requestSize);
when(request.getHeader("Content-Type")).thenReturn(requestContentType);
when(response.getStatus()).thenReturn(responseCode);
代码示例来源:origin: io.airlift/http-server
when(request.getUserPrincipal()).thenReturn(principal);
when(request.getMethod()).thenReturn(method);
when(request.getContentRead()).thenReturn(requestSize);
when(request.getHttpVersion()).thenReturn(HTTP_2);
when(request.getHeader("Content-Type")).thenReturn(requestContentType);
内容来源于网络,如有侵权,请联系作者删除!