|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLConnection
java.net.JarURLConnection
org.openmdx.compatibility.kernel.url.protocol.xri.ZipURLConnection
public class ZipURLConnection
An delegating URLConnection support class.
| Field Summary | |
|---|---|
protected JarURLConnection |
delegateConnection
|
static String |
JAR_PREFIX
A derived valu the JAR prefix |
static String |
JAR_PROTOCOL
The jar protocol |
static String |
JAR_SEPARATOR
As defined by JarURLConnection. |
protected URL |
xri
|
| Fields inherited from class java.net.JarURLConnection |
|---|
jarFileURLConnection |
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
ZipURLConnection(URL xri)
Constructor |
|
| Method Summary | |
|---|---|
void |
connect()
|
boolean |
getAllowUserInteraction()
|
Attributes |
getAttributes()
Return the Attributes object for this connection if the URL for it points to a JAR file entry, null otherwise. |
Certificate[] |
getCertificates()
Return the Certificate object for this connection if the URL for it points to a JAR file entry, null otherwise. |
Object |
getContent()
|
Object |
getContent(Class[] classes)
|
String |
getContentEncoding()
|
int |
getContentLength()
|
String |
getContentType()
|
long |
getDate()
|
boolean |
getDefaultUseCaches()
|
boolean |
getDoInput()
|
boolean |
getDoOutput()
|
String |
getEntryName()
Return the entry name for this connection. |
long |
getExpiration()
|
String |
getHeaderField(int n)
|
String |
getHeaderField(String name)
|
long |
getHeaderFieldDate(String name,
long _default)
|
int |
getHeaderFieldInt(String name,
int _default)
|
String |
getHeaderFieldKey(int n)
|
long |
getIfModifiedSince()
|
InputStream |
getInputStream()
|
JarEntry |
getJarEntry()
Return the JAR entry object for this connection, if any. |
JarFile |
getJarFile()
Return the JAR file for this connection. |
long |
getLastModified()
|
Attributes |
getMainAttributes()
Returns the main Attributes for the JAR file for this connection. |
Manifest |
getManifest()
Returns the Manifest for this connection, or null if none. |
OutputStream |
getOutputStream()
|
Permission |
getPermission()
|
String |
getRequestProperty(String key)
|
URL |
getURL()
|
boolean |
getUseCaches()
|
void |
setAllowUserInteraction(boolean allowuserinteraction)
|
void |
setDefaultUseCaches(boolean defaultusecaches)
|
void |
setDoInput(boolean doinput)
|
void |
setDoOutput(boolean dooutput)
|
void |
setIfModifiedSince(long ifmodifiedsince)
|
void |
setRequestProperty(String key,
String value)
|
void |
setUseCaches(boolean usecaches)
|
String |
toString()
|
| Methods inherited from class java.net.JarURLConnection |
|---|
getJarFileURL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected URL xri
protected JarURLConnection delegateConnection
public static final String JAR_SEPARATOR
A JAR may be embedded in a ZIP, an EAR, a WAR or a RAR.
JarURLConnection,
Constant Field Valuespublic static final String JAR_PROTOCOL
public static final String JAR_PREFIX
| Constructor Detail |
|---|
public ZipURLConnection(URL xri)
throws IOException
xri -
IOException| Method Detail |
|---|
public String getEntryName()
getEntryName in class JarURLConnection
public JarFile getJarFile()
throws IOException
getJarFile in class JarURLConnectionIOException - if an IOException occurs while trying to
connect to the JAR file for this connection.connect()
public Manifest getManifest()
throws IOException
getManifest in class JarURLConnectionIOException - if getting the JAR file for this
connection causes an IOException to be trown.getJarFile()
public JarEntry getJarEntry()
throws IOException
getJarEntry in class JarURLConnectionIOException - if getting the JAR file for this
connection causes an IOException to be trown.getJarFile(),
getJarEntry()
public Attributes getAttributes()
throws IOException
getAttributes in class JarURLConnectionIOException - if getting the JAR entry causes an
IOException to be thrown.getJarEntry()
public Attributes getMainAttributes()
throws IOException
getMainAttributes in class JarURLConnectionIOException - if getting the manifest causes an
IOException to be thrown.getJarFile(),
getManifest()
public Certificate[] getCertificates()
throws IOException
null
getCertificates in class JarURLConnectionIOException - if getting the JAR entry causes an
IOException to be thrown.getJarEntry()
public void connect()
throws IOException
connect in class URLConnectionIOExceptionpublic URL getURL()
getURL in class URLConnectionpublic int getContentLength()
getContentLength in class URLConnectionpublic String getContentType()
getContentType in class URLConnectionpublic String getContentEncoding()
getContentEncoding in class URLConnectionpublic long getExpiration()
getExpiration in class URLConnectionpublic long getDate()
getDate in class URLConnectionpublic long getLastModified()
getLastModified in class URLConnectionpublic String getHeaderField(String name)
getHeaderField in class URLConnection
public int getHeaderFieldInt(String name,
int _default)
getHeaderFieldInt in class URLConnection
public long getHeaderFieldDate(String name,
long _default)
getHeaderFieldDate in class URLConnectionpublic String getHeaderFieldKey(int n)
getHeaderFieldKey in class URLConnectionpublic String getHeaderField(int n)
getHeaderField in class URLConnection
public Object getContent()
throws IOException
getContent in class URLConnectionIOException
public Object getContent(Class[] classes)
throws IOException
getContent in class URLConnectionIOException
public Permission getPermission()
throws IOException
getPermission in class URLConnectionIOException
public InputStream getInputStream()
throws IOException
getInputStream in class URLConnectionIOException
public OutputStream getOutputStream()
throws IOException
getOutputStream in class URLConnectionIOExceptionpublic String toString()
toString in class URLConnectionpublic void setDoInput(boolean doinput)
setDoInput in class URLConnectionpublic boolean getDoInput()
getDoInput in class URLConnectionpublic void setDoOutput(boolean dooutput)
setDoOutput in class URLConnectionpublic boolean getDoOutput()
getDoOutput in class URLConnectionpublic void setAllowUserInteraction(boolean allowuserinteraction)
setAllowUserInteraction in class URLConnectionpublic boolean getAllowUserInteraction()
getAllowUserInteraction in class URLConnectionpublic void setUseCaches(boolean usecaches)
setUseCaches in class URLConnectionpublic boolean getUseCaches()
getUseCaches in class URLConnectionpublic void setIfModifiedSince(long ifmodifiedsince)
setIfModifiedSince in class URLConnectionpublic long getIfModifiedSince()
getIfModifiedSince in class URLConnectionpublic boolean getDefaultUseCaches()
getDefaultUseCaches in class URLConnectionpublic void setDefaultUseCaches(boolean defaultusecaches)
setDefaultUseCaches in class URLConnection
public void setRequestProperty(String key,
String value)
setRequestProperty in class URLConnectionpublic String getRequestProperty(String key)
getRequestProperty in class URLConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||