jfullam.vfabric.jenkins.plugin.rest
Class ServiceResult
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceResult
public ServiceResult(boolean success,
List<String> messages)
ServiceResult
public ServiceResult(boolean success,
String msg)
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.