Class PreemptiveAuthHttpClientConnection
- java.lang.Object
-
- org.jenkinsci.plugins.gitclient.jgit.PreemptiveAuthHttpClientConnection
-
- All Implemented Interfaces:
org.eclipse.jgit.transport.http.HttpConnection
public class PreemptiveAuthHttpClientConnection extends Object implements org.eclipse.jgit.transport.http.HttpConnection
AHttpConnectionwhich usesHttpClientand attempts to authenticate preemptively.
-
-
Constructor Summary
Constructors Constructor Description PreemptiveAuthHttpClientConnection(SmartCredentialsProvider credentialsProvider, String urlStr)PreemptiveAuthHttpClientConnection(SmartCredentialsProvider credentialsProvider, String urlStr, Proxy proxy)PreemptiveAuthHttpClientConnection(SmartCredentialsProvider credentialsProvider, String urlStr, Proxy proxy, org.apache.http.client.HttpClient cl)
-
Method Summary
-
-
-
Constructor Detail
-
PreemptiveAuthHttpClientConnection
public PreemptiveAuthHttpClientConnection(SmartCredentialsProvider credentialsProvider, String urlStr)
-
PreemptiveAuthHttpClientConnection
public PreemptiveAuthHttpClientConnection(SmartCredentialsProvider credentialsProvider, String urlStr, Proxy proxy)
-
PreemptiveAuthHttpClientConnection
public PreemptiveAuthHttpClientConnection(SmartCredentialsProvider credentialsProvider, String urlStr, Proxy proxy, org.apache.http.client.HttpClient cl)
-
-
Method Detail
-
setBuffer
public void setBuffer(org.eclipse.jgit.util.TemporaryBuffer buffer)
-
getResponseCode
public int getResponseCode() throws IOException- Specified by:
getResponseCodein interfaceorg.eclipse.jgit.transport.http.HttpConnection- Throws:
IOException
-
getURL
public URL getURL()
- Specified by:
getURLin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
getResponseMessage
public String getResponseMessage() throws IOException
- Specified by:
getResponseMessagein interfaceorg.eclipse.jgit.transport.http.HttpConnection- Throws:
IOException
-
getHeaderFields
public Map<String,List<String>> getHeaderFields()
- Specified by:
getHeaderFieldsin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
getHeaderFields
public List<String> getHeaderFields(@NonNull String name)
- Specified by:
getHeaderFieldsin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
setRequestProperty
public void setRequestProperty(String name, String value)
- Specified by:
setRequestPropertyin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
setRequestMethod
public void setRequestMethod(String method)
- Specified by:
setRequestMethodin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
setUseCaches
public void setUseCaches(boolean usecaches)
- Specified by:
setUseCachesin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
setConnectTimeout
public void setConnectTimeout(int timeout)
- Specified by:
setConnectTimeoutin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
setReadTimeout
public void setReadTimeout(int readTimeout)
- Specified by:
setReadTimeoutin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceorg.eclipse.jgit.transport.http.HttpConnection- Throws:
IOException
-
getHeaderField
public String getHeaderField(String name)
- Specified by:
getHeaderFieldin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
getContentLength
public int getContentLength()
- Specified by:
getContentLengthin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
setInstanceFollowRedirects
public void setInstanceFollowRedirects(boolean followRedirects)
- Specified by:
setInstanceFollowRedirectsin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
setDoOutput
public void setDoOutput(boolean dooutput)
- Specified by:
setDoOutputin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
setFixedLengthStreamingMode
public void setFixedLengthStreamingMode(int contentLength)
- Specified by:
setFixedLengthStreamingModein interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStreamin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
setChunkedStreamingMode
public void setChunkedStreamingMode(int chunklen)
- Specified by:
setChunkedStreamingModein interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
getRequestMethod
public String getRequestMethod()
- Specified by:
getRequestMethodin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
usingProxy
public boolean usingProxy()
- Specified by:
usingProxyin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
connect
public void connect() throws IOException- Specified by:
connectin interfaceorg.eclipse.jgit.transport.http.HttpConnection- Throws:
IOException
-
setHostnameVerifier
public void setHostnameVerifier(HostnameVerifier hostnameverifier)
- Specified by:
setHostnameVerifierin interfaceorg.eclipse.jgit.transport.http.HttpConnection
-
configure
public void configure(KeyManager[] km, TrustManager[] tm, SecureRandom random) throws KeyManagementException
- Specified by:
configurein interfaceorg.eclipse.jgit.transport.http.HttpConnection- Throws:
KeyManagementException
-
-