coyoteAdapter.get().service(coyoteReq, coyoteRes); final HttpHeaders headers = convertResponse(coyoteRes); if (res.tryWrite(headers)) {
/** * Process specified request. */ public void process(Request request, ByteChunk input, Response response, ByteChunk output) throws Exception { InputBuffer inputBuffer = new ByteChunkInputBuffer(input); OutputBuffer outputBuffer = new ByteChunkOutputBuffer(output); request.setInputBuffer(inputBuffer); response.setOutputBuffer(outputBuffer); adapter.service(request, response); }
/** * Process specified request. */ public void process(Request request, ByteChunk input, Response response, ByteChunk output) throws Exception { InputBuffer inputBuffer = new ByteChunkInputBuffer(input); OutputBuffer outputBuffer = new ByteChunkOutputBuffer(output); request.setInputBuffer(inputBuffer); response.setOutputBuffer(outputBuffer); adapter.service(request, response); }
/** * Process specified request. */ public void process(Request request, ByteChunk input, Response response, ByteChunk output) throws Exception { InputBuffer inputBuffer = new ByteChunkInputBuffer(input); OutputBuffer outputBuffer = new ByteChunkOutputBuffer(output); request.setInputBuffer(inputBuffer); response.setOutputBuffer(outputBuffer); adapter.service(request, response); }
/** * Invoke the <code>Adapter</code>, which usualy invoke the Servlet * Container. */ public void invokeAdapter(){ // Process the request in the adapter if (!error) { try { adapter.service(request, response); // Handle when the response was committed before a serious // error occurred. Throwing a ServletException should both // set the status to 500 and set the errorException. // If we fail here, then the response is likely already // committed, so we can't try and set headers. if(keepAlive && !error) { // Avoid checking twice. error = response.getErrorException() != null || statusDropsConnection(response.getStatus()); } } catch (InterruptedIOException e) { error = true; } catch (Throwable t) { SelectorThread.logger().log(Level.SEVERE, "processorTask.serviceError", t); // 500 - Internal Server Error response.setStatus(500); error = true; } } }
try { rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE); adapter.service(request, response); } catch (InterruptedIOException e) { error = true;
try { rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE); getAdapter().service(request, response); } catch (InterruptedIOException e) { error = true;
try { rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE); adapter.service(request, response); } catch (InterruptedIOException e) { error = true;
request.getMappingData().recycle(); try { request.getConnector().getProtocolHandler().getAdapter().service(request.getCoyoteRequest(), response.getCoyoteResponse()); } finally { // local invocations needs it to ensure we don't get a NPE for current service(), used for logAccess() request.getMappingData().context = oldContext;
try { rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE); adapter.service(request, response);
try { rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE); adapter.service(request, response); } catch (InterruptedIOException e) { error = true;
@Override public final SocketState service(SocketWrapperBase<?> socket) throws IOException { try { adapter.service(request, response); } catch (Exception e) { if (log.isDebugEnabled()) { log.debug(sm.getString("streamProcessor.service.error"), e); } response.setStatus(500); setErrorState(ErrorState.CLOSE_NOW, e); } if (sendfileState == SendfileState.PENDING) { return SocketState.SENDFILE; } else if (getErrorState().isError()) { action(ActionCode.CLOSE, null); request.updateCounters(); return SocketState.CLOSED; } else if (isAsync()) { return SocketState.LONG; } else { action(ActionCode.CLOSE, null); request.updateCounters(); return SocketState.CLOSED; } }
try { rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE); adapter.service(request, response); } catch (InterruptedIOException e) { error = true;
try { rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE); getAdapter().service(request, response); } catch (InterruptedIOException e) { setErrorState(ErrorState.CLOSE_NOW, e);
rp.setStage(Constants.STAGE_SERVICE); try { adapter.service( req, res ); } catch( Exception ex ) { log.info("Error servicing request " + req,ex);
try { rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE); adapter.service(request, response); } catch (InterruptedIOException e) { error = true;
try { rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE); adapter.service(request, response); } catch (InterruptedIOException e) { error = true;
try { rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE); adapter.service(request, response); } catch (InterruptedIOException e) { error = true;
try { rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE); adapter.service(request, response); } catch (InterruptedIOException e) { error = true;
try { rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE); adapter.service(request, response); } catch (InterruptedIOException e) { error = true;