Package de.presti.ree6.utils.external
Class RequestUtility
java.lang.Object
de.presti.ree6.utils.external.RequestUtility
Utility used to work with HTTP Requests.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Supported Methods.static class
Utility class for Requests. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStream
request
(RequestUtility.Request request) Send a Request.static byte[]
requestBytes
(RequestUtility.Request request) Send a Request.static com.google.gson.JsonElement
requestJson
(RequestUtility.Request request) Send a Request.static String
requestString
(RequestUtility.Request request) Send a Request.
-
Constructor Details
-
RequestUtility
public RequestUtility()
-
-
Method Details
-
request
Send a Request.- Parameters:
request
- the Request.- Returns:
- an
InputStream
.
-
requestJson
Send a Request.- Parameters:
request
- the Request.- Returns:
- an
JsonElement
.
-
requestBytes
Send a Request.- Parameters:
request
- the Request.- Returns:
- a
byte
-
requestString
Send a Request.- Parameters:
request
- the Request.- Returns:
- a
String
-