/** * @see org.eclipse.jetty.io.Connection#isSuspended() */ public boolean isSuspended() { return _request.getAsyncContinuation().isSuspended(); }
/** * @see org.eclipse.jetty.io.Connection#isSuspended() */ public boolean isSuspended() { return _request.getAsyncContinuation().isSuspended(); }
/** * @see org.eclipse.jetty.io.Connection#isSuspended() */ public boolean isSuspended() { return _request.getAsyncContinuation().isSuspended(); }
/** * @see org.eclipse.jetty.io.Connection#isSuspended() */ public boolean isSuspended() { return _request.getAsyncContinuation().isSuspended(); }
/** * @see org.eclipse.jetty.io.Connection#isSuspended() */ public boolean isSuspended() { return _request.getAsyncContinuation().isSuspended(); }
@Override public void close() throws IOException { if (_connection instanceof AbstractHttpConnection) ((AbstractHttpConnection)_connection).getRequest().getAsyncContinuation().cancel(); super.close(); }
@Override public void close() throws IOException { if (_connection instanceof AbstractHttpConnection) ((AbstractHttpConnection)_connection).getRequest().getAsyncContinuation().cancel(); super.close(); }
@Override public void close() throws IOException { if (_connection instanceof AbstractHttpConnection) ((AbstractHttpConnection)_connection).getRequest().getAsyncContinuation().cancel(); super.close(); }
@Override public void close() throws IOException { if (_connection instanceof AbstractHttpConnection) ((AbstractHttpConnection)_connection).getRequest().getAsyncContinuation().cancel(); super.close(); }
@Override public void close() throws IOException { if (_connection instanceof AbstractHttpConnection) ((AbstractHttpConnection)_connection).getRequest().getAsyncContinuation().cancel(); super.close(); }
public void onInputShutdown() throws IOException { // If we don't have a committed response and we are not suspended if (_generator.isIdle() && !_request.getAsyncContinuation().isSuspended()) { // then no more can happen, so close. _endp.close(); } // Make idle parser seek EOF if (_parser.isIdle()) _parser.setPersistent(false); }
public void onInputShutdown() throws IOException { // If we don't have a committed response and we are not suspended if (_generator.isIdle() && !_request.getAsyncContinuation().isSuspended()) { // then no more can happen, so close. _endp.close(); } // Make idle parser seek EOF if (_parser.isIdle()) _parser.setPersistent(false); }
public void onInputShutdown() throws IOException { // If we don't have a committed response and we are not suspended if (_generator.isIdle() && !_request.getAsyncContinuation().isSuspended()) { // then no more can happen, so close. _endp.close(); } // Make idle parser seek EOF if (_parser.isIdle()) _parser.setPersistent(false); }
public void onInputShutdown() throws IOException { // If we don't have a committed response and we are not suspended if (_generator.isIdle() && !_request.getAsyncContinuation().isSuspended()) { // then no more can happen, so close. _endp.close(); } // Make idle parser seek EOF if (_parser.isIdle()) _parser.setPersistent(false); }
public void onInputShutdown() throws IOException { // If we don't have a committed response and we are not suspended if (_generator.isIdle() && !_request.getAsyncContinuation().isSuspended()) { // then no more can happen, so close. _endp.close(); } // Make idle parser seek EOF if (_parser.isIdle()) _parser.setPersistent(false); }
@Override public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { AsyncContinuation continuation = baseRequest.getAsyncContinuation(); 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); } } }
throws IOException, ServletException AsyncContinuation continuation = baseRequest.getAsyncContinuation(); if (!continuation.isInitial())
public void handleAsync(AbstractHttpConnection connection) throws IOException, ServletException { final AsyncContinuation async = connection.getRequest().getAsyncContinuation(); final AsyncContinuation.AsyncEventState state = async.getAsyncEventState(); final Request baseRequest=connection.getRequest(); final String path=state.getPath(); if (path!=null) { // this is a dispatch with a path final String contextPath=state.getServletContext().getContextPath(); HttpURI uri = new HttpURI(URIUtil.addPaths(contextPath,path)); baseRequest.setUri(uri); baseRequest.setRequestURI(null); baseRequest.setPathInfo(baseRequest.getRequestURI()); if (uri.getQuery()!=null) baseRequest.mergeQueryString(uri.getQuery()); //we have to assume dispatch path and query are UTF8 } final String target=baseRequest.getPathInfo(); final HttpServletRequest request=(HttpServletRequest)async.getRequest(); final HttpServletResponse response=(HttpServletResponse)async.getResponse(); if (LOG.isDebugEnabled()) { LOG.debug("REQUEST "+target+" on "+connection); handle(target, baseRequest, request, response); LOG.debug("RESPONSE "+target+" "+connection.getResponse().getStatus()); } else handle(target, baseRequest, request, response); }
public void handleAsync(AbstractHttpConnection connection) throws IOException, ServletException { final AsyncContinuation async = connection.getRequest().getAsyncContinuation(); final AsyncContinuation.AsyncEventState state = async.getAsyncEventState(); final Request baseRequest=connection.getRequest(); final String path=state.getPath(); if (path!=null) { // this is a dispatch with a path final String contextPath=state.getServletContext().getContextPath(); HttpURI uri = new HttpURI(URIUtil.addPaths(contextPath,path)); baseRequest.setUri(uri); baseRequest.setRequestURI(null); baseRequest.setPathInfo(baseRequest.getRequestURI()); if (uri.getQuery()!=null) baseRequest.mergeQueryString(uri.getQuery()); //we have to assume dispatch path and query are UTF8 } final String target=baseRequest.getPathInfo(); final HttpServletRequest request=(HttpServletRequest)async.getRequest(); final HttpServletResponse response=(HttpServletResponse)async.getResponse(); if (LOG.isDebugEnabled()) { LOG.debug("REQUEST "+target+" on "+connection); handle(target, baseRequest, request, response); LOG.debug("RESPONSE "+target+" "+connection.getResponse().getStatus()); } else handle(target, baseRequest, request, response); }
public void handleAsync(AbstractHttpConnection connection) throws IOException, ServletException { final AsyncContinuation async = connection.getRequest().getAsyncContinuation(); final AsyncContinuation.AsyncEventState state = async.getAsyncEventState(); final Request baseRequest=connection.getRequest(); final String path=state.getPath(); if (path!=null) { // this is a dispatch with a path final String contextPath=state.getServletContext().getContextPath(); HttpURI uri = new HttpURI(URIUtil.addPaths(contextPath,path)); baseRequest.setUri(uri); baseRequest.setRequestURI(null); baseRequest.setPathInfo(baseRequest.getRequestURI()); if (uri.getQuery()!=null) baseRequest.mergeQueryString(uri.getQuery()); //we have to assume dispatch path and query are UTF8 } final String target=baseRequest.getPathInfo(); final HttpServletRequest request=(HttpServletRequest)async.getRequest(); final HttpServletResponse response=(HttpServletResponse)async.getResponse(); if (LOG.isDebugEnabled()) { LOG.debug("REQUEST "+target+" on "+connection); handle(target, baseRequest, request, response); LOG.debug("RESPONSE "+target+" "+connection.getResponse().getStatus()); } else handle(target, baseRequest, request, response); }