|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.net.URLConnection | +--com.ibm.security12.java.net.JarURLConnection | +--com.ibm.security12.sun.net.www.protocol.jar.JarURLConnection
Fields inherited from class com.ibm.security12.java.net.JarURLConnection |
jarFileURLConnection |
Fields inherited from class java.net.URLConnection |
allowUserInteraction,
connected,
doInput,
doOutput,
ifModifiedSince,
url,
useCaches |
Constructor Summary | |
JarURLConnection(URL url,
Handler handler)
|
Method Summary | |
void |
connect()
|
boolean |
getAllowUserInteraction()
Returns the value of the allowUserInteraction field for
this object. |
Object |
getContent()
|
int |
getContentLength()
|
String |
getContentType()
|
boolean |
getDefaultUseCaches()
Returns the default value of a URLConnection 's
useCaches flag. |
String |
getHeaderField(String name)
|
InputStream |
getInputStream()
|
JarEntry |
getJarEntry()
|
JarFile |
getJarFile()
|
Permission |
getPermission()
|
String |
getRequestProperty(String key)
Returns the value of the named general request property for this connection. |
boolean |
getUseCaches()
Returns the value of this URLConnection 's
useCaches field. |
void |
setAllowUserInteraction(boolean allowuserinteraction)
Set the value of the allowUserInteraction field of
this URLConnection . |
void |
setDefaultUseCaches(boolean defaultusecaches)
Sets the default value of the useCaches field to the
specified value. |
void |
setIfModifiedSince(long ifmodifiedsince)
Sets the value of the ifModifiedSince field of
this URLConnection to the specified value. |
void |
setRequestProperty(String key,
String value)
Sets the general request property. |
void |
setUseCaches(boolean usecaches)
Sets the value of the useCaches field of this
URLConnection to the specified value. |
Methods inherited from class com.ibm.security12.java.net.JarURLConnection |
getAttributes,
getCertificates,
getEntryName,
getJarFileURL,
getMainAttributes,
getManifest |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public JarURLConnection(URL url, Handler handler) throws MalformedURLException, IOException
Method Detail |
public JarFile getJarFile() throws IOException
public JarEntry getJarEntry() throws IOException
public Permission getPermission() throws IOException
public void connect() throws IOException
public InputStream getInputStream() throws IOException
public int getContentLength()
public Object getContent() throws IOException
public String getContentType()
public String getHeaderField(String name)
public void setRequestProperty(String key, String value)
key
- the keyword by which the request is known
(e.g., "accept
").value
- the value associated with it.public String getRequestProperty(String key)
public void setAllowUserInteraction(boolean allowuserinteraction)
allowUserInteraction
field of
this URLConnection
.allowuserinteraction
- the new value.URLConnection.allowUserInteraction
public boolean getAllowUserInteraction()
allowUserInteraction
field for
this object.allowUserInteraction
field for
this object.URLConnection.allowUserInteraction
public void setUseCaches(boolean usecaches)
useCaches
field of this
URLConnection
to the specified value.
Some protocols do caching of documents. Occasionally, it is important to be able to "tunnel through" and ignore the caches (e.g., the "reload" button in a browser). If the UseCaches flag on a connection is true, the connection is allowed to use whatever caches it can. If false, caches are to be ignored. The default value comes from DefaultUseCaches, which defaults to true.
URLConnection.useCaches
public boolean getUseCaches()
URLConnection
's
useCaches
field.URLConnection
's
useCaches
field.URLConnection.useCaches
public void setIfModifiedSince(long ifmodifiedsince)
ifModifiedSince
field of
this URLConnection
to the specified value.value
- the new value.URLConnection.ifModifiedSince
public void setDefaultUseCaches(boolean defaultusecaches)
useCaches
field to the
specified value.defaultusecaches
- the new value.URLConnection.useCaches
public boolean getDefaultUseCaches()
URLConnection
's
useCaches
flag.
Ths default is "sticky", being a part of the static state of all URLConnections. This flag applies to the next, and all following URLConnections that are created.
URLConnection
's
useCaches
flag.URLConnection.useCaches
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |