Class SimpleResponse
-
- All Implemented Interfaces:
public class SimpleResponse- Since:
2022-11-17
trydofor
-
-
Constructor Summary
Constructors Constructor Description SimpleResponse(int httpStatus, String contentType, String responseBody)SimpleResponse()
-
Method Summary
Modifier and Type Method Description voidfillIfAbsent(SimpleResponse other)intgetHttpStatus()http-status of response. StringgetContentType()content-type of response. StringgetResponseBody()body of response. voidsetHttpStatus(int httpStatus)http-status of response. voidsetContentType(@NotNull() String contentType)content-type of response. voidsetResponseBody(@NotNull() String responseBody)body of response. booleanequals(@Nullable() Object o)inthashCode()StringtoString()-
-
Method Detail
-
fillIfAbsent
void fillIfAbsent(SimpleResponse other)
-
getHttpStatus
int getHttpStatus()
http-status of response.
-
getContentType
@NotNull() String getContentType()
content-type of response.
-
getResponseBody
@NotNull() String getResponseBody()
body of response.
-
setHttpStatus
void setHttpStatus(int httpStatus)
http-status of response.
-
setContentType
void setContentType(@NotNull() String contentType)
content-type of response.
-
setResponseBody
void setResponseBody(@NotNull() String responseBody)
body of response.
-
hashCode
int hashCode()
-
-
-
-