Class HTTPCallsUtils.HttpResponse
- java.lang.Object
-
- org.gcube.datatransfer.resolver.util.HTTPCallsUtils.HttpResponse
-
- Enclosing class:
- HTTPCallsUtils
public class HTTPCallsUtils.HttpResponse extends Object
The Class HttpResponse.- Author:
- Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Sep 7, 2016
-
-
Constructor Summary
Constructors Constructor Description HttpResponse()Instantiates a new http response.HttpResponse(int status, String response)Instantiates a new http response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetResponse()Gets the response.intgetStatus()Gets the status.voidsetResponse(String response)Sets the response.voidsetStatus(int status)Sets the status.StringtoString()
-
-
-
Constructor Detail
-
HttpResponse
public HttpResponse()
Instantiates a new http response.
-
HttpResponse
public HttpResponse(int status, String response)Instantiates a new http response.- Parameters:
status- the statusresponse- the response
-
-
Method Detail
-
getStatus
public int getStatus()
Gets the status.- Returns:
- the status
-
getResponse
public String getResponse()
Gets the response.- Returns:
- the response
-
setStatus
public void setStatus(int status)
Sets the status.- Parameters:
status- the status to set
-
setResponse
public void setResponse(String response)
Sets the response.- Parameters:
response- the response to set
-
-