Package org.jboss.vfs.protocol
Class VirtualFileURLConnection
- java.lang.Object
-
- java.net.URLConnection
-
- org.jboss.vfs.protocol.AbstractURLConnection
-
- org.jboss.vfs.protocol.VirtualFileURLConnection
-
class VirtualFileURLConnection extends AbstractURLConnection
Implements basic URLConnection for a VirtualFile- Version:
- $Revision: 1.1 $
-
-
Field Summary
Fields Modifier and Type Field Description private VirtualFilefile(package private) static java.lang.StringJAR_CONTENT_TYPE
-
Constructor Summary
Constructors Constructor Description VirtualFileURLConnection(java.net.URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect()java.lang.ObjectgetContent()java.lang.ObjectgetContent(java.lang.Class[] classes)intgetContentLength()java.io.InputStreamgetInputStream()longgetLastModified()protected java.lang.StringgetName()java.security.PermissiongetPermission()-
Methods inherited from class org.jboss.vfs.protocol.AbstractURLConnection
getContentType, getHeaderField, toURI
-
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, 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
-
JAR_CONTENT_TYPE
static final java.lang.String JAR_CONTENT_TYPE
- See Also:
- Constant Field Values
-
file
private final VirtualFile file
-
-
Method Detail
-
connect
public void connect() throws java.io.IOException- Specified by:
connectin classjava.net.URLConnection- Throws:
java.io.IOException
-
getContent
public java.lang.Object getContent() throws java.io.IOException- Overrides:
getContentin classjava.net.URLConnection- Throws:
java.io.IOException
-
getContentLength
public int getContentLength()
- Overrides:
getContentLengthin classjava.net.URLConnection
-
getLastModified
public long getLastModified()
- Overrides:
getLastModifiedin classjava.net.URLConnection
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Overrides:
getInputStreamin classjava.net.URLConnection- Throws:
java.io.IOException
-
getPermission
public java.security.Permission getPermission() throws java.io.IOException- Overrides:
getPermissionin classjava.net.URLConnection- Throws:
java.io.IOException
-
getName
protected java.lang.String getName()
- Specified by:
getNamein classAbstractURLConnection
-
getContent
public java.lang.Object getContent(java.lang.Class[] classes) throws java.io.IOException- Overrides:
getContentin classjava.net.URLConnection- Throws:
java.io.IOException
-
-