|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jini.url.httpmd.HttpmdUtil
public class HttpmdUtil
Provides utility methods for creating and using HTTPMD URLs.
Method Summary | |
---|---|
static String |
computeDigest(URL url,
String algorithm)
Computes the message digest of data specified by a URL. |
static String |
computeDigestCodebase(String sourceDirectory,
String codebase)
Computes the message digests for a codebase with HTTPMD URLs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String computeDigest(URL url, String algorithm) throws IOException, NoSuchAlgorithmException
url
- the URL of the dataalgorithm
- the message digest algorithm to use
String
in hexadecimal
format
IOException
- if an I/O exception occurs while reading data from
the URL
NoSuchAlgorithmException
- if no provider is found for the message
digest algorithm
NullPointerException
- if either argument is null
public static String computeDigestCodebase(String sourceDirectory, String codebase) throws IOException, MalformedURLException, NullPointerException
Do not use a directory on a remote filesystem, or a directory URL, if the underlying network access protocol does not provide adequate data integrity or authentication of the remote host.
sourceDirectory
- the filename or URL of the directory containing
the source files corresponding to the URLs in
codebase
codebase
- a space-separated list of HTTPMD URLs. The digest
values specified in the URLs will be ignored. The path portion of
the URLs, without the message digest parameters, will be used to
specify the source files, relative to
sourceDirectory
, to use for computing message
digests.
IllegalArgumentException
- if any of the URLs in
codebase
fail to specify the HTTPMD protocol
IOException
- if an I/O exception occurs while reading data from
the source files
MalformedURLException
- if any of the URLs in
codebase
have incorrect syntax
NullPointerException
- if either argument is null
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |