Package org.jboss.vfs.protocol
Class FileURLConnection
- java.lang.Object
-
- java.net.URLConnection
-
- org.jboss.vfs.protocol.AbstractURLConnection
-
- org.jboss.vfs.protocol.FileURLConnection
-
public class FileURLConnection extends AbstractURLConnection
Implementation URLConnection that will delegate to the VFS RootFileSystem.- Version:
- $Revision$
-
-
Field Summary
Fields Modifier and Type Field Description private VirtualFile
file
private VirtualFile
mountPoint
private RootFileSystem
rootFileSystem
-
Constructor Summary
Constructors Constructor Description FileURLConnection(java.net.URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect()
java.io.File
getContent()
int
getContentLength()
java.io.InputStream
getInputStream()
long
getLastModified()
protected java.lang.String
getName()
java.security.Permission
getPermission()
-
Methods inherited from class org.jboss.vfs.protocol.AbstractURLConnection
getContentType, getHeaderField, toURI
-
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContentEncoding, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getOutputStream, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
-
-
-
Field Detail
-
rootFileSystem
private final RootFileSystem rootFileSystem
-
mountPoint
private final VirtualFile mountPoint
-
file
private final VirtualFile file
-
-
Method Detail
-
getContent
public java.io.File getContent() throws java.io.IOException
- Overrides:
getContent
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
getContentLength
public int getContentLength()
- Overrides:
getContentLength
in classjava.net.URLConnection
-
getLastModified
public long getLastModified()
- Overrides:
getLastModified
in classjava.net.URLConnection
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Overrides:
getInputStream
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
getPermission
public java.security.Permission getPermission() throws java.io.IOException
- Overrides:
getPermission
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
connect
public void connect() throws java.io.IOException
- Specified by:
connect
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
getName
protected java.lang.String getName()
- Specified by:
getName
in classAbstractURLConnection
-
-