it.jnrpe
Class ReturnValue

java.lang.Object
  extended by it.jnrpe.ReturnValue

public class ReturnValue
extends Object

This class is just a container for the plugin result

Author:
Massimiliano Ziccardi

Constructor Summary
ReturnValue()
           
ReturnValue(int iReturnCode, String sMessage)
           
ReturnValue(String sMessage)
           
 
Method Summary
 String getMessage()
           
 int getReturnCode()
           
 ReturnValue withMessage(String sMessage)
          Sets the message and returns 'this' so that the calls can be cascaded
 ReturnValue withReturnCode(int iReturnCode)
          Sets the return code and returns 'this' so that the calls can be cascaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnValue

public ReturnValue()

ReturnValue

public ReturnValue(String sMessage)

ReturnValue

public ReturnValue(int iReturnCode,
                   String sMessage)
Method Detail

withReturnCode

public ReturnValue withReturnCode(int iReturnCode)
Sets the return code and returns 'this' so that the calls can be cascaded

Parameters:
iReturnCode -
Returns:

withMessage

public ReturnValue withMessage(String sMessage)
Sets the message and returns 'this' so that the calls can be cascaded

Parameters:
sMessage -
Returns:

getReturnCode

public int getReturnCode()

getMessage

public String getMessage()


Copyright © 2012. All Rights Reserved.