Package org.mozilla.zest.core.v1
Class ZestResponse
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestResponse
-
public class ZestResponse extends ZestElement
The Class ZestResponse.
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestResponse(URL url, String headers, String body, int statusCode, long responseTimeInMs)Instantiates a new zest response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZestResponsedeepCopy()Deep copy.StringgetBody()Gets the body.StringgetHeaders()Gets the headers.longgetResponseTimeInMs()Gets the response time in ms.intgetStatusCode()Gets the status code.URLgetUrl()Gets the url.voidsetBody(String body)Set the body returnedvoidsetHeaders(String headers)Set the headers returnedvoidsetResponseTimeInMs(long responseTimeInMs)voidsetStatusCode(int statusCode)voidsetUrl(URL url)-
Methods inherited from class org.mozilla.zest.core.v1.ZestElement
getElementType, isSameSubclass, setElementType
-
-
-
-
Method Detail
-
deepCopy
public ZestResponse deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin classZestElement- Returns:
- the zest element
-
getUrl
public URL getUrl()
Gets the url.- Returns:
- the url
-
getHeaders
public String getHeaders()
Gets the headers.- Returns:
- the headers
-
getBody
public String getBody()
Gets the body.- Returns:
- the body
-
setHeaders
public void setHeaders(String headers)
Set the headers returned- Parameters:
headers-
-
setBody
public void setBody(String body)
Set the body returned- Parameters:
body-
-
getStatusCode
public int getStatusCode()
Gets the status code.- Returns:
- the status code
-
getResponseTimeInMs
public long getResponseTimeInMs()
Gets the response time in ms.- Returns:
- the response time in ms
-
setUrl
public void setUrl(URL url)
-
setStatusCode
public void setStatusCode(int statusCode)
-
setResponseTimeInMs
public void setResponseTimeInMs(long responseTimeInMs)
-
-