org.eclipse.jetty.client.api.Request.onRequestBegin()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(112)

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

Request.onRequestBegin介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jetty/jetty-client

private Request sendRedirect(final HttpRequest httpRequest, Response response, Response.CompleteListener listener, URI location, String method)
{
  try
  {
    Request redirect = client.copyRequest(httpRequest, location);
    // Use given method
    redirect.method(method);
    redirect.onRequestBegin(new Request.BeginListener()
    {
      @Override
      public void onBegin(Request redirect)
      {
        Throwable cause = httpRequest.getAbortCause();
        if (cause != null)
          redirect.abort(cause);
      }
    });
    redirect.send(listener);
    return redirect;
  }
  catch (Throwable x)
  {
    fail(httpRequest, response, x);
    return null;
  }
}

代码示例来源:origin: com.cisco.oss.foundation/http-client-jetty

FlowContextFactory.addFlowContext(((S) tempRequest).getFlowContext());
}).onRequestBegin(new Request.BeginListener() {
  @Override
  public void onBegin(Request jettyRequest) {

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

redirect.onRequestBegin(new Request.BeginListener()

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

redirect.onRequestBegin(new Request.BeginListener()

相关文章