Class HttpResult
- java.lang.Object
-
- org.codehaus.cargo.container.internal.http.HttpResult
-
public class HttpResult extends Object
Set of common HTTP(S) utility methods.
-
-
Constructor Summary
Constructors Constructor Description HttpResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getResponseBody()
int
getResponseCode()
String
getResponseMessage()
boolean
isSuccessful()
void
setResponseBody(String responseBody)
void
setResponseCode(int responseCode)
void
setResponseMessage(String responseMessage)
-
-
-
Method Detail
-
getResponseBody
public String getResponseBody()
- Returns:
- Response body of HTTP response.
-
setResponseBody
public void setResponseBody(String responseBody)
- Parameters:
responseBody
- Response body of HTTP response.
-
getResponseCode
public int getResponseCode()
- Returns:
- HTTP response code.
-
setResponseCode
public void setResponseCode(int responseCode)
- Parameters:
responseCode
- HTTP response code.
-
getResponseMessage
public String getResponseMessage()
- Returns:
- HTTP response message.
-
setResponseMessage
public void setResponseMessage(String responseMessage)
- Parameters:
responseMessage
- HTTP response message.
-
isSuccessful
public boolean isSuccessful()
- Returns:
- True if HTTP call is successful - its response code is 2xx.
-
-