public class KuraResponsePayload extends KuraPayload
Modifier and Type | Field and Description |
---|---|
static String |
METRIC_EXCEPTION_MSG |
static String |
METRIC_EXCEPTION_STACK |
static String |
METRIC_RESPONSE_CODE |
static int |
RESPONSE_CODE_BAD_REQUEST |
static int |
RESPONSE_CODE_ERROR |
static int |
RESPONSE_CODE_NOTFOUND |
static int |
RESPONSE_CODE_OK |
Constructor and Description |
---|
KuraResponsePayload(int responseCode) |
KuraResponsePayload(int responseCode,
Throwable t) |
KuraResponsePayload(KuraPayload kuraPayload) |
KuraResponsePayload(Throwable t) |
Modifier and Type | Method and Description |
---|---|
String |
getExceptionMessage() |
String |
getExceptionStack() |
int |
getResponseCode() |
void |
setException(Throwable t) |
void |
setExceptionMessage(String message) |
void |
setExceptionStack(String stack) |
void |
setResponseCode(int responseCode) |
addMetric, getBody, getMetric, getPosition, getTimestamp, metricNames, metrics, metricsIterator, removeAllMetrics, removeMetric, setBody, setPosition, setTimestamp
public static final int RESPONSE_CODE_OK
public static final int RESPONSE_CODE_BAD_REQUEST
public static final int RESPONSE_CODE_NOTFOUND
public static final int RESPONSE_CODE_ERROR
public static final String METRIC_RESPONSE_CODE
public static final String METRIC_EXCEPTION_MSG
public static final String METRIC_EXCEPTION_STACK
public KuraResponsePayload(int responseCode)
public KuraResponsePayload(Throwable t)
public KuraResponsePayload(int responseCode, Throwable t)
public KuraResponsePayload(KuraPayload kuraPayload)
public int getResponseCode()
public void setResponseCode(int responseCode)
public String getExceptionMessage()
public void setExceptionMessage(String message)
public String getExceptionStack()
public void setExceptionStack(String stack)
public void setException(Throwable t)
Copyright © 2014. All Rights Reserved.