public class ServiceResponse extends AbstractResult
Modifier | Constructor and Description |
---|---|
protected |
ServiceResponse(JcmsMessage.Level level,
ServiceResult serviceResult,
java.lang.String message,
java.lang.Object[] params) |
Modifier and Type | Method and Description |
---|---|
static ServiceResponse |
error(ServiceResult serviceResult,
java.lang.String message,
java.lang.Object... params) |
static ServiceResponse |
fail(ServiceResult serviceResult) |
static ServiceResponse |
fail(ServiceResult serviceResult,
java.lang.String message,
java.lang.Object... params) |
<T> T |
getServiceResult() |
static ServiceResponse |
info(ServiceResult serviceResult,
java.lang.String message,
java.lang.Object... params) |
static ServiceResponse |
success(ServiceResult serviceResult) |
static ServiceResponse |
success(ServiceResult serviceResult,
java.lang.String message,
java.lang.Object... params) |
getMessage, getMessage, isSuccess, sendMessage, sendMessage, sendMessage, sendMessage
protected ServiceResponse(JcmsMessage.Level level, ServiceResult serviceResult, java.lang.String message, java.lang.Object[] params)
public <T> T getServiceResult()
public static ServiceResponse success(ServiceResult serviceResult)
public static ServiceResponse success(ServiceResult serviceResult, java.lang.String message, java.lang.Object... params)
public static ServiceResponse fail(ServiceResult serviceResult)
public static ServiceResponse fail(ServiceResult serviceResult, java.lang.String message, java.lang.Object... params)
public static ServiceResponse error(ServiceResult serviceResult, java.lang.String message, java.lang.Object... params)
public static ServiceResponse info(ServiceResult serviceResult, java.lang.String message, java.lang.Object... params)
Copyright © 2001-2017 Jalios SA. All Rights Reserved.