|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLConnection
java.net.JarURLConnection
php.java.bridge.DynamicJarURLConnection
class DynamicJarURLConnection
This class works around a problem in the URLClassLoader implementation, which fetches remote jar files and caches them forever. This behaviour makes the DynamicClassLoader unusable. This implementation fetches the jar file and caches them until the associated URL is finalized.
| Field Summary |
|---|
| Fields inherited from class java.net.JarURLConnection |
|---|
jarFileURLConnection |
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
protected |
DynamicJarURLConnection(java.net.URL u,
DynamicHttpURLConnectionHandler handler)
|
| Method Summary | |
|---|---|
void |
connect()
|
java.lang.String |
getHeaderField(java.lang.String key)
|
java.util.Map |
getHeaderFields()
|
java.io.InputStream |
getInputStream()
|
java.util.jar.JarFile |
getJarFile()
|
long |
getLastModified()
Use the original value. |
| Methods inherited from class java.net.JarURLConnection |
|---|
getAttributes, getCertificates, getEntryName, getJarEntry, getJarFileURL, getMainAttributes, getManifest |
| Methods inherited from class java.net.URLConnection |
|---|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, 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 |
| Constructor Detail |
|---|
protected DynamicJarURLConnection(java.net.URL u,
DynamicHttpURLConnectionHandler handler)
throws java.net.MalformedURLException
java.net.MalformedURLException| Method Detail |
|---|
public void connect()
throws java.io.IOException
connect in class java.net.URLConnectionjava.io.IOExceptionpublic java.util.Map getHeaderFields()
getHeaderFields in class java.net.URLConnectionpublic java.lang.String getHeaderField(java.lang.String key)
getHeaderField in class java.net.URLConnection
public java.util.jar.JarFile getJarFile()
throws java.io.IOException
getJarFile in class java.net.JarURLConnectionjava.io.IOException
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.URLConnectionjava.io.IOExceptionpublic long getLastModified()
getLastModified in class java.net.URLConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||