Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Java/java/net/HttpURLConnection.fz


# Fuzion interface to instance members of Java instance class 'java.net.HttpURLConnection'
#
# !!!!!!  DO NOT EDIT, GENERATED CODE !!!!!!
#
# This code was generated automatically using the fzjava tool V0.087 called 
# as follows:
#
#   ./build/bin/fzjava java.base -to=build/modules/java.base -verbose=0
#
public Java.java.net.HttpURLConnection(redef forbidden void) ref : Java.java.net.URLConnection(forbidden), fuzion.java.Java_Object(forbidden) is

  # call Java instance method 'public abstract void java.net.HttpURLConnection.disconnect()':
  #
  public disconnect unit =>
    fuzion.java.call_virtual (unit) "java.net.HttpURLConnection" "disconnect" "()V" HttpURLConnection.this []

  # call Java instance method 'public java.io.InputStream java.net.HttpURLConnection.getErrorStream()':
  #
  public getErrorStream Java.java.io.InputStream =>
    fuzion.java.call_virtual (Java.java.io.InputStream) "java.net.HttpURLConnection" "getErrorStream" "()Ljava/io/InputStream;" HttpURLConnection.this []

  # call Java instance method 'public boolean java.net.HttpURLConnection.getInstanceFollowRedirects()':
  #
  public getInstanceFollowRedirects bool =>
    fuzion.java.call_virtual (bool) "java.net.HttpURLConnection" "getInstanceFollowRedirects" "()Z" HttpURLConnection.this []

  # call Java instance method 'public java.lang.String java.net.HttpURLConnection.getRequestMethod()':
  #
  public getRequestMethod Java.java.lang.__jString =>
    fuzion.java.call_virtual (Java.java.lang.__jString) "java.net.HttpURLConnection" "getRequestMethod" "()Ljava/lang/String;" HttpURLConnection.this []

  # call Java instance method 'public int java.net.HttpURLConnection.getResponseCode() throws java.io.IOException':
  #
  public getResponseCode outcome (i32) =>
    fuzion.java.call_virtual (outcome (i32)) "java.net.HttpURLConnection" "getResponseCode" "()I" HttpURLConnection.this []

  # call Java instance method 'public java.lang.String java.net.HttpURLConnection.getResponseMessage() throws java.io.IOException':
  #
  public getResponseMessage outcome (Java.java.lang.__jString) =>
    fuzion.java.call_virtual (outcome (Java.java.lang.__jString)) "java.net.HttpURLConnection" "getResponseMessage" "()Ljava/lang/String;" HttpURLConnection.this []

  # call Java instance method 'public void java.net.HttpURLConnection.setAuthenticator(java.net.Authenticator)':
  #
  public setAuthenticator_Ljava_7_net_7_Authenticator_s_(arg0 Java.java.net.Authenticator) unit =>
    fuzion.java.call_virtual (unit) "java.net.HttpURLConnection" "setAuthenticator" "(Ljava/net/Authenticator;)V" HttpURLConnection.this [(Java.java.net.HttpURLConnection.setAuthenticator_Ljava_7_net_7_Authenticator_s_.this.arg0)]

  # call Java instance method 'public void java.net.HttpURLConnection.setChunkedStreamingMode(int)':
  #
  public setChunkedStreamingMode_I(arg0 i32) unit =>
    fuzion.java.call_virtual (unit) "java.net.HttpURLConnection" "setChunkedStreamingMode" "(I)V" HttpURLConnection.this [(fuzion.java.i32_to_java_object Java.java.net.HttpURLConnection.setChunkedStreamingMode_I.this.arg0)]

  # call Java instance method 'public void java.net.HttpURLConnection.setFixedLengthStreamingMode(int)':
  #
  public setFixedLengthStreamingMode_I(arg0 i32) unit =>
    fuzion.java.call_virtual (unit) "java.net.HttpURLConnection" "setFixedLengthStreamingMode" "(I)V" HttpURLConnection.this [(fuzion.java.i32_to_java_object Java.java.net.HttpURLConnection.setFixedLengthStreamingMode_I.this.arg0)]

  # call Java instance method 'public void java.net.HttpURLConnection.setFixedLengthStreamingMode(long)':
  #
  public setFixedLengthStreamingMode_J(arg0 i64) unit =>
    fuzion.java.call_virtual (unit) "java.net.HttpURLConnection" "setFixedLengthStreamingMode" "(J)V" HttpURLConnection.this [(fuzion.java.i64_to_java_object Java.java.net.HttpURLConnection.setFixedLengthStreamingMode_J.this.arg0)]

  # call Java instance method 'public void java.net.HttpURLConnection.setInstanceFollowRedirects(boolean)':
  #
  public setInstanceFollowRedirects_Z(arg0 bool) unit =>
    fuzion.java.call_virtual (unit) "java.net.HttpURLConnection" "setInstanceFollowRedirects" "(Z)V" HttpURLConnection.this [(fuzion.java.bool_to_java_object Java.java.net.HttpURLConnection.setInstanceFollowRedirects_Z.this.arg0)]

  # call Java instance method 'public void java.net.HttpURLConnection.setRequestMethod(java.lang.String) throws java.net.ProtocolException':
  #
  public setRequestMethod_Ljava_7_lang_7_String_s_(arg0 String) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.HttpURLConnection" "setRequestMethod" "(Ljava/lang/String;)V" HttpURLConnection.this [(fuzion.java.string_to_java_object Java.java.net.HttpURLConnection.setRequestMethod_Ljava_7_lang_7_String_s_.this.arg0)]

  # call Java instance method 'public abstract boolean java.net.HttpURLConnection.usingProxy()':
  #
  public usingProxy bool =>
    fuzion.java.call_virtual (bool) "java.net.HttpURLConnection" "usingProxy" "()Z" HttpURLConnection.this []

  # short-hand to call Java method 'public void java.net.HttpURLConnection.setAuthenticator(java.net.Authenticator)':
  #
  public setAuthenticator(arg0 Java.java.net.Authenticator) (unit) =>
    setAuthenticator_Ljava_7_net_7_Authenticator_s_ Java.java.net.HttpURLConnection.setAuthenticator.this.arg0

  # short-hand to call Java method 'public void java.net.HttpURLConnection.setChunkedStreamingMode(int)':
  #
  public setChunkedStreamingMode(arg0 i32) (unit) =>
    setChunkedStreamingMode_I Java.java.net.HttpURLConnection.setChunkedStreamingMode.this.arg0

  # short-hand to call Java method 'public void java.net.HttpURLConnection.setFixedLengthStreamingMode(long)':
  #
  public setFixedLengthStreamingMode(arg0 i64) (unit) =>
    setFixedLengthStreamingMode_J Java.java.net.HttpURLConnection.setFixedLengthStreamingMode.this.arg0

  # short-hand to call Java method 'public void java.net.HttpURLConnection.setInstanceFollowRedirects(boolean)':
  #
  public setInstanceFollowRedirects(arg0 bool) (unit) =>
    setInstanceFollowRedirects_Z Java.java.net.HttpURLConnection.setInstanceFollowRedirects.this.arg0

  # short-hand to call Java method 'public void java.net.HttpURLConnection.setRequestMethod(java.lang.String) throws java.net.ProtocolException':
  #
  public setRequestMethod(arg0 String) (outcome (unit)) =>
    setRequestMethod_Ljava_7_lang_7_String_s_ Java.java.net.HttpURLConnection.setRequestMethod.this.arg0