Class SpigotRequest

java.lang.Object
ml.karmaconfigs.api.bukkit.util.spigot.SpigotRequest

public final class SpigotRequest extends Object
Karma implementation of XenforoResourceManagerAPI
  • Constructor Details

    • SpigotRequest

      public SpigotRequest()
  • Method Details

    • request

      public SpigotRequest request(Request request)
      Set the spigot request method
      Parameters:
      request - the request
      Returns:
      this instance
    • push

      public com.google.gson.JsonElement push() throws IllegalStateException
      Push the request
      Returns:
      the request result
      Throws:
      IllegalStateException - if the request method does not match with this push or url/response is null
    • push

      public com.google.gson.JsonElement push(int data) throws IllegalStateException
      Push the request
      Parameters:
      data - the data
      Returns:
      the request result
      Throws:
      IllegalStateException - if the request method does not match with this push or url/response is null
    • push

      public com.google.gson.JsonElement push(int data, VarType type) throws IllegalStateException
      Push the request
      Parameters:
      data - the data
      type - the argument type
      Returns:
      the request result
      Throws:
      IllegalStateException - if the request method does not match with this push or url/response is null
    • push

      public com.google.gson.JsonElement push(int data, int second) throws IllegalStateException
      Push the request
      Parameters:
      data - the data
      second - the second data
      Returns:
      the request result
      Throws:
      IllegalStateException - if the request method does not match with this push or url/response is null
    • push

      public com.google.gson.JsonElement push(String data) throws IllegalStateException
      Push the request
      Parameters:
      data - the data
      Returns:
      the request result
      Throws:
      IllegalStateException - if the request method does not match with this push or url/response is null
    • pushString

      public String pushString() throws IllegalStateException
      Push the request
      Returns:
      the request result
      Throws:
      IllegalStateException - if the request method does not match with this push or url/response is null
    • pushString

      public String pushString(int data) throws IllegalStateException
      Push the request
      Parameters:
      data - the data
      Returns:
      the request result
      Throws:
      IllegalStateException - if the request method does not match with this push or url/response is null
    • pushString

      public String pushString(int data, VarType type) throws IllegalStateException
      Push the request
      Parameters:
      data - the data
      type - the argument type
      Returns:
      the request result
      Throws:
      IllegalStateException - if the request method does not match with this push or url/response is null
    • pushString

      public String pushString(int data, int second) throws IllegalStateException
      Push the request
      Parameters:
      data - the data
      second - the second data
      Returns:
      the request result
      Throws:
      IllegalStateException - if the request method does not match with this push or url/response is null
    • pushString

      public String pushString(String data) throws IllegalStateException
      Push the request
      Parameters:
      data - the data
      Returns:
      the request result
      Throws:
      IllegalStateException - if the request method does not match with this push or url/response is null