@Test public void testCantHandleFtp() throws Exception { URI uri = URI.createURI("ftp: assertThat(handler.canHandle(uri), is(false)); }
@Override public boolean canHandle(URI uri) { return "http".equals(uri.scheme()) || "https".equals(uri.scheme()); }
HTTPURIHandler extends URIHandlerImpl { @Override public boolean canHandle(URI uri) { return "http".equals(uri.scheme()) || "https".equals(uri.scheme()); } }
HTTPURIHandler extends URIHandlerImpl { @Override public boolean canHandle(URI uri) { return "http".equals(uri.scheme()) || "https".equals(uri.scheme()); }  }
HTTPURIHandler extends URIHandlerImpl { @Override public boolean canHandle(URI uri) { return "http".equals(uri.scheme()) || "https".equals(uri.scheme()); }  @Override boolean canHandle(URI uri); @Override InputStream createInputStream(URI uri, Map<?, ?> options); int getConnectionTimeout(); void setConnectionTimeout(int connectionTimeout); int getReadTimeout(); void setReadTimeout(int readTimeout); }
HTTPURIHandler extends URIHandlerImpl { @Override public boolean canHandle(URI uri) { return "http".equals(uri.scheme()) || "https".equals(uri.scheme()); }  @Override boolean canHandle(URI uri); @Override InputStream createInputStream(URI uri, Map<?, ?> options); int getConnectionTimeout(); void setConnectionTimeout(int connectionTimeout); int getReadTimeout(); void setReadTimeout(int readTimeout);  }