Interface RestRequestInformation


  • public interface RestRequestInformation
    Some information about a rest request.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      DiscordApi getApi()
      Gets the discord api instance which created the request.
      java.util.Optional<java.lang.String> getBody()
      Gets the body of the rest request as string.
      java.util.Map<java.lang.String,​java.lang.String> getHeaders()
      Gets the headers of the rest request.
      java.util.Map<java.lang.String,​java.lang.String> getQueryParameters()
      Gets the query parameters of the rest request.
      java.net.URL getUrl()
      Gets the url, the request should be sent to.
    • Method Detail

      • getApi

        DiscordApi getApi()
        Gets the discord api instance which created the request.
        Returns:
        The responsible discord api instance.
      • getUrl

        java.net.URL getUrl()
        Gets the url, the request should be sent to.
        Returns:
        The url, the request should be sent to.
      • getQueryParameters

        java.util.Map<java.lang.String,​java.lang.String> getQueryParameters()
        Gets the query parameters of the rest request.
        Returns:
        The query parameters of the rest request.
      • getHeaders

        java.util.Map<java.lang.String,​java.lang.String> getHeaders()
        Gets the headers of the rest request.
        Returns:
        The headers of the rest request.
      • getBody

        java.util.Optional<java.lang.String> getBody()
        Gets the body of the rest request as string.
        Returns:
        The body of the rest request.