@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; }
@Override public AsyncContext startAsync() throws IllegalStateException { if (!_asyncSupported) throw new IllegalStateException("!asyncSupported"); HttpChannelState state = getHttpChannelState(); state.startAsync(); return state; }
@Override public boolean isAsyncStarted() { return getHttpChannelState().isAsyncStarted(); }
@Override public boolean isAsyncStarted() { return getHttpChannelState().isAsync(); }
@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; }
@Override public boolean isAsyncStarted() { return getHttpChannelState().isAsyncStarted(); }
@Override public boolean isAsyncStarted() { return getHttpChannelState().isAsync(); }
@Override public AsyncContext startAsync() throws IllegalStateException { if (!_asyncSupported) throw new IllegalStateException("!asyncSupported"); HttpChannelState state = getHttpChannelState(); state.startAsync(); return state; }
@Override public boolean isAsyncStarted() { return getHttpChannelState().isAsyncStarted(); }
@Override public AsyncContext getAsyncContext() { HttpChannelState state = getHttpChannelState(); if (_async==null || !state.isAsyncStarted()) throw new IllegalStateException(state.getStatusString()); return _async; }
@Override public AsyncContext getAsyncContext() { HttpChannelState state = getHttpChannelState(); if (_async==null || !state.isAsyncStarted()) throw new IllegalStateException(state.getStatusString()); return _async; }
@Override public AsyncContext getAsyncContext() { HttpChannelState state = getHttpChannelState(); if (_async==null || !state.isAsyncStarted()) throw new IllegalStateException(state.getStatusString()); return _async; }
@Override public AsyncContext getAsyncContext() { HttpChannelState continuation = getHttpChannelState(); if (continuation.isInitial() && !continuation.isAsync()) throw new IllegalStateException(continuation.getStatusString()); return continuation; }
@Override public AsyncContext getAsyncContext() { HttpChannelState continuation = getHttpChannelState(); if (continuation.isInitial() && !continuation.isAsync()) throw new IllegalStateException(continuation.getStatusString()); return continuation; }
@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; }
@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; }
@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; }
@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); } } }
@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; }
@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; }