@Test public void useServiceWithoutStartTest() throws Exception { frontendRestRequestService = getFrontendRestRequestService(); frontendRestRequestService.setupResponseHandler(responseHandler); for (RestMethod method : RestMethod.values()) { if (method.equals(RestMethod.UNKNOWN)) { continue; } verifyOperationFailure(createRestRequest(method, "/", null, null), RestServiceErrorCode.ServiceUnavailable); } }
@Override public void setupResponseHandler(RestResponseHandler responseHandler) { this.responseHandler = responseHandler; }
FrontendRestRequestService implements RestRequestService { @Override public void setupResponseHandler(RestResponseHandler responseHandler) { this.responseHandler = responseHandler; } }
FrontendRestRequestService implements RestRequestService { @Override public void setupResponseHandler(RestResponseHandler responseHandler) { this.responseHandler = responseHandler; } FrontendRestRequestService(FrontendConfig frontendConfig, FrontendMetrics frontendMetrics, Router router,
      ClusterMap clusterMap, IdConverterFactory idConverterFactory, SecurityServiceFactory securityServiceFactory,
      UrlSigningService urlSigningService, IdSigningService idSigningService, AccountService accountService,
      AccountAndContainerInjector accountAndContainerInjector, String datacenterName, String hostname,
      String clusterName); }
FrontendRestRequestService implements RestRequestService { @Override public void setupResponseHandler(RestResponseHandler responseHandler) { this.responseHandler = responseHandler; } FrontendRestRequestService(FrontendConfig frontendConfig, FrontendMetrics frontendMetrics, Router router,
      ClusterMap clusterMap, IdConverterFactory idConverterFactory, SecurityServiceFactory securityServiceFactory,
      UrlSigningService urlSigningService, IdSigningService idSigningService, AccountService accountService,
      AccountAndContainerInjector accountAndContainerInjector, String datacenterName, String hostname,
      String clusterName); @Override void setupResponseHandler(RestResponseHandler responseHandler); @Override void start(); @Override void shutdown(); @Override void handleGet(final RestRequest restRequest, final RestResponseChannel restResponseChannel); @Override void handlePost(RestRequest restRequest, RestResponseChannel restResponseChannel); @Override void handlePut(RestRequest restRequest, RestResponseChannel restResponseChannel); @Override void handleDelete(RestRequest restRequest, RestResponseChannel restResponseChannel); @Override void handleHead(RestRequest restRequest, RestResponseChannel restResponseChannel); @Override void handleOptions(RestRequest restRequest, RestResponseChannel restResponseChannel); }
FrontendRestRequestService implements RestRequestService { @Override public void setupResponseHandler(RestResponseHandler responseHandler) { this.responseHandler = responseHandler; } FrontendRestRequestService(FrontendConfig frontendConfig, FrontendMetrics frontendMetrics, Router router,
      ClusterMap clusterMap, IdConverterFactory idConverterFactory, SecurityServiceFactory securityServiceFactory,
      UrlSigningService urlSigningService, IdSigningService idSigningService, AccountService accountService,
      AccountAndContainerInjector accountAndContainerInjector, String datacenterName, String hostname,
      String clusterName); @Override void setupResponseHandler(RestResponseHandler responseHandler); @Override void start(); @Override void shutdown(); @Override void handleGet(final RestRequest restRequest, final RestResponseChannel restResponseChannel); @Override void handlePost(RestRequest restRequest, RestResponseChannel restResponseChannel); @Override void handlePut(RestRequest restRequest, RestResponseChannel restResponseChannel); @Override void handleDelete(RestRequest restRequest, RestResponseChannel restResponseChannel); @Override void handleHead(RestRequest restRequest, RestResponseChannel restResponseChannel); @Override void handleOptions(RestRequest restRequest, RestResponseChannel restResponseChannel);  }