Class Request
- 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 Summary
Constructors Constructor Description Request()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
get(String location, String path, List<Parameter> parameters)
Performs a synchronous GET request at the given URL (concatenation of location and path).static void
post(String location, String path, String body)
Performs a synchronous POST request at the given URL (concatenation of location and path).
-
-
-
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 URLpath
- the path part of the request URLbody
- 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 URLpath
- the the path part of the request URLparameters
- a list of GET parameters- Returns:
- the response for the request
-
-