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

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

本文整理了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

  1. @Override
  2. public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
  3. {
  4. if (!_asyncSupported)
  5. throw new IllegalStateException("!asyncSupported");
  6. HttpChannelState state = getHttpChannelState();
  7. state.startAsync(_context, servletRequest, servletResponse);
  8. return state;
  9. }

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

  1. @Override
  2. public AsyncContext startAsync() throws IllegalStateException
  3. {
  4. if (!_asyncSupported)
  5. throw new IllegalStateException("!asyncSupported");
  6. HttpChannelState state = getHttpChannelState();
  7. state.startAsync();
  8. return state;
  9. }

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

  1. @Override
  2. public boolean isAsyncStarted()
  3. {
  4. return getHttpChannelState().isAsyncStarted();
  5. }

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

  1. @Override
  2. public boolean isAsyncStarted()
  3. {
  4. return getHttpChannelState().isAsync();
  5. }

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

  1. @Override
  2. public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
  3. {
  4. if (!_asyncSupported)
  5. throw new IllegalStateException("!asyncSupported");
  6. HttpChannelState state = getHttpChannelState();
  7. state.startAsync(_context, servletRequest, servletResponse);
  8. return state;
  9. }

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

  1. @Override
  2. public boolean isAsyncStarted()
  3. {
  4. return getHttpChannelState().isAsyncStarted();
  5. }

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

  1. @Override
  2. public boolean isAsyncStarted()
  3. {
  4. return getHttpChannelState().isAsync();
  5. }

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

  1. @Override
  2. public AsyncContext startAsync() throws IllegalStateException
  3. {
  4. if (!_asyncSupported)
  5. throw new IllegalStateException("!asyncSupported");
  6. HttpChannelState state = getHttpChannelState();
  7. state.startAsync();
  8. return state;
  9. }

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

  1. @Override
  2. public boolean isAsyncStarted()
  3. {
  4. return getHttpChannelState().isAsyncStarted();
  5. }

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

  1. @Override
  2. public AsyncContext getAsyncContext()
  3. {
  4. HttpChannelState state = getHttpChannelState();
  5. if (_async==null || !state.isAsyncStarted())
  6. throw new IllegalStateException(state.getStatusString());
  7. return _async;
  8. }

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

  1. @Override
  2. public AsyncContext getAsyncContext()
  3. {
  4. HttpChannelState state = getHttpChannelState();
  5. if (_async==null || !state.isAsyncStarted())
  6. throw new IllegalStateException(state.getStatusString());
  7. return _async;
  8. }

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

  1. @Override
  2. public AsyncContext getAsyncContext()
  3. {
  4. HttpChannelState state = getHttpChannelState();
  5. if (_async==null || !state.isAsyncStarted())
  6. throw new IllegalStateException(state.getStatusString());
  7. return _async;
  8. }

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

  1. @Override
  2. public AsyncContext getAsyncContext()
  3. {
  4. HttpChannelState continuation = getHttpChannelState();
  5. if (continuation.isInitial() && !continuation.isAsync())
  6. throw new IllegalStateException(continuation.getStatusString());
  7. return continuation;
  8. }

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

  1. @Override
  2. public AsyncContext getAsyncContext()
  3. {
  4. HttpChannelState continuation = getHttpChannelState();
  5. if (continuation.isInitial() && !continuation.isAsync())
  6. throw new IllegalStateException(continuation.getStatusString());
  7. return continuation;
  8. }

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

  1. @Override
  2. public AsyncContext startAsync() throws IllegalStateException
  3. {
  4. if (_asyncNotSupportedSource!=null)
  5. throw new IllegalStateException("!asyncSupported: "+_asyncNotSupportedSource);
  6. HttpChannelState state = getHttpChannelState();
  7. if (_async==null)
  8. _async=new AsyncContextState(state);
  9. AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,this,getResponse());
  10. state.startAsync(event);
  11. return _async;
  12. }

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

  1. @Override
  2. public AsyncContext startAsync() throws IllegalStateException
  3. {
  4. if (_asyncNotSupportedSource!=null)
  5. throw new IllegalStateException("!asyncSupported: "+_asyncNotSupportedSource);
  6. HttpChannelState state = getHttpChannelState();
  7. if (_async==null)
  8. _async=new AsyncContextState(state);
  9. AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,this,getResponse());
  10. state.startAsync(event);
  11. return _async;
  12. }

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

  1. @Override
  2. public AsyncContext startAsync() throws IllegalStateException
  3. {
  4. if (!_asyncSupported)
  5. throw new IllegalStateException("!asyncSupported");
  6. HttpChannelState state = getHttpChannelState();
  7. if (_async==null)
  8. _async=new AsyncContextState(state);
  9. AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,this,getResponse());
  10. state.startAsync(event);
  11. return _async;
  12. }

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

  1. @Override
  2. public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
  3. throws IOException, ServletException
  4. {
  5. HttpChannelState continuation = baseRequest.getHttpChannelState();
  6. if (!continuation.isInitial())
  7. {
  8. baseRequest.setDispatchTime(System.currentTimeMillis());
  9. }
  10. try
  11. {
  12. super.handle(target, baseRequest, request, response);
  13. }
  14. finally
  15. {
  16. if (_requestLog != null && DispatcherType.REQUEST.equals(baseRequest.getDispatcherType()))
  17. {
  18. _requestLog.log(baseRequest, (Response)response);
  19. }
  20. }
  21. }

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

  1. @Override
  2. public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
  3. {
  4. if (!_asyncSupported)
  5. throw new IllegalStateException("!asyncSupported");
  6. HttpChannelState state = getHttpChannelState();
  7. if (_async==null)
  8. _async=new AsyncContextState(state);
  9. AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,servletRequest,servletResponse);
  10. event.setDispatchContext(getServletContext());
  11. event.setDispatchPath(URIUtil.addPaths(getServletPath(),getPathInfo()));
  12. state.startAsync(event);
  13. return _async;
  14. }

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

  1. @Override
  2. public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
  3. {
  4. if (_asyncNotSupportedSource!=null)
  5. throw new IllegalStateException("!asyncSupported: "+_asyncNotSupportedSource);
  6. HttpChannelState state = getHttpChannelState();
  7. if (_async==null)
  8. _async=new AsyncContextState(state);
  9. AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,servletRequest,servletResponse);
  10. event.setDispatchContext(getServletContext());
  11. event.setDispatchPath(URIUtil.addPaths(getServletPath(),getPathInfo()));
  12. state.startAsync(event);
  13. return _async;
  14. }

相关文章

Request类方法