|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.URLStreamHandler
org.osgi.service.url.AbstractURLStreamHandlerService
org.apache.sling.launchpad.base.impl.ContextProtocolHandler
public class ContextProtocolHandler
The ContextProtocolHandler
is a simple extension of the OSGi
provided AbstractURLStreamHandlerService
which simply returns
an instance of the ContextConnection
when trying to open the
connection of the URL.
Field Summary |
---|
Fields inherited from class org.osgi.service.url.AbstractURLStreamHandlerService |
---|
realHandler |
Constructor Summary | |
---|---|
ContextProtocolHandler(LaunchpadContentProvider resourceProvider)
Creates an instance of this protocol handler setting the servlet context which is queried to access content. |
Method Summary | |
---|---|
URLConnection |
openConnection(URL url)
Returns an instance of the ContextConnection class to access the
content of the url . |
Methods inherited from class org.osgi.service.url.AbstractURLStreamHandlerService |
---|
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm |
Methods inherited from class java.net.URLStreamHandler |
---|
openConnection, parseURL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextProtocolHandler(LaunchpadContentProvider resourceProvider)
resourceProvider
- The LaunchpadContentProvider
to which requests
for content access are delegated.Method Detail |
---|
public URLConnection openConnection(URL url)
ContextConnection
class to access the
content of the url
.
openConnection
in interface org.osgi.service.url.URLStreamHandlerService
openConnection
in class org.osgi.service.url.AbstractURLStreamHandlerService
url
- The URL whose content is requested.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |