org.eclipse.jetty.server.Request.isAsyncStarted()方法的使用及代码示例

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

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

Request.isAsyncStarted介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

if (request.isAsyncStarted()) {
  request.getAsyncContext().complete();

代码示例来源:origin: jenkinsci/winstone

public void complete (Session session, Request request)
{
  if (request.isAsyncStarted() && request.getDispatcherType() == DispatcherType.REQUEST)
  {
    request.getAsyncContext().addListener(new SessionAsyncListener(session));
  }
  else
  {
    complete(session);
  }
  //if dispatcher type is not async and not request, complete immediately (its a forward or an include)
  
  //else if dispatcher type is request and not async, complete immediately
  
  //else register an async callback completion listener that will complete the session
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.servlet

if (baseRequest.isAsyncStarted() || !(DispatcherType.REQUEST.equals(type) || DispatcherType.ASYNC.equals(type)))

代码示例来源:origin: jenkinsci/winstone

if (!baseRequest.isHandled() && !baseRequest.isAsyncStarted())
  out.setInterceptor(orig_interceptor);

代码示例来源:origin: jenkinsci/winstone

public void handle(HttpChannel channel) throws IOException, ServletException
{
  final String target=channel.getRequest().getPathInfo();
  final Request request=channel.getRequest();
  final Response response=channel.getResponse();
  if (LOG.isDebugEnabled())
    LOG.debug("{} {} {} on {}", request.getDispatcherType(), request.getMethod(), target, channel);
  if (HttpMethod.OPTIONS.is(request.getMethod()) || "*".equals(target))
  {
    if (!HttpMethod.OPTIONS.is(request.getMethod()))
      response.sendError(HttpStatus.BAD_REQUEST_400);
    handleOptions(request,response);
    if (!request.isHandled())
      handle(target, request, request, response);
  }
  else
    handle(target, request, request, response);
  if (LOG.isDebugEnabled())
    LOG.debug("handled={} async={} committed={} on {}", request.isHandled(),request.isAsyncStarted(),response.isCommitted(),channel);
}

代码示例来源:origin: jenkinsci/winstone

error_handler.handle(null, request, request, this);
if (!request.isAsyncStarted())
  closeOutput();

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

if (error && _request.isAsyncStarted())
  _request.getAsyncContinuation().errorComplete();

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

if (error && _request.isAsyncStarted())
  _request.getAsyncContinuation().errorComplete();

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

if (error && _request.isAsyncStarted())
  _request.getAsyncContinuation().errorComplete();

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

if (error && _request.isAsyncStarted())
  _request.getAsyncContinuation().errorComplete();

相关文章

Request类方法