|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.URLConnection
java.net.HttpURLConnection
net.jini.url.httpmd.DelegatingHttpURLConnection
net.jini.url.httpmd.HttpmdURLConnection
class HttpmdURLConnection
An HTTP URL connection for HTTPMD URLs.
Field Summary | |
---|---|
private String |
algorithm
The message digest algorithm. |
private URL |
content
The URL specifying the location of the data. |
private byte[] |
expectedDigest
The expected message digest for the URL data. |
Fields inherited from class net.jini.url.httpmd.DelegatingHttpURLConnection |
---|
delegateConnection |
Fields inherited from class java.net.URLConnection |
---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
---|---|
HttpmdURLConnection(URL url)
Creates an HTTP URL connection for an HTTPMD URL. |
Method Summary | |
---|---|
InputStream |
getInputStream()
Returns an input stream that uses MdInputStream to check that the input has the expected message digest. |
URL |
getURL()
Returns our URL, not the one for the HTTP connection. |
Methods inherited from class java.net.HttpURLConnection |
---|
getFollowRedirects, setChunkedStreamingMode, setFixedLengthStreamingMode, setFollowRedirects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final String algorithm
private final byte[] expectedDigest
private final URL content
Constructor Detail |
---|
HttpmdURLConnection(URL url) throws IOException, MalformedURLException
IOException
MalformedURLException
Method Detail |
---|
public URL getURL()
getURL
in class DelegatingHttpURLConnection
public InputStream getInputStream() throws IOException
getInputStream
in class DelegatingHttpURLConnection
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |