@ProviderType public class KuraResponsePayload extends KuraPayload
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
METRIC_EXCEPTION_MSG |
static java.lang.String |
METRIC_EXCEPTION_STACK |
static java.lang.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,
java.lang.Throwable t) |
KuraResponsePayload(KuraPayload kuraPayload) |
KuraResponsePayload(java.lang.Throwable t) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExceptionMessage() |
java.lang.String |
getExceptionStack() |
int |
getResponseCode() |
void |
setException(java.lang.Throwable t) |
void |
setExceptionMessage(java.lang.String message) |
void |
setExceptionStack(java.lang.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 java.lang.String METRIC_RESPONSE_CODE
public static final java.lang.String METRIC_EXCEPTION_MSG
public static final java.lang.String METRIC_EXCEPTION_STACK
public KuraResponsePayload(int responseCode)
public KuraResponsePayload(java.lang.Throwable t)
public KuraResponsePayload(int responseCode, java.lang.Throwable t)
public KuraResponsePayload(KuraPayload kuraPayload)
public int getResponseCode()
public void setResponseCode(int responseCode)
public java.lang.String getExceptionMessage()
public void setExceptionMessage(java.lang.String message)
public java.lang.String getExceptionStack()
public void setExceptionStack(java.lang.String stack)
public void setException(java.lang.Throwable t)