Package org.wymiwyg.wrhapi

Examples of org.wymiwyg.wrhapi.ResponseStatus


  /* (non-Javadoc)
   * @see org.wymiwyg.rwcf.ExceptionHandler#handleException(org.wymiwyg.rwcf.HandlerException, org.wymiwyg.rwcf.Request, org.wymiwyg.rwcf.Response)
   */
  public void handleException(Exception exception, Request request, Response response) throws HandlerException {
    ResponseStatus status;
    if (exception instanceof HandlerException) {
      status = ((HandlerException)exception).getStatus();
    } else {
      status = ResponseStatus.INTERNAL_SERVER_ERROR;
    }
    if (status.equals(ResponseStatus.INTERNAL_SERVER_ERROR)) {
      log.error("Internal Server Error", exception);
    } else {
      log.info("Exception handling request", exception);
    }
    response.setResponseStatus(status);
View Full Code Here

TOP

Related Classes of org.wymiwyg.wrhapi.ResponseStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.