Class HttpConnection

java.lang.Object
org.jumpmind.symmetric.transport.http.HttpConnection
All Implemented Interfaces:
Closeable, AutoCloseable

public class HttpConnection extends Object implements Closeable
  • Field Details

  • Constructor Details

  • Method Details

    • disconnect

      public void disconnect()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • getURL

      public URL getURL()
    • getContentEncoding

      public String getContentEncoding()
    • getInputStream

      public InputStream getInputStream() throws IOException
      Throws:
      IOException
    • getOutputStream

      public OutputStream getOutputStream() throws IOException
      Throws:
      IOException
    • setConnectTimeout

      public void setConnectTimeout(int timeout)
    • setReadTimeout

      public void setReadTimeout(int timeout)
    • setDoInput

      public void setDoInput(boolean doinput)
    • setDoOutput

      public void setDoOutput(boolean dooutput)
    • setAllowUserInteraction

      public void setAllowUserInteraction(boolean allowuserinteraction)
    • setUseCaches

      public void setUseCaches(boolean usecaches)
    • setRequestProperty

      public void setRequestProperty(String key, String value)
    • addRequestProperty

      public void addRequestProperty(String key, String value)
    • setChunkedStreamingMode

      public void setChunkedStreamingMode(int chunklen)
    • getHeaderField

      public String getHeaderField(String name)
    • getHeaderFields

      public Map<String,List<String>> getHeaderFields()
    • setInstanceFollowRedirects

      public void setInstanceFollowRedirects(boolean followRedirects)
    • setRequestMethod

      public void setRequestMethod(String method) throws ProtocolException
      Throws:
      ProtocolException
    • getResponseCode

      public int getResponseCode() throws IOException
      Throws:
      IOException
    • setHostnameVerifier

      public void setHostnameVerifier(HostnameVerifier hostnameVerifier)
    • setSslSocketFactory

      public void setSslSocketFactory(SSLSocketFactory sslSocketFactory)
    • getServerCertificates

      public Certificate[] getServerCertificates()