Class THttpURLConnection

java.lang.Object
org.teavm.classlib.java.net.TURLConnection
org.teavm.classlib.java.net.THttpURLConnection
Direct Known Subclasses:
TXHRURLConnection

public abstract class THttpURLConnection extends TURLConnection
  • Field Details

  • Constructor Details

    • THttpURLConnection

      protected THttpURLConnection(TURL url)
  • Method Details

    • disconnect

      public abstract void disconnect()
    • getErrorStream

      public InputStream getErrorStream()
    • getFollowRedirects

      public static boolean getFollowRedirects()
    • getRequestMethod

      public String getRequestMethod()
    • getResponseCode

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

      public String getResponseMessage() throws IOException
      Throws:
      IOException
    • setFollowRedirects

      public static void setFollowRedirects(boolean auto)
    • setRequestMethod

      public void setRequestMethod(String method) throws TProtocolException
      Throws:
      TProtocolException
    • getInstanceFollowRedirects

      public boolean getInstanceFollowRedirects()
    • setInstanceFollowRedirects

      public void setInstanceFollowRedirects(boolean followRedirects)
    • getHeaderFieldDate

      public long getHeaderFieldDate(String field, long defaultValue)
      Overrides:
      getHeaderFieldDate in class TURLConnection
    • setFixedLengthStreamingMode

      public void setFixedLengthStreamingMode(int contentLength)
    • setChunkedStreamingMode

      public void setChunkedStreamingMode(int chunklen)