Class RESTEndpoint.RESTResponse
- java.lang.Object
-
- com.sun.identity.install.tools.util.RESTEndpoint.RESTResponse
-
- Enclosing class:
- RESTEndpoint
public static class RESTEndpoint.RESTResponse extends Object
Class to encapsulate the response from REST API.
-
-
Constructor Summary
Constructors Constructor Description RESTResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getContent()intgetResponseCode()voidsetContent(List<String> content)Set the content, as a list of lines, returned by the endpointvoidsetResponseCode(int responseCode)set the response code of the endpointStringtoString()
-
-
-
Method Detail
-
getContent
public List<String> getContent()
- Returns:
- All the text returned by the endpoint, as a list of lines
-
setContent
public void setContent(List<String> content)
Set the content, as a list of lines, returned by the endpoint- Parameters:
content- The content, as a list of lines
-
getResponseCode
public int getResponseCode()
- Returns:
- the response code of the endpoint
-
setResponseCode
public void setResponseCode(int responseCode)
set the response code of the endpoint- Parameters:
responseCode- the response code to set
-
-