org.eclipse.jgit.transport.http.HttpConnection which simply
delegates every call to a java.net.HttpURLConnection . This is the
default implementation used by JGit
| Modifier and Type | Field and Description |
|---|---|
| pack-priv HttpURLConnection |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| protected | |
| protected | JDKHttpConnection(URL
a url, Proxy java. object.a proxy)java. object.Constructor for JDKHttpConnection. |
| Modifier and Type | Method and Description |
|---|---|
| public void | configure(KeyManager[]
the keymanager managing the key material used to authenticate
the local SSLSocket to its peer km, TrustManager[] the trustmanager responsible for managing the trust material
that is used when making trust decisions, and for deciding
whether credentials presented by a peer should be accepted. tm, SecureRandom the source of randomness for this generator or null. See
random)javax.Implements org. Configure the connection so that it can be used for https communication. |
| public void | |
| public int | getContentLength()
Implements org. Get content length |
| public String | getContentType()
Implements org. Get content type |
| public String | getHeaderField(String
the name of a header field. name)Implements org. Get header field. |
| public Map | getHeaderFields()
Implements org. Get map of header fields |
| public List | getHeaderFields(String
the name of a header field. name)Implements org. Get all values of given header field. |
| public InputStream | getInputStream()
Implements org. Get input stream |
| public OutputStream | getOutputStream()
Implements org. Get output stream |
| public String | getRequestMethod()
Implements org. Get request method |
| public int | getResponseCode()
Implements org. Get response code |
| public String | getResponseMessage()
Implements org. Get response message |
| public URL | |
| private static List | |
| public void | setChunkedStreamingMode(int
The number of bytes to write in each chunk. If chunklen is
less than or equal to zero, a default value will be used. chunklen)Implements org. Set chunked streaming mode |
| public void | setConnectTimeout(int
an timeout)int that specifies the connect timeout value
in millisecondsImplements org. Set connect timeout |
| public void | setDoOutput(boolean
the new value. dooutput)Implements org. Set if to do output |
| public void | setFixedLengthStreamingMode(int
The number of bytes which will be written to the OutputStream. contentLength)Implements org. Set fixed length streaming mode |
| public void | setHostnameVerifier(HostnameVerifier
a hostnameverifier)javax. object.Implements org. Set the |
| public void | setInstanceFollowRedirects(boolean
a followRedirects)boolean indicating whether or not to follow
HTTP redirects.Implements org. Set whether or not to follow HTTP redirects. |
| public void | setReadTimeout(int
an timeout)int that specifies the timeout value to be
used in millisecondsImplements org. Set read timeout |
| public void | setRequestMethod(String
the HTTP method method)Implements org. Set request method |
| public void | setRequestProperty(String
the keyword by which the request is known (e.g., "
key, String Accept").the value associated with it. value)Implements org. Set request property |
| public void | setUseCaches(boolean
a usecaches)boolean indicating whether or not to allow
cachingImplements org. Set if to use caches |
| public boolean | usingProxy()
Implements org. Whether we use a proxy |
| wrappedUrlConnection | back to summary |
|---|---|
| pack-priv HttpURLConnection wrappedUrlConnection | |
| JDKHttpConnection | back to summary |
|---|---|
| pack-priv JDKHttpConnection(HttpURLConnection urlConnection) | |
| JDKHttpConnection | back to summary |
|---|---|
| protected JDKHttpConnection(URL url) throws MalformedURLException, IOException Constructor for JDKHttpConnection.
| |
| JDKHttpConnection | back to summary |
|---|---|
| protected JDKHttpConnection(URL url, Proxy proxy) throws MalformedURLException, IOException Constructor for JDKHttpConnection.
| |
| configure | back to summary |
|---|---|
| public void configure(KeyManager[] km, TrustManager[] tm, SecureRandom random) throws NoSuchAlgorithmException, KeyManagementException Implements org. Doc from org. Configure the connection so that it can be used for https communication.
| |
| connect | back to summary |
|---|---|
| public void connect() throws IOException Implements org. Doc from org. Connect
| |
| getContentLength | back to summary |
|---|---|
| public int getContentLength() Implements org. Doc from org. Get content length
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements org. Doc from org. Get content type | |
| getHeaderField | back to summary |
|---|---|
| public String getHeaderField(String name) Implements org. Doc from org. Get header field. According to
RFC 2616
header field names are case insensitive. Header fields defined
as a comma separated list can have multiple header fields with the same
field name. This method only returns one of these header fields. If you
want the union of all values of all multiple header fields with the same
field name then use | |
| getHeaderFields | back to summary |
|---|---|
| public Map Implements org. Doc from org. Get map of header fields | |
| getHeaderFields | back to summary |
|---|---|
| public List Implements org. Doc from org. Get all values of given header field. According to RFC 2616 header field names are case insensitive. Header fields defined as a comma separated list can have multiple header fields with the same field name. This method does not validate if the given header field is defined as a comma separated list. | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Implements org. Doc from org. Get input stream
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() throws IOException Implements org. Doc from org. Get output stream
| |
| getRequestMethod | back to summary |
|---|---|
| public String getRequestMethod() Implements org. Doc from org. Get request method | |
| getResponseCode | back to summary |
|---|---|
| public int getResponseCode() throws IOException Implements org. Doc from org. Get response code
| |
| getResponseMessage | back to summary |
|---|---|
| public String getResponseMessage() throws IOException Implements org. Doc from org. Get response message
| |
| getURL | back to summary |
|---|---|
| public URL getURL() Implements org. Doc from org. Get URL | |
| mapValuesToListIgnoreCase | back to summary |
|---|---|
| private static List | |
| setChunkedStreamingMode | back to summary |
|---|---|
| public void setChunkedStreamingMode(int chunklen) Implements org. Doc from org. Set chunked streaming mode
| |
| setConnectTimeout | back to summary |
|---|---|
| public void setConnectTimeout(int timeout) Implements org. Doc from org. Set connect timeout
| |
| setDoOutput | back to summary |
|---|---|
| public void setDoOutput(boolean dooutput) Implements org. Doc from org. Set if to do output
| |
| setFixedLengthStreamingMode | back to summary |
|---|---|
| public void setFixedLengthStreamingMode(int contentLength) Implements org. Doc from org. Set fixed length streaming mode
| |
| setHostnameVerifier | back to summary |
|---|---|
| public void setHostnameVerifier(HostnameVerifier hostnameverifier) Implements org. Doc from org. Set the
| |
| setInstanceFollowRedirects | back to summary |
|---|---|
| public void setInstanceFollowRedirects(boolean followRedirects) Implements org. Doc from org. Set whether or not to follow HTTP redirects.
| |
| setReadTimeout | back to summary |
|---|---|
| public void setReadTimeout(int timeout) Implements org. Doc from org. Set read timeout
| |
| setRequestMethod | back to summary |
|---|---|
| public void setRequestMethod(String method) throws ProtocolException Implements org. Doc from org. Set request method
| |
| setRequestProperty | back to summary |
|---|---|
| public void setRequestProperty(String key, String value) Implements org. Doc from org. Set request property | |
| setUseCaches | back to summary |
|---|---|
| public void setUseCaches(boolean usecaches) Implements org. Doc from org. Set if to use caches
| |
| usingProxy | back to summary |
|---|---|
| public boolean usingProxy() Implements org. Doc from org. Whether we use a proxy
| |