Package com.mimecast.robin.mx.util
Class LocalHttpsResponse
java.lang.Object
com.mimecast.robin.mx.util.LocalHttpsResponse
Local HTTPS Response.
Holds response payload and meta.
- Author:
- "Vlad Marian" (vmarian@mimecast.com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Gets status code.Gets Content-Type header string.Gets response string.setCode(int code) Sets status code.setContentType(String contentType) Sets Content-Type header string.setResponseString(String responseString) Sets response string.
-
Field Details
-
contentType
Content-Type header string.Default: text/plain
-
code
private int codeResponse status code.Default: 200 (HTTP_OK)
- See Also:
-
responseString
Response string.
-
-
Constructor Details
-
LocalHttpsResponse
public LocalHttpsResponse()
-
-
Method Details
-
getContentType
Gets Content-Type header string.- Returns:
- String.
-
setContentType
Sets Content-Type header string.- Parameters:
contentType- String.- Returns:
- Self.
-
getCode
public int getCode()Gets status code.- Returns:
- Integer.
-
setCode
Sets status code.- Parameters:
code- Integer.- Returns:
- Self.
-
getResponseString
Gets response string.- Returns:
- String.
-
setResponseString
Sets response string.- Parameters:
responseString- String.- Returns:
- Self.
-