当前位置: 首页>>代码示例>>Java>>正文


Java HttpServerRequest类代码示例

本文整理汇总了Java中com.github.kristofa.brave.http.HttpServerRequest的典型用法代码示例。如果您正苦于以下问题:Java HttpServerRequest类的具体用法?Java HttpServerRequest怎么用?Java HttpServerRequest使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


HttpServerRequest类属于com.github.kristofa.brave.http包,在下文中一共展示了HttpServerRequest类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: preCall

import com.github.kristofa.brave.http.HttpServerRequest; //导入依赖的package包/类
/**
 * Intercepts the server request flow and extract request information
 * to be published to the Zipkin server for tracing.
 */
@Override
public boolean preCall(Request request, Response responder, ServiceMethodInfo serviceMethodInfo) throws Exception {
    serviceMethodInfo.setAttribute(RESPONDER_ATTRIBUTE, responder);
    HttpServerRequest req = new TraceableHttpServerRequest(request);
    HttpServerRequestAdapter reqAdapter = new HttpServerRequestAdapter(req, new DefaultSpanNameProvider());
    reqInterceptor.handle(reqAdapter);
    return true;
}
 
开发者ID:wso2,项目名称:msf4j,代码行数:13,代码来源:MSF4JZipkinTracingInterceptor.java

示例2: getSpanNameFromHeader

import com.github.kristofa.brave.http.HttpServerRequest; //导入依赖的package包/类
private String getSpanNameFromHeader(HttpServerRequest httpServerRequest) {
    return httpServerRequest.getHttpHeaderValue(RpcAttachment.SpanName.getName());
}
 
开发者ID:YanXs,项目名称:nighthawk,代码行数:4,代码来源:HttpSpanNameProvider.java

示例3: ZipkinWebServerRequestAdapter

import com.github.kristofa.brave.http.HttpServerRequest; //导入依赖的package包/类
public ZipkinWebServerRequestAdapter(final HttpServerRequest serverRequest, final SpanNameProvider spanNameProvider) {
  super(serverRequest, spanNameProvider);
  this.serverRequest = serverRequest;
}
 
开发者ID:emmanuelidi,项目名称:vertx-zipkin,代码行数:5,代码来源:ZipkinWebServerRequestAdapter.java

示例4: ZipkinHttpServerRequest

import com.github.kristofa.brave.http.HttpServerRequest; //导入依赖的package包/类
protected ZipkinHttpServerRequest(final io.vertx.core.http.HttpServerRequest request) {
  this.request = request;
}
 
开发者ID:emmanuelidi,项目名称:vertx-zipkin,代码行数:4,代码来源:ZipkinHttpServerRequest.java


注:本文中的com.github.kristofa.brave.http.HttpServerRequest类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。