java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.protocol.Request

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

    • Request

      public Request()
  • Method Details

    • 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