本文整理了Java中org.eclipse.jetty.server.Response.getCommittedMetaData
方法的一些代码示例,展示了Response.getCommittedMetaData
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.getCommittedMetaData
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Response
类名称:Response
方法名:getCommittedMetaData
[英]Get the MetaData.Response committed for this response. This may differ from the meta data in this response for exceptional responses (eg 4xx and 5xx responses generated by the container) and the committedMetaData should be used for logging purposes.
[中]获取元数据。已提交对此响应的响应。对于异常响应(例如容器生成的4xx和5xx响应),这可能不同于此响应中的元数据,committedMetaData应用于日志记录目的。
代码示例来源:origin: com.opentable.components/otj-metrics-core
@Override
public void log(Request request, Response response) {
final int status = response.getCommittedMetaData().getStatus();
registry.meter(prefix + '.' + status + "-responses").mark();
if (wrapped != null) {
wrapped.log(request, response);
}
}
}
代码示例来源:origin: jenkinsci/winstone
buf.append("\" ");
int status = response.getCommittedMetaData().getStatus();
if (status >=0)
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server
buf.append("\" ");
int status = response.getCommittedMetaData().getStatus();
if (status >=0)
代码示例来源:origin: com.yahoo.athenz/athenz-jetty-container
buf.append("\" ");
logStatus(buf, response.getCommittedMetaData().getStatus());
buf.append(' ');
代码示例来源:origin: com.yahoo.vespa/jdisc_http_service
accessLogEntry.setDurationBetweenRequestResponse(endTime - startTime);
accessLogEntry.setReturnedContentSize(response.getHttpChannel().getBytesWritten());
accessLogEntry.setStatusCode(response.getCommittedMetaData().getStatus());
内容来源于网络,如有侵权,请联系作者删除!