This project has retired. For details please refer to its Attic page.
net.jini.url.httpmd (Apache River v3.0.0 API Documentation)
Skip navigation links

Package net.jini.url.httpmd

Provides support for the HTTPMD URL protocol.

See: Description

Package net.jini.url.httpmd Description

Provides support for the HTTPMD URL protocol.

HTTPMD URLs provide a way to insure the integrity of data retrieved from an HTTP URL. The HTTPMD URL includes a message digest for the data to be retrieved from the URL. The URL input stream insures that the data has the correct message digest when the end of file for the stream is reached.

The Handler class defines a stream handler for HTTPMD URLs. You can specify that this class be used for HTTPMD URLs by setting the "java.protocol.handler.pkgs" system property to "net.jini.url". See URL.URL(java.lang.String, java.lang.String, int, java.lang.String) for more details on specifying a URL stream protocol handler.

The HttpmdIntegrityVerifier class defines an integrity verifier for HTTPMD URLs. This class is intended to be specified in a resource to configure the operation of Security.verifyCodebaseIntegrity.

The HttpmdUtil class provides utility methods for computing the message digest of data specified by a URL and for computing HTTPMD URLs for use in codebases.

Since:
2.0
Version:
2.0
Implementation Specifics:
This implementation of HTTPMD URLs uses the Logger named net.jini.url.httpmd to log information at the following logging levels:

net.jini.url.httpmd
Level Description
FAILED URL input stream detects an incorrect message digest

See the LogManager class for one way to use the FAILED logging level in standard logging configuration files.

Skip navigation links

Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.