|
||||||||||
| 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
public 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.
| 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 | |||||||||