|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.net.URLStreamHandler
org.xwiki.classloader.internal.protocol.attachmentjar.AttachmentURLStreamHandler
@Component(value="attachmentjar") public class AttachmentURLStreamHandler
Special handler that allows building URLs that have their contents in a wiki document's attachment.
| Constructor Summary | |
|---|---|
AttachmentURLStreamHandler()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getProtocol()
|
protected java.net.URLConnection |
openConnection(java.net.URL url)
Parse the attachment URL which is in the format attachmentjar://(wiki):(space).(page)@(filename). |
| Methods inherited from class java.net.URLStreamHandler |
|---|
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttachmentURLStreamHandler()
| Method Detail |
|---|
public java.lang.String getProtocol()
getProtocol in interface ExtendedURLStreamHandlerExtendedURLStreamHandler.getProtocol()
protected java.net.URLConnection openConnection(java.net.URL url)
throws java.io.IOException
attachmentjar://(wiki):(space).(page)@(filename).
openConnection in class java.net.URLStreamHandlerjava.io.IOExceptionURLStreamHandler.openConnection(URL)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||