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

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

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

Request.getHttpChannelState介绍

暂无

代码示例

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

@Override
public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
{
  if (!_asyncSupported)
    throw new IllegalStateException("!asyncSupported");
  HttpChannelState state = getHttpChannelState();
  state.startAsync(_context, servletRequest, servletResponse);
  return state;
}

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

@Override
public AsyncContext startAsync() throws IllegalStateException
{
  if (!_asyncSupported)
    throw new IllegalStateException("!asyncSupported");
  HttpChannelState state = getHttpChannelState();
  state.startAsync();
  return state;
}

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

@Override
public boolean isAsyncStarted()
{
  return getHttpChannelState().isAsyncStarted();
}

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

@Override
public boolean isAsyncStarted()
{
  return getHttpChannelState().isAsync();
}

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

@Override
public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
{
  if (!_asyncSupported)
    throw new IllegalStateException("!asyncSupported");
  HttpChannelState state = getHttpChannelState();
  state.startAsync(_context, servletRequest, servletResponse);
  return state;
}

代码示例来源:origin: Nextdoor/bender

@Override
public boolean isAsyncStarted()
{
  return getHttpChannelState().isAsyncStarted();
}

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

@Override
public boolean isAsyncStarted()
{
  return getHttpChannelState().isAsync();
}

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

@Override
public AsyncContext startAsync() throws IllegalStateException
{
  if (!_asyncSupported)
    throw new IllegalStateException("!asyncSupported");
  HttpChannelState state = getHttpChannelState();
  state.startAsync();
  return state;
}

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

@Override
public boolean isAsyncStarted()
{
  return getHttpChannelState().isAsyncStarted();
}

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

@Override
public AsyncContext getAsyncContext()
{
  HttpChannelState state = getHttpChannelState();
  if (_async==null || !state.isAsyncStarted())
    throw new IllegalStateException(state.getStatusString());
  return _async;
}

代码示例来源:origin: Nextdoor/bender

@Override
public AsyncContext getAsyncContext()
{
  HttpChannelState state = getHttpChannelState();
  if (_async==null || !state.isAsyncStarted())
    throw new IllegalStateException(state.getStatusString());
  return _async;
}

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

@Override
public AsyncContext getAsyncContext()
{
  HttpChannelState state = getHttpChannelState();
  if (_async==null || !state.isAsyncStarted())
    throw new IllegalStateException(state.getStatusString());
  return _async;
}

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

@Override
public AsyncContext getAsyncContext()
{
  HttpChannelState continuation = getHttpChannelState();
  if (continuation.isInitial() && !continuation.isAsync())
    throw new IllegalStateException(continuation.getStatusString());
  return continuation;
}

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

@Override
public AsyncContext getAsyncContext()
{
  HttpChannelState continuation = getHttpChannelState();
  if (continuation.isInitial() && !continuation.isAsync())
    throw new IllegalStateException(continuation.getStatusString());
  return continuation;
}

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

@Override
public AsyncContext startAsync() throws IllegalStateException
{
  if (_asyncNotSupportedSource!=null)
    throw new IllegalStateException("!asyncSupported: "+_asyncNotSupportedSource);
  HttpChannelState state = getHttpChannelState();
  if (_async==null)
    _async=new AsyncContextState(state);
  AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,this,getResponse());
  state.startAsync(event);
  return _async;
}

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

@Override
public AsyncContext startAsync() throws IllegalStateException
{
  if (_asyncNotSupportedSource!=null)
    throw new IllegalStateException("!asyncSupported: "+_asyncNotSupportedSource);
  HttpChannelState state = getHttpChannelState();
  if (_async==null)
    _async=new AsyncContextState(state);
  AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,this,getResponse());
  state.startAsync(event);
  return _async;
}

代码示例来源:origin: Nextdoor/bender

@Override
public AsyncContext startAsync() throws IllegalStateException
{
  if (!_asyncSupported)
    throw new IllegalStateException("!asyncSupported");
  HttpChannelState state = getHttpChannelState();
  if (_async==null)
    _async=new AsyncContextState(state);
  AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,this,getResponse());
  state.startAsync(event);
  return _async;
}

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

@Override
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
{
  HttpChannelState continuation = baseRequest.getHttpChannelState();
  if (!continuation.isInitial())
  {
    baseRequest.setDispatchTime(System.currentTimeMillis());
  }
  try
  {
    super.handle(target, baseRequest, request, response);
  }
  finally
  {
    if (_requestLog != null && DispatcherType.REQUEST.equals(baseRequest.getDispatcherType()))
    {
      _requestLog.log(baseRequest, (Response)response);
    }
  }
}

代码示例来源:origin: Nextdoor/bender

@Override
public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
{
  if (!_asyncSupported)
    throw new IllegalStateException("!asyncSupported");
  HttpChannelState state = getHttpChannelState();
  if (_async==null)
    _async=new AsyncContextState(state);
  AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,servletRequest,servletResponse);
  event.setDispatchContext(getServletContext());
  event.setDispatchPath(URIUtil.addPaths(getServletPath(),getPathInfo()));
  state.startAsync(event);
  return _async;
}

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

@Override
public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
{
  if (_asyncNotSupportedSource!=null)
    throw new IllegalStateException("!asyncSupported: "+_asyncNotSupportedSource);
  HttpChannelState state = getHttpChannelState();
  if (_async==null)
    _async=new AsyncContextState(state);
  AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,servletRequest,servletResponse);
  event.setDispatchContext(getServletContext());
  event.setDispatchPath(URIUtil.addPaths(getServletPath(),getPathInfo()));
  state.startAsync(event);
  return _async;
}

相关文章

Request类方法