/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.3.0
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.chilkatsoft;

public class CkUrl {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected CkUrl(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(CkUrl obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected static long swigRelease(CkUrl obj) {
    long ptr = 0;
    if (obj != null) {
      if (!obj.swigCMemOwn)
        throw new RuntimeException("Cannot release ownership as memory is not owned");
      ptr = obj.swigCPtr;
      obj.swigCMemOwn = false;
      obj.delete();
    }
    return ptr;
  }

  @SuppressWarnings({"deprecation", "removal"})
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        chilkatJNI.delete_CkUrl(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CkUrl() {
    this(chilkatJNI.new_CkUrl(), true);
  }

  public void get_DebugLogFilePath(CkString str) {
    chilkatJNI.CkUrl_get_DebugLogFilePath(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String debugLogFilePath() {
    return chilkatJNI.CkUrl_debugLogFilePath(swigCPtr, this);
  }

  public void put_DebugLogFilePath(String newVal) {
    chilkatJNI.CkUrl_put_DebugLogFilePath(swigCPtr, this, newVal);
  }

  public void get_Frag(CkString str) {
    chilkatJNI.CkUrl_get_Frag(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String frag() {
    return chilkatJNI.CkUrl_frag(swigCPtr, this);
  }

  public void get_Host(CkString str) {
    chilkatJNI.CkUrl_get_Host(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String host() {
    return chilkatJNI.CkUrl_host(swigCPtr, this);
  }

  public void get_HostType(CkString str) {
    chilkatJNI.CkUrl_get_HostType(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String hostType() {
    return chilkatJNI.CkUrl_hostType(swigCPtr, this);
  }

  public void get_LastErrorHtml(CkString str) {
    chilkatJNI.CkUrl_get_LastErrorHtml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorHtml() {
    return chilkatJNI.CkUrl_lastErrorHtml(swigCPtr, this);
  }

  public void get_LastErrorText(CkString str) {
    chilkatJNI.CkUrl_get_LastErrorText(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorText() {
    return chilkatJNI.CkUrl_lastErrorText(swigCPtr, this);
  }

  public void get_LastErrorXml(CkString str) {
    chilkatJNI.CkUrl_get_LastErrorXml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorXml() {
    return chilkatJNI.CkUrl_lastErrorXml(swigCPtr, this);
  }

  public boolean get_LastMethodSuccess() {
    return chilkatJNI.CkUrl_get_LastMethodSuccess(swigCPtr, this);
  }

  public void put_LastMethodSuccess(boolean newVal) {
    chilkatJNI.CkUrl_put_LastMethodSuccess(swigCPtr, this, newVal);
  }

  public void get_Login(CkString str) {
    chilkatJNI.CkUrl_get_Login(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String login() {
    return chilkatJNI.CkUrl_login(swigCPtr, this);
  }

  public void get_Password(CkString str) {
    chilkatJNI.CkUrl_get_Password(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String password() {
    return chilkatJNI.CkUrl_password(swigCPtr, this);
  }

  public void get_Path(CkString str) {
    chilkatJNI.CkUrl_get_Path(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String path() {
    return chilkatJNI.CkUrl_path(swigCPtr, this);
  }

  public void get_PathWithQueryParams(CkString str) {
    chilkatJNI.CkUrl_get_PathWithQueryParams(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String pathWithQueryParams() {
    return chilkatJNI.CkUrl_pathWithQueryParams(swigCPtr, this);
  }

  public int get_Port() {
    return chilkatJNI.CkUrl_get_Port(swigCPtr, this);
  }

  public void get_Query(CkString str) {
    chilkatJNI.CkUrl_get_Query(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String query() {
    return chilkatJNI.CkUrl_query(swigCPtr, this);
  }

  public boolean get_Ssl() {
    return chilkatJNI.CkUrl_get_Ssl(swigCPtr, this);
  }

  public boolean get_VerboseLogging() {
    return chilkatJNI.CkUrl_get_VerboseLogging(swigCPtr, this);
  }

  public void put_VerboseLogging(boolean newVal) {
    chilkatJNI.CkUrl_put_VerboseLogging(swigCPtr, this, newVal);
  }

  public void get_Version(CkString str) {
    chilkatJNI.CkUrl_get_Version(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String version() {
    return chilkatJNI.CkUrl_version(swigCPtr, this);
  }

  public boolean ParseUrl(String url) {
    return chilkatJNI.CkUrl_ParseUrl(swigCPtr, this, url);
  }

}
