Class Request


  • public class Request
    extends Object
    The Request class provides methods for performing HTTP requests.
    • Constructor Detail

      • Request

        public Request()
    • Method Detail

      • post

        public static void post​(String location,
                                String path,
                                String body)
        Performs a synchronous POST request at the given URL (concatenation of location and path).
        Parameters:
        location - the location part of the request URL
        path - the path part of the request URL
        body - the body of the request
      • get

        public static String get​(String location,
                                 String path,
                                 List<Parameter> parameters)
        Performs a synchronous GET request at the given URL (concatenation of location and path).
        Parameters:
        location - the location part of the request URL
        path - the the path part of the request URL
        parameters - a list of GET parameters
        Returns:
        the response for the request