| |
|
| java.lang.Object java.net.URLConnection java.net.JarURLConnection sun.net.www.protocol.jar.JarURLConnection
getAllowUserInteraction | public boolean getAllowUserInteraction()(Code) | | Returns the value of the allowUserInteraction field for
this object.
the value of the allowUserInteraction field forthis object. See Also: java.net.URLConnection.allowUserInteraction |
getContentLength | public int getContentLength()(Code) | | |
getDefaultUseCaches | public boolean getDefaultUseCaches()(Code) | | Returns the default value of a 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.
the default value of a URLConnection 'suseCaches flag. See Also: java.net.URLConnection.useCaches |
getRequestProperty | public String getRequestProperty(String key)(Code) | | Returns the value of the named general request property for this
connection.
the value of the named general request property for thisconnection. |
getUseCaches | public boolean getUseCaches()(Code) | | Returns the value of this URLConnection 's
useCaches field.
the value of this URLConnection 'suseCaches field. See Also: java.net.URLConnection.useCaches |
setAllowUserInteraction | public void setAllowUserInteraction(boolean allowuserinteraction)(Code) | | Set the value of the allowUserInteraction field of
this URLConnection .
Parameters: allowuserinteraction - the new value. See Also: java.net.URLConnection.allowUserInteraction |
setDefaultUseCaches | public void setDefaultUseCaches(boolean defaultusecaches)(Code) | | Sets the default value of the useCaches field to the
specified value.
Parameters: defaultusecaches - the new value. See Also: java.net.URLConnection.useCaches |
setIfModifiedSince | public void setIfModifiedSince(long ifmodifiedsince)(Code) | | Sets the value of the ifModifiedSince field of
this URLConnection to the specified value.
Parameters: value - the new value. See Also: java.net.URLConnection.ifModifiedSince |
setRequestProperty | public void setRequestProperty(String key, String value)(Code) | | Sets the general request property.
Parameters: key - the keyword by which the request is known(e.g., "accept "). Parameters: value - the value associated with it. |
setUseCaches | public void setUseCaches(boolean usecaches)(Code) | | Sets the value of the 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.
See Also: java.net.URLConnection.useCaches |
|
|
|