Package org.jrest4guice.rest.exception

Examples of org.jrest4guice.rest.exception.ServiceNotFoundException


  public void writeRestServiceNotFoundMessage(HttpServletRequest request,
      String uri) {
    String mimeType = RequestHelper.getMimeType(request);
    String msg = "没有提供指定的Rest服务 (" + uri + ") !";
    if (MimeType.MIME_OF_TEXT_HTML.equals(mimeType)) {
      throw new ServiceNotFoundException(msg);
    } else
      this.writeErrorMessage(new Exception(msg));
  }
View Full Code Here

TOP

Related Classes of org.jrest4guice.rest.exception.ServiceNotFoundException

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.