Java Reference
In-Depth Information
In case of an error, the response must be a string composed as follows:
String Response = errorCode + ' ' + errorDescription + “\n”;
The returned MIME type is JNLP Error (“ application/x-java-jnlp-error ”).
Basic Download
In the basic download case of the JNLP protocol, a normal Web server could be used.
Resources are available for HTTP GET requests as normal, static Web pages.
B
Return types allowed are the following:
•Icons having the MIME types “ image/jpeg ”or“ image/gif ”.
• AR files having MIME type “ application/x-java-archive ”requested in the JNLP
file with jar or nativelib elements.
•JNLP files having the MIME type: “ application/x-java-jnlp-file ”.
•JNLP Error having the MIME type: “ application/x-java-jnlp-error ”.
Version-Based Download
Ve rsion-Based downloads require more advanced server support in order to respond to requests
in the form of a GET operation:
URL?version-id=...&main=...
Return types allowed are:
•Icons having the MIME types: “ image/jpeg ”or“ image/gif ”. Requested in the JNLP
file with icon elements.
• AR files having the MIME type: “ application/x-java-archive ”. Requested in the
JNLP file with jar or nativelib elements.
• ARDiff files having the MIME type: “ application/x-java-archive-diff ”. Requested
in the JNLP file with jar or nativelib elements.
•JNLP Error having the MIME type: “ application/x-java-jnlp-error ”.
For Java code that implements the version-based JNLP protocol on the server side, see Chapter
10, “Defining the Client Environment.”
Extension Download
This kind of download is used for JNLP files that contain the extension-desc empty element.
Only the JNLP file return type is allowed with the MIME type “ application/x-java-jnlp-
file ”. In the HTTP header, the field “ x-java-jnlp-version-id ” must be set with the current
Search WWH ::




Custom Search