Package org.craftercms.engine.util.url
Class ContentStoreUrlStreamHandler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- org.craftercms.engine.util.url.ContentStoreUrlStreamHandler
-
public class ContentStoreUrlStreamHandler extends URLStreamHandler
URLStreamHandler
for handlingURLConnection
s to the Crafter content store.- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description protected SiteContext
siteContext
-
Constructor Summary
Constructors Constructor Description ContentStoreUrlStreamHandler(SiteContext siteContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
createUrl(String filename)
protected URLConnection
openConnection(URL url)
-
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
-
-
-
Field Detail
-
siteContext
protected SiteContext siteContext
-
-
Constructor Detail
-
ContentStoreUrlStreamHandler
public ContentStoreUrlStreamHandler(SiteContext siteContext)
-
-
Method Detail
-
createUrl
public URL createUrl(String filename) throws MalformedURLException
- Throws:
MalformedURLException
-
openConnection
protected URLConnection openConnection(URL url) throws IOException
- Specified by:
openConnection
in classURLStreamHandler
- Throws:
IOException
-
-