Package com.jalios.jcms.service
Class ServiceResponse
- java.lang.Object
-
- com.jalios.jcms.result.AbstractResult
-
- com.jalios.jcms.service.ServiceResponse
-
- All Implemented Interfaces:
java.io.Serializable
public class ServiceResponse extends AbstractResult
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServiceResponse(JcmsMessage.Level level, ServiceResult serviceResult, java.lang.String message, java.lang.Object[] params)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class com.jalios.jcms.result.AbstractResult
getMessage, getMessage, isSuccess, sendMessage, sendMessage, sendMessage, sendMessage
-
-
-
-
Constructor Detail
-
ServiceResponse
protected ServiceResponse(JcmsMessage.Level level, ServiceResult serviceResult, java.lang.String message, java.lang.Object[] params)
-
-
Method Detail
-
getServiceResult
public <T> T getServiceResult()
-
success
public static ServiceResponse success(ServiceResult serviceResult)
-
success
public static ServiceResponse success(ServiceResult serviceResult, java.lang.String message, java.lang.Object... params)
-
fail
public static ServiceResponse fail(ServiceResult serviceResult)
-
fail
public static ServiceResponse fail(ServiceResult serviceResult, java.lang.String message, java.lang.Object... params)
-
error
public static ServiceResponse error(ServiceResult serviceResult, java.lang.String message, java.lang.Object... params)
-
info
public static ServiceResponse info(ServiceResult serviceResult, java.lang.String message, java.lang.Object... params)
-
-