jfullam.vfabric.jenkins.plugin.rest
Class ServiceResult

java.lang.Object
  extended by jfullam.vfabric.jenkins.plugin.rest.ServiceResult

public class ServiceResult
extends Object

Encapsulates the response from calling the Application Director API. This is just the generic part of the response content that contains information on whether the call was had any errors.

Author:
Jonathan Fullam

Constructor Summary
ServiceResult(boolean success, List<String> messages)
           
ServiceResult(boolean success, String msg)
           
 
Method Summary
 List<String> getMessages()
           
 boolean isSuccess()
           
static ServiceResult parseJson(org.codehaus.jackson.JsonNode jsonResult)
          Parses the JsonNode into a ServiceResult object
 void setMessages(List<String> messages)
           
 void setSuccess(boolean success)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceResult

public ServiceResult(boolean success,
                     List<String> messages)

ServiceResult

public ServiceResult(boolean success,
                     String msg)
Method Detail

isSuccess

public boolean isSuccess()

setSuccess

public void setSuccess(boolean success)

getMessages

public List<String> getMessages()

setMessages

public void setMessages(List<String> messages)

parseJson

public static ServiceResult parseJson(org.codehaus.jackson.JsonNode jsonResult)
Parses the JsonNode into a ServiceResult object

Parameters:
jsonResult -
Returns:
ServiceResult


Copyright © 2004-2012. All Rights Reserved.