public class StitchResponse extends Object implements StitchModel
| Modifier and Type | Field and Description |
|---|---|
static String |
CODE |
static String |
HEADERS |
static String |
MESSAGE |
static String |
STATUS |
| Constructor and Description |
|---|
StitchResponse(int httpStatusCode,
Map<String,Object> headers,
String status,
String message) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getHeaders() |
int |
getHttpStatusCode() |
String |
getMessage() |
String |
getStatus() |
boolean |
isOk()
Returns true if the request succeeded.
|
Map<String,Object> |
toMap()
Create a map representation of the model which is essentially the JSON representation of the model.
|
String |
toString() |
public static final String CODE
public static final String HEADERS
public static final String STATUS
public static final String MESSAGE
public int getHttpStatusCode()
public String getStatus()
public String getMessage()
public boolean isOk()
public Map<String,Object> toMap()
StitchModeltoMap in interface StitchModelMapApache Camel