@Test(expected = RuntimeException.class) public void testSetAllowedHostsThrowsExceptionWhenUnknownHost() { restHandler.setAllowedHosts(Arrays.asList(findUnknownHost())); }
public void setAllowedHosts(List<String> allowedHosts) { this.allowedHosts = allowedHosts; resolveAllowedHosts(); }
HttpRESTHandler implements
        ResponsibleHandler { public void setAllowedHosts(List<String> allowedHosts) { this.allowedHosts = allowedHosts; resolveAllowedHosts(); } }
HttpRESTHandler implements
        ResponsibleHandler { public void setAllowedHosts(List<String> allowedHosts) { this.allowedHosts = allowedHosts; resolveAllowedHosts(); } HttpRESTHandler(DatabaseConnector<T> dbc);  HttpRESTHandler(CachingDocumentNIO<T> documentIO,
                           PipelineReader pipelineReader, List<String> allowedHosts,
                           boolean isPerformanceLogging); }
HttpRESTHandler implements
        ResponsibleHandler { public void setAllowedHosts(List<String> allowedHosts) { this.allowedHosts = allowedHosts; resolveAllowedHosts(); } HttpRESTHandler(DatabaseConnector<T> dbc);  HttpRESTHandler(CachingDocumentNIO<T> documentIO,
                           PipelineReader pipelineReader, List<String> allowedHosts,
                           boolean isPerformanceLogging); void setRestId(String restId); boolean dispatch(HttpRequest request, HttpResponse response,
                            HttpContext context, ResponsibleHandler... handlers); @Override void handle(final HttpRequest request, final HttpResponse response,
                       final HttpContext context); boolean accessAllowed(HttpContext context); @Override boolean supports(HttpRequest request); @Override String[] getSupportedUrls(); void setAllowedHosts(List<String> allowedHosts); List<String> getAllowedHosts(); }
HttpRESTHandler implements
        ResponsibleHandler { public void setAllowedHosts(List<String> allowedHosts) { this.allowedHosts = allowedHosts; resolveAllowedHosts(); } HttpRESTHandler(DatabaseConnector<T> dbc);  HttpRESTHandler(CachingDocumentNIO<T> documentIO,
                           PipelineReader pipelineReader, List<String> allowedHosts,
                           boolean isPerformanceLogging); void setRestId(String restId); boolean dispatch(HttpRequest request, HttpResponse response,
                            HttpContext context, ResponsibleHandler... handlers); @Override void handle(final HttpRequest request, final HttpResponse response,
                       final HttpContext context); boolean accessAllowed(HttpContext context); @Override boolean supports(HttpRequest request); @Override String[] getSupportedUrls(); void setAllowedHosts(List<String> allowedHosts); List<String> getAllowedHosts();  }