@Test void invalidAttachmentJarURL() throws Exception { URL url = new URL(null, "http: try { url.openConnection(); fail("Should have thrown an exception here"); } catch (RuntimeException expected) { assertEquals("An attachment JAR URL should start with [attachmentjar: expected.getMessage()); } }
@Override protected URLConnection openConnection(URL url) throws IOException { AttachmentReference attachmentReference = this.attachmentReferenceResolver.resolve( getAttachmentReference(url)); return new AttachmentURLConnection(url, attachmentReference, this.documentAccessBridge); }
AttachmentURLStreamHandler extends URLStreamHandler implements ExtendedURLStreamHandler { @Override protected URLConnection openConnection(URL url) throws IOException { AttachmentReference attachmentReference = this.attachmentReferenceResolver.resolve( getAttachmentReference(url)); return new AttachmentURLConnection(url, attachmentReference, this.documentAccessBridge); } }
AttachmentURLStreamHandler extends URLStreamHandler implements ExtendedURLStreamHandler { @Override protected URLConnection openConnection(URL url) throws IOException { AttachmentReference attachmentReference = this.attachmentReferenceResolver.resolve( getAttachmentReference(url)); return new AttachmentURLConnection(url, attachmentReference, this.documentAccessBridge); }  }
AttachmentURLStreamHandler extends URLStreamHandler implements ExtendedURLStreamHandler { @Override protected URLConnection openConnection(URL url) throws IOException { AttachmentReference attachmentReference = this.attachmentReferenceResolver.resolve( getAttachmentReference(url)); return new AttachmentURLConnection(url, attachmentReference, this.documentAccessBridge); }  @Override String getProtocol(); }
AttachmentURLStreamHandler extends URLStreamHandler implements ExtendedURLStreamHandler { @Override protected URLConnection openConnection(URL url) throws IOException { AttachmentReference attachmentReference = this.attachmentReferenceResolver.resolve( getAttachmentReference(url)); return new AttachmentURLConnection(url, attachmentReference, this.documentAccessBridge); }  @Override String getProtocol();  }