/* */ /** @deprecated */ /* */ public void setStatus(int status, String message) /* */ { /* 1342 */ if (isCommitted()) { /* 1343 */ return; /* */ } /* */ /* 1346 */ if (this.included) { /* 1347 */ return; /* */ } /* 1349 */ this.coyoteResponse.setStatus(status); /* 1350 */ this.coyoteResponse.setMessage(message); /* */ }
@Override protected boolean handleIncompleteRequestLineRead() { // This means that no data is available right now // (long keepalive), so that the processor should be recycled // and the method should return true openSocket = true; if (endpoint.isPaused()) { // 503 - Service unavailable response.setStatus(503); adapter.log(request, response, 0); error = true; } else { return true; } return false; }
/** * Set the HTTP status and message to be returned with this response. * * @param status The new HTTP status * @param message The associated text message * * @deprecated As of Version 2.1 of the Java Servlet API, this method * has been deprecated due to the ambiguous meaning of the message * parameter. */ @Override @Deprecated public void setStatus(int status, String message) { if (isCommitted()) return; // Ignore any call from an included servlet if (included) return; coyoteResponse.setStatus(status); coyoteResponse.setMessage(message); }
@Override protected boolean handleIncompleteRequestLineRead() { // This means that no data is available right now // (long keepalive), so that the processor should be recycled // and the method should return true openSocket = true; if (endpoint.isPaused()) { // 503 - Service unavailable response.setStatus(503); adapter.log(request, response, 0); error = true; } else { return true; } return false; }
/** * Set the HTTP status and message to be returned with this response. * * @param status The new HTTP status * @param message The associated text message * * @deprecated As of Version 2.1 of the Java Servlet API, this method * has been deprecated due to the ambiguous meaning of the message * parameter. */ @Override @Deprecated public void setStatus(int status, String message) { if (isCommitted()) return; // Ignore any call from an included servlet if (included) return; coyoteResponse.setStatus(status); coyoteResponse.setMessage(message); }
/** * Set the HTTP status and message to be returned with this response. * * @param status The new HTTP status * @param message The associated text message * * @deprecated As of Version 2.1 of the Java Servlet API, this method * has been deprecated due to the ambiguous meaning of the message * parameter. */ @Override @Deprecated public void setStatus(int status, String message) { if (isCommitted()) return; // Ignore any call from an included servlet if (included) return; coyoteResponse.setStatus(status); coyoteResponse.setMessage(message); }
/** * Set the HTTP status and message to be returned with this response. * * @param status The new HTTP status * @param message The associated text message * * @deprecated As of Version 2.1 of the Java Servlet API, this method * has been deprecated due to the ambiguous meaning of the message * parameter. */ public void setStatus(int status, String message) { if (isCommitted()) return; // Ignore any call from an included servlet if (included) return; coyoteResponse.setStatus(status); coyoteResponse.setMessage(message); }
/** * Set the HTTP status and message to be returned with this response. * * @param status The new HTTP status * @param message The associated text message * * @deprecated As of Version 2.1 of the Java Servlet API, this method * has been deprecated due to the ambiguous meaning of the message * parameter. */ public void setStatus(int status, String message) { if (isCommitted()) return; // Ignore any call from an included servlet if (included) return; coyoteResponse.setStatus(status); coyoteResponse.setMessage(message); }
/** * Set the HTTP status and message to be returned with this response. * * @param status The new HTTP status * @param message The associated text message * * @deprecated As of Version 2.1 of the Java Servlet API, this method * has been deprecated due to the ambiguous meaning of the message * parameter. */ public void setStatus(int status, String message) { if (isCommitted()) return; // Ignore any call from an included servlet if (included) return; coyoteResponse.setStatus(status); coyoteResponse.setMessage(message); }
public void endRequest() { // Finish the handling of the request try { inputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { log.error(sm.getString("http11processor.request.finish"), t); // 500 - Internal Server Error response.setStatus(500); error = true; } try { outputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { log.error(sm.getString("http11processor.response.finish"), t); error = true; } }
public void endRequest() { // Finish the handling of the request try { inputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { log.error(sm.getString("http11processor.request.finish"), t); // 500 - Internal Server Error response.setStatus(500); error = true; } try { outputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { log.error(sm.getString("http11processor.response.finish"), t); error = true; } }
@Override protected boolean handleIncompleteRequestLineRead() { // This means that no data is available right now // (long keepalive), so that the processor should be recycled // and the method should return true openSocket = true; if (endpoint.isPaused()) { // 503 - Service unavailable response.setStatus(503); getAdapter().log(request, response, 0); error = true; } else { return true; } return false; }
private boolean handleIncompleteRequestLineRead() { // Haven't finished reading the request so keep the socket // open openSocket = true; // Check to see if we have read any of the request line yet if (inputBuffer.getParsingRequestLinePhase() > 1) { // Started to read request line. if (protocol.isPaused()) { // Partially processed the request so need to respond response.setStatus(503); setErrorState(ErrorState.CLOSE_CLEAN, null); return false; } else { // Need to keep processor associated with socket readComplete = false; } } return true; }
/** * Set the HTTP status and message to be returned with this response. * * @param status The new HTTP status * @param message The associated text message * * @deprecated As of Version 2.1 of the Java Servlet API, this method * has been deprecated due to the ambiguous meaning of the message * parameter. */ @Override @Deprecated public void setStatus(int status, String message) { if (isCommitted()) { return; } // Ignore any call from an included servlet if (included) { return; } getCoyoteResponse().setStatus(status); getCoyoteResponse().setMessage(message); }
public void endRequest() { // Finish the handling of the request try { inputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { CoyoteLogger.HTTP_LOGGER.errorFinishingRequest(t); // 500 - Internal Server Error response.setStatus(500); error = true; } try { outputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { CoyoteLogger.HTTP_LOGGER.errorFinishingResponse(t); error = true; } }
public void endRequest() { // Finish the handling of the request try { inputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { CoyoteLogger.HTTP_LOGGER.errorFinishingRequest(t); // 500 - Internal Server Error response.setStatus(500); error = true; } try { outputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { CoyoteLogger.HTTP_LOGGER.errorFinishingResponse(t); error = true; } }
public void endRequest() { // Finish the handling of the request try { inputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { CoyoteLogger.HTTP_LOGGER.errorFinishingRequest(t); // 500 - Internal Server Error response.setStatus(500); error = true; } try { outputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { CoyoteLogger.HTTP_LOGGER.errorFinishingResponse(t); error = true; } }
/** * {@inheritDoc} * <p> * This implementation populates the server name and port from the local * name and port provided by the AJP message. */ @Override protected void populateHost() { // No host information (HTTP/1.0) request.setServerPort(request.getLocalPort()); try { request.serverName().duplicate(request.localName()); } catch (IOException e) { response.setStatus(400); setErrorState(ErrorState.CLOSE_CLEAN, e); } }
public void endRequest() { // Finish the handling of the request try { inputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { log.error(sm.getString("http11processor.request.finish"), t); // 500 - Internal Server Error response.setStatus(500); adapter.log(request, response, 0); error = true; } try { outputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { log.error(sm.getString("http11processor.response.finish"), t); error = true; } }
public void endRequest() { // Finish the handling of the request try { inputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { log.error(sm.getString("http11processor.request.finish"), t); // 500 - Internal Server Error response.setStatus(500); adapter.log(request, response, 0); error = true; } try { outputBuffer.endRequest(); } catch (IOException e) { error = true; } catch (Throwable t) { log.error(sm.getString("http11processor.response.finish"), t); error = true; } }