com.eurotech.framework.message
Class EsfResponsePayload

java.lang.Object
  extended by com.eurotech.framework.message.EsfPayload
      extended by com.eurotech.framework.message.EsfResponsePayload

public class EsfResponsePayload
extends EsfPayload


Field Summary
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 Summary
EsfResponsePayload(EsfPayload esfPayload)
           
EsfResponsePayload(int responseCode)
           
EsfResponsePayload(int responseCode, Throwable t)
           
EsfResponsePayload(Throwable t)
           
 
Method Summary
 String getExceptionMessage()
           
 String getExceptionStack()
           
 int getResponseCode()
           
 void setException(Throwable t)
           
 void setExceptionMessage(String message)
           
 void setExceptionStack(String stack)
           
 void setResponseCode(int responseCode)
           
 
Methods inherited from class com.eurotech.framework.message.EsfPayload
addMetric, getBody, getMetric, getPosition, getTimestamp, metricNames, metrics, metricsIterator, removeAllMetrics, removeMetric, setBody, setPosition, setTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESPONSE_CODE_OK

public static final int RESPONSE_CODE_OK
See Also:
Constant Field Values

RESPONSE_CODE_BAD_REQUEST

public static final int RESPONSE_CODE_BAD_REQUEST
See Also:
Constant Field Values

RESPONSE_CODE_NOTFOUND

public static final int RESPONSE_CODE_NOTFOUND
See Also:
Constant Field Values

RESPONSE_CODE_ERROR

public static final int RESPONSE_CODE_ERROR
See Also:
Constant Field Values

METRIC_RESPONSE_CODE

public static final String METRIC_RESPONSE_CODE
See Also:
Constant Field Values

METRIC_EXCEPTION_MSG

public static final String METRIC_EXCEPTION_MSG
See Also:
Constant Field Values

METRIC_EXCEPTION_STACK

public static final String METRIC_EXCEPTION_STACK
See Also:
Constant Field Values
Constructor Detail

EsfResponsePayload

public EsfResponsePayload(int responseCode)

EsfResponsePayload

public EsfResponsePayload(Throwable t)

EsfResponsePayload

public EsfResponsePayload(int responseCode,
                          Throwable t)

EsfResponsePayload

public EsfResponsePayload(EsfPayload esfPayload)
Method Detail

getResponseCode

public int getResponseCode()

setResponseCode

public void setResponseCode(int responseCode)

getExceptionMessage

public String getExceptionMessage()

setExceptionMessage

public void setExceptionMessage(String message)

getExceptionStack

public String getExceptionStack()

setExceptionStack

public void setExceptionStack(String stack)

setException

public void setException(Throwable t)


Copyright © 2013. All Rights Reserved.