List of usage examples for javax.servlet.http HttpServletResponse SC_CONTINUE
int SC_CONTINUE
To view the source code for javax.servlet.http HttpServletResponse SC_CONTINUE.
Click Source Link
From source file:org.kmnet.com.fw.web.exception.HandlerExceptionResolverLoggingInterceptor.java
/** * Outputs the log//from w w w . j a va2s . c o m * @param ex Exception * @param request HTTP Servlet Request * @param response HTTP Servlet Response * @param handler handler */ protected void log(Exception ex, HttpServletRequest request, HttpServletResponse response, Object handler) { int statusCode = response.getStatus(); if (HttpServletResponse.SC_INTERNAL_SERVER_ERROR <= statusCode) { // responseCode is 500 ~ logServerError(ex, request, response, handler); return; } if (HttpServletResponse.SC_BAD_REQUEST <= statusCode) { // 400 ~ 499 logClientError(ex, request, response, handler); return; } if (HttpServletResponse.SC_MULTIPLE_CHOICES <= statusCode) { // 300 ~ 399 logRedirection(ex, request, response, handler); return; } if (HttpServletResponse.SC_OK <= statusCode) { // 200 ~ 299 logSuccess(ex, request, response, handler); return; } if (HttpServletResponse.SC_CONTINUE <= statusCode) { // 100 ~ 199 logInformational(ex, request, response, handler); return; } }
From source file:com.wxxr.nirvana.json.JSONResultTest.java
public void testStatusCode() throws Exception { JSONResult result = new JSONResult(); result.setStatusCode(HttpServletResponse.SC_CONTINUE); executeTest2Action(result);/*w w w.j av a 2 s.c om*/ assertEquals(HttpServletResponse.SC_CONTINUE, response.getStatus()); }