org.mortbay.jetty.Request.getTimeStamp()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(234)

本文整理了Java中org.mortbay.jetty.Request.getTimeStamp方法的一些代码示例,展示了Request.getTimeStamp的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getTimeStamp方法的具体详情如下:
包路径:org.mortbay.jetty.Request
类名称:Request
方法名:getTimeStamp

Request.getTimeStamp介绍

[英]Get Request TimeStamp
[中]获取请求时间戳

代码示例

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

public String newNonce(Request request)
  long ts=request.getTimeStamp();
  long sk=nonceSecret;

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

buf.append(" [");
if (_logDateCache!=null)
  buf.append(_logDateCache.format(request.getTimeStamp()));
else
  buf.append(request.getTimeStampBuffer().toString());
  _writer.write(TypeUtil.toString(System.currentTimeMillis() - request.getTimeStamp()));

代码示例来源:origin: org.mortbay.jetty/jetty-security

public String newNonce(Request request)
  long ts=request.getTimeStamp();
  long sk=nonceSecret;

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

response_fields.put(HttpHeaders.DATE_BUFFER, request.getTimeStampBuffer(),request.getTimeStamp());

代码示例来源:origin: com.twitter.common/net-http

buf.append(logDateCache.format(request.getTimeStamp()));
buf.append("] \"");
buf.append(request.getMethod());
buf.append(clock.nowMillis() - request.getTimeStamp());
return buf.toString();

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

_responseFields.put(HttpHeaders.DATE_BUFFER, _request.getTimeStampBuffer(),_request.getTimeStamp());

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

long age=request.getTimeStamp()-ts;
if (Log.isDebugEnabled()) Log.debug("age="+age);

代码示例来源:origin: org.mortbay.jetty/jetty-security

long age=request.getTimeStamp()-ts;
if (Log.isDebugEnabled()) Log.debug("age="+age);

代码示例来源:origin: stevensouza/jamonapi

@Override
void stopTimeMon(HttpMonRequest httpMonBase) {
  if (httpMonBase.getRequest() instanceof Request)  {
    Request request=(Request)httpMonBase.getRequest();
    Monitor mon=httpMonBase.getNextTimeMon();
    if (mon!=null) {
      mon.add(System.currentTimeMillis()-request.getTimeStamp()).stop();// figure elapsed time and then decrement active.
    }
  } else
    super.stopTimeMon(httpMonBase);
}

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

_requestsActiveMin=_requestsActive;
long duration = System.currentTimeMillis()-base_request.getTimeStamp();

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

_charset=null;
if(_request.getTimeStamp()==0)
  _request.setTimeStamp(System.currentTimeMillis());
_request.setMethod(method.toString());

相关文章