Examples of ServiceNotFoundException


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

Examples of org.red5.server.service.ServiceNotFoundException

      if (!call.isSuccess()) {
        if (call.isMessaging && !(result instanceof ErrorMessage)) {
          // Generate proper error result for the Flex messaging client
          AbstractMessage request = (AbstractMessage) call.getArguments()[0];
          if (result instanceof ServiceNotFoundException) {
            ServiceNotFoundException ex = (ServiceNotFoundException) result;
            result = FlexMessagingService.returnError(request, "serviceNotAvailable", "Flex messaging not activated", ex.getMessage());
          } else if (result instanceof Throwable) {
            result = FlexMessagingService.returnError(request, "Server.Invoke.Error", ((Throwable) result).getMessage(), (Throwable) result);
          } else {
            result = FlexMessagingService.returnError(request, "Server.Invoke.Error", result.toString(), "");
          }
View Full Code Here

Examples of org.sf.bee.commons.exception.impl.ServiceNotFoundException

        final RESTfulService service = RESTfulRepository.getInstance().getService(
                endpoint, serviceName);
        if (null != service) {
            return this.call(context, service, methodName, parameters);
        } else {
            throw new ServiceNotFoundException(serviceName);
        }
    }
View Full Code Here

Examples of org.springframework.richclient.application.ServiceNotFoundException

            }
        }

        // If we still don't have an implementation, then it's a bust
        if( service == null ) {
            throw new ServiceNotFoundException(serviceType);
        }
        return service;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.