Interface IRestRequest
public interface IRestRequest
Request Object
- Author:
- I-D Media AG
-
Method Summary
Modifier and TypeMethodDescription@org.jetbrains.annotations.NotNull byte[]Returns the body of the request.@NotNull StringGet the endpoint@Nullable io.netty.handler.codec.http.HttpHeadersReturns HTTP Headers of Request@Nullable IJWTInformationgetJTW()Get the JWT if availableExplode parameters from body@NotNull org.json.simple.JSONArrayGet the JSON payload (if available)@NotNull org.json.simple.JSONObjectGet the JSON payload (if available)@NotNull StringReturns the body of the request.
-
Method Details
-
getByteBody
@NotNull @org.jetbrains.annotations.NotNull byte[] getByteBody()Returns the body of the request.- Returns:
-
getStringBody
Returns the body of the request.- Returns:
-
getPayloadJsonObject
@NotNull @NotNull org.json.simple.JSONObject getPayloadJsonObject()Get the JSON payload (if available)- Returns:
-
getPayloadJsonArray
@NotNull @NotNull org.json.simple.JSONArray getPayloadJsonArray()Get the JSON payload (if available)- Returns:
-
getHeaders
@Nullable @Nullable io.netty.handler.codec.http.HttpHeaders getHeaders()Returns HTTP Headers of Request- Returns:
- HTTP Headers
-
getParametersFromPostCall
Explode parameters from body- Returns:
- Map
-
getJTW
Get the JWT if available- Returns:
-
getEndpoint
Get the endpoint- Returns:
-