org.jboss.virtual.plugins.vfs
Class VirtualFileURLConnection
java.lang.Object
java.net.URLConnection
org.jboss.virtual.plugins.vfs.VirtualFileURLConnection
public class VirtualFileURLConnection
- extends URLConnection
Implements basic URLConnection for a VirtualFile
- Version:
- $Revision: 1.1 $
- Author:
- Bill Burke
| Methods inherited from class java.net.URLConnection |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString |
urlCache
public static Map<URL,VFS> urlCache
file
protected VirtualFile file
vfsurl
protected URL vfsurl
relativePath
protected String relativePath
VirtualFileURLConnection
public VirtualFileURLConnection(URL url,
URL vfsurl,
String relativePath)
VirtualFileURLConnection
public VirtualFileURLConnection(URL url,
VirtualFile file)
connect
public void connect()
throws IOException
- Specified by:
connect in class URLConnection
- Throws:
IOException
resolveCachedVirtualFile
public static VirtualFile resolveCachedVirtualFile(URL vfsurl,
String relativePath)
throws IOException
- Throws:
IOException
resolveVirtualFile
public static VirtualFile resolveVirtualFile(URL vfsurl,
String relativePath)
throws IOException
- Throws:
IOException
getVirtualFile
public VirtualFile getVirtualFile()
throws IOException
- Throws:
IOException
getInputStream
public InputStream getInputStream()
throws IOException
- Overrides:
getInputStream in class URLConnection
- Throws:
IOException
Copyright © 2007 JBoss, A division of Red Hat, Inc. All Rights Reserved.