org.whitesource.agent.api.dispatch
Class ResultEnvelope

java.lang.Object
  extended by org.whitesource.agent.api.dispatch.ResultEnvelope
All Implemented Interfaces:
Serializable

public class ResultEnvelope
extends Object
implements Serializable

Wrapper for any response form the White Source service.

Author:
Edo.Shor
See Also:
Serialized Form

Field Summary
static String MESSAGE_ILLEGAL_ARGUMENTS
           
static String MESSAGE_OK
           
static String MESSAGE_SERVER_ERROR
           
static int STATUS_BAD_REQUEST
           
static int STATUS_SERVER_ERROR
           
static int STATUS_SUCCESS
           
 
Constructor Summary
ResultEnvelope()
          Default constructor
ResultEnvelope(int status, String message, String data)
          Constructor
 
Method Summary
 String getData()
           
 String getEnvelopeVersion()
           
 String getMessage()
           
 int getStatus()
           
 void setData(String data)
           
 void setMessage(String message)
           
 void setStatus(int status)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATUS_SUCCESS

public static final int STATUS_SUCCESS
See Also:
Constant Field Values

STATUS_BAD_REQUEST

public static final int STATUS_BAD_REQUEST
See Also:
Constant Field Values

STATUS_SERVER_ERROR

public static final int STATUS_SERVER_ERROR
See Also:
Constant Field Values

MESSAGE_OK

public static final String MESSAGE_OK
See Also:
Constant Field Values

MESSAGE_ILLEGAL_ARGUMENTS

public static final String MESSAGE_ILLEGAL_ARGUMENTS
See Also:
Constant Field Values

MESSAGE_SERVER_ERROR

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

ResultEnvelope

public ResultEnvelope()
Default constructor


ResultEnvelope

public ResultEnvelope(int status,
                      String message,
                      String data)
Constructor

Parameters:
status -
message -
data -
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getEnvelopeVersion

public String getEnvelopeVersion()

getStatus

public int getStatus()

setStatus

public void setStatus(int status)

getMessage

public String getMessage()

setMessage

public void setMessage(String message)

getData

public String getData()

setData

public void setData(String data)


Copyright © 2011-2012 White Source. All Rights Reserved.