Class PreemptiveAuthHttpClientConnection

  • All Implemented Interfaces:
    org.eclipse.jgit.transport.http.HttpConnection

    public class PreemptiveAuthHttpClientConnection
    extends Object
    implements org.eclipse.jgit.transport.http.HttpConnection
    A HttpConnection which uses HttpClient and attempts to authenticate preemptively.
    • Method Detail

      • setBuffer

        public void setBuffer​(org.eclipse.jgit.util.TemporaryBuffer buffer)
      • getResponseCode

        public int getResponseCode()
                            throws IOException
        Specified by:
        getResponseCode in interface org.eclipse.jgit.transport.http.HttpConnection
        Throws:
        IOException
      • getURL

        public URL getURL()
        Specified by:
        getURL in interface org.eclipse.jgit.transport.http.HttpConnection
      • getResponseMessage

        public String getResponseMessage()
                                  throws IOException
        Specified by:
        getResponseMessage in interface org.eclipse.jgit.transport.http.HttpConnection
        Throws:
        IOException
      • getHeaderFields

        public Map<String,​List<String>> getHeaderFields()
        Specified by:
        getHeaderFields in interface org.eclipse.jgit.transport.http.HttpConnection
      • getHeaderFields

        public List<String> getHeaderFields​(@NonNull
                                            String name)
        Specified by:
        getHeaderFields in interface org.eclipse.jgit.transport.http.HttpConnection
      • setRequestProperty

        public void setRequestProperty​(String name,
                                       String value)
        Specified by:
        setRequestProperty in interface org.eclipse.jgit.transport.http.HttpConnection
      • setRequestMethod

        public void setRequestMethod​(String method)
        Specified by:
        setRequestMethod in interface org.eclipse.jgit.transport.http.HttpConnection
      • setUseCaches

        public void setUseCaches​(boolean usecaches)
        Specified by:
        setUseCaches in interface org.eclipse.jgit.transport.http.HttpConnection
      • setConnectTimeout

        public void setConnectTimeout​(int timeout)
        Specified by:
        setConnectTimeout in interface org.eclipse.jgit.transport.http.HttpConnection
      • setReadTimeout

        public void setReadTimeout​(int readTimeout)
        Specified by:
        setReadTimeout in interface org.eclipse.jgit.transport.http.HttpConnection
      • getContentType

        public String getContentType()
        Specified by:
        getContentType in interface org.eclipse.jgit.transport.http.HttpConnection
      • getInputStream

        public InputStream getInputStream()
                                   throws IOException
        Specified by:
        getInputStream in interface org.eclipse.jgit.transport.http.HttpConnection
        Throws:
        IOException
      • getHeaderField

        public String getHeaderField​(String name)
        Specified by:
        getHeaderField in interface org.eclipse.jgit.transport.http.HttpConnection
      • getContentLength

        public int getContentLength()
        Specified by:
        getContentLength in interface org.eclipse.jgit.transport.http.HttpConnection
      • setInstanceFollowRedirects

        public void setInstanceFollowRedirects​(boolean followRedirects)
        Specified by:
        setInstanceFollowRedirects in interface org.eclipse.jgit.transport.http.HttpConnection
      • setDoOutput

        public void setDoOutput​(boolean dooutput)
        Specified by:
        setDoOutput in interface org.eclipse.jgit.transport.http.HttpConnection
      • setFixedLengthStreamingMode

        public void setFixedLengthStreamingMode​(int contentLength)
        Specified by:
        setFixedLengthStreamingMode in interface org.eclipse.jgit.transport.http.HttpConnection
      • getOutputStream

        public OutputStream getOutputStream()
        Specified by:
        getOutputStream in interface org.eclipse.jgit.transport.http.HttpConnection
      • setChunkedStreamingMode

        public void setChunkedStreamingMode​(int chunklen)
        Specified by:
        setChunkedStreamingMode in interface org.eclipse.jgit.transport.http.HttpConnection
      • getRequestMethod

        public String getRequestMethod()
        Specified by:
        getRequestMethod in interface org.eclipse.jgit.transport.http.HttpConnection
      • usingProxy

        public boolean usingProxy()
        Specified by:
        usingProxy in interface org.eclipse.jgit.transport.http.HttpConnection
      • connect

        public void connect()
                     throws IOException
        Specified by:
        connect in interface org.eclipse.jgit.transport.http.HttpConnection
        Throws:
        IOException
      • setHostnameVerifier

        public void setHostnameVerifier​(HostnameVerifier hostnameverifier)
        Specified by:
        setHostnameVerifier in interface org.eclipse.jgit.transport.http.HttpConnection