class HttpmdURLConnection extends DelegatingHttpURLConnection
Modifier and Type | Field and Description |
---|---|
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.
|
delegateConnection
chunkLength, fixedContentLength, fixedContentLengthLong, HTTP_ACCEPTED, HTTP_BAD_GATEWAY, HTTP_BAD_METHOD, HTTP_BAD_REQUEST, HTTP_CLIENT_TIMEOUT, HTTP_CONFLICT, HTTP_CREATED, HTTP_ENTITY_TOO_LARGE, HTTP_FORBIDDEN, HTTP_GATEWAY_TIMEOUT, HTTP_GONE, HTTP_INTERNAL_ERROR, HTTP_LENGTH_REQUIRED, HTTP_MOVED_PERM, HTTP_MOVED_TEMP, HTTP_MULT_CHOICE, HTTP_NO_CONTENT, HTTP_NOT_ACCEPTABLE, HTTP_NOT_AUTHORITATIVE, HTTP_NOT_FOUND, HTTP_NOT_IMPLEMENTED, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_PARTIAL, HTTP_PAYMENT_REQUIRED, HTTP_PRECON_FAILED, HTTP_PROXY_AUTH, HTTP_REQ_TOO_LONG, HTTP_RESET, HTTP_SEE_OTHER, HTTP_SERVER_ERROR, HTTP_UNAUTHORIZED, HTTP_UNAVAILABLE, HTTP_UNSUPPORTED_TYPE, HTTP_USE_PROXY, HTTP_VERSION, instanceFollowRedirects, method, responseCode, responseMessage
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
Constructor and Description |
---|
HttpmdURLConnection(URL url)
Creates an HTTP URL connection for an HTTPMD URL.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addRequestProperty, connect, disconnect, getAllowUserInteraction, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultUseCaches, getDoInput, getDoOutput, getErrorStream, getExpiration, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getInstanceFollowRedirects, getLastModified, getOutputStream, getPermission, getRequestMethod, getRequestProperties, getRequestProperty, getResponseCode, getResponseMessage, getUseCaches, setAllowUserInteraction, setDefaultUseCaches, setDoInput, setDoOutput, setIfModifiedSince, setInstanceFollowRedirects, setRequestMethod, setRequestProperty, setUseCaches, usingProxy
getFollowRedirects, setChunkedStreamingMode, setFixedLengthStreamingMode, setFixedLengthStreamingMode, setFollowRedirects
getConnectTimeout, getContentLengthLong, getDefaultAllowUserInteraction, getDefaultRequestProperty, getFileNameMap, getHeaderFieldLong, getReadTimeout, guessContentTypeFromName, guessContentTypeFromStream, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setFileNameMap, setReadTimeout, toString
private final String algorithm
private final byte[] expectedDigest
private final URL content
HttpmdURLConnection(URL url) throws IOException, MalformedURLException
IOException
MalformedURLException
public URL getURL()
getURL
in class DelegatingHttpURLConnection
public InputStream getInputStream() throws IOException
getInputStream
in class DelegatingHttpURLConnection
IOException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.