This section describes the download methods of the applet used in JBK Plugin.
JBK Plugin provides the following three methods for downloading applets.
Using Java networking class
Using the networking functionality of the browser
Mixing the above two methods
When using the networking functionality of the browser, JBK Plugin downloads applets according to the network setting of the browser, such as the proxy and caching. To use these setting, select the method of using the networking functionality of the browser.
What Kind of Files Are These Download Methods Applied to?
These download methods are applied to the following kind of files:
Class files used in the applet (*.class)
JAR files for the applet (*.jar)
JAR files which are described in the ARCHIVE attribute of the tag for JBK Plugin in the HTML file. For the detail of the ARCHIVE attribute, see '2.2.3 How to Create an HTML File for JBK Plugin'.
Property files used in the applet (*.properties)
Image files used in the applet (*.gif, *.jpg, and so on.)
Other files downloaded by the applet using the API of the java.net.URL class.
The content specified in the section "How JBK Plugin Downloads Class Files" applies to these files.
Note
JBK Plugin does not download the files described below. The browser downloads them. Therefore, the download methods of JBK Plugin are not applied to these files.
HTML files which includes the tag for JBK Plugin
Image files used in the HTML files
Specifying the Download Method of the Applet
To specify the download method, code the following line in the jbkplugin.properties file.
jbk.plugin.protocol.http=<applet-download-method> |
As <applet-download-method>, specify one of the following keywords:
Downloads the files by using Java networking class.
The downloaded files are not cached in the local disk. As the HTTP proxy, JBK Plugin uses the proxy setting in the jbkplugin.properties file (see '2.3.4 Proxy Setting' for the detail of the proxy setting.)
Downloads the files by using the networking functionality of the browser.
The downloaded file is cached in the browser cache directory. From the next time on, the file is loaded from the cache. For the detail of the browser cache and its setting, see the manual of the browser.
As the HTTP proxy, JBK Plugin uses the proxy setting of the browser. For the detail of the proxy setting of the browser, see the manual of the browser.
Downloads the files by using both of the above two methods. In this method, class files and JAR files are downloaded by using the networking functionality of the browser, while the other files are downloaded by using Java networking class. By default, the download method is set to hybrid.
Note
Earlier versions of JBK Plugin do not support downloading of applets via a browser. To specify that applets are not to be downloaded via a browser, specify "jbk.plugin.protocol.http" for java.
In Internet Explorer with "hybrid" or "native" specified in the parameter, the followings occur when a file connected by using java.net.URLConnection is cached in the browser:
The getHeaderFieldDate or getDate method will return 0.
The getHeaderField or getHeaderFieldKey method will not return the Server or Date field.
Example
Sample setting of download method
jbk.plugin.protocol.http=native |