|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.URLConnection
org.jboss.virtual.plugins.vfs.VirtualFileURLConnection
public class VirtualFileURLConnection
Implements basic URLConnection for a VirtualFile
Field Summary | |
---|---|
protected VirtualFile |
file
|
protected java.lang.String |
relativePath
|
protected java.net.URL |
vfsurl
|
Fields inherited from class java.net.URLConnection |
---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
---|---|
VirtualFileURLConnection(java.net.URL url,
java.net.URL vfsurl,
java.lang.String relativePath)
|
|
VirtualFileURLConnection(java.net.URL url,
VirtualFile file)
|
Method Summary | |
---|---|
void |
connect()
|
VirtualFile |
getContent()
|
int |
getContentLength()
|
java.io.InputStream |
getInputStream()
|
long |
getLastModified()
|
protected VirtualFile |
getVirtualFile()
Get the virtual file. |
protected static VirtualFile |
resolveCachedVirtualFile(java.net.URL vfsurl,
java.lang.String relativePath)
|
protected static VirtualFile |
resolveVirtualFile(java.net.URL vfsurl,
java.lang.String relativePath)
|
Methods inherited from class java.net.URLConnection |
---|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContentEncoding, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected VirtualFile file
protected java.net.URL vfsurl
protected java.lang.String relativePath
Constructor Detail |
---|
public VirtualFileURLConnection(java.net.URL url, java.net.URL vfsurl, java.lang.String relativePath)
public VirtualFileURLConnection(java.net.URL url, VirtualFile file)
Method Detail |
---|
public void connect() throws java.io.IOException
connect
in class java.net.URLConnection
java.io.IOException
public VirtualFile getContent() throws java.io.IOException
getContent
in class java.net.URLConnection
java.io.IOException
public int getContentLength()
getContentLength
in class java.net.URLConnection
public long getLastModified()
getLastModified
in class java.net.URLConnection
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
java.io.IOException
protected static VirtualFile resolveCachedVirtualFile(java.net.URL vfsurl, java.lang.String relativePath) throws java.io.IOException
java.io.IOException
protected static VirtualFile resolveVirtualFile(java.net.URL vfsurl, java.lang.String relativePath) throws java.io.IOException
java.io.IOException
protected VirtualFile getVirtualFile() throws java.io.IOException
java.io.IOException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |