Class Request
java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.protocol.Request
The Request class provides methods for performing HTTP requests.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Performs a synchronous GET request at the given URL (concatenation of location and path).static void
Performs a synchronous POST request at the given URL (concatenation of location and path).
-
Constructor Details
-
Request
public Request()
-
-
Method Details
-
post
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
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
-