Package org.kie.server.api.model
Class ServiceResponse<T>
- java.lang.Object
-
- org.kie.server.api.model.ServiceResponse<T>
-
- All Implemented Interfaces:
KieServiceResponse<T>
public class ServiceResponse<T> extends Object implements KieServiceResponse<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.kie.server.api.model.KieServiceResponse
KieServiceResponse.ResponseType
-
-
Constructor Summary
Constructors Constructor Description ServiceResponse()ServiceResponse(KieServiceResponse.ResponseType type, String msg)ServiceResponse(KieServiceResponse.ResponseType type, String msg, T result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMsg()TgetResult()KieServiceResponse.ResponseTypegetType()voidsetMsg(String msg)voidsetResult(T result)voidsetType(KieServiceResponse.ResponseType type)StringtoString()
-
-
-
Constructor Detail
-
ServiceResponse
public ServiceResponse()
-
ServiceResponse
public ServiceResponse(KieServiceResponse.ResponseType type, String msg)
-
ServiceResponse
public ServiceResponse(KieServiceResponse.ResponseType type, String msg, T result)
-
-
Method Detail
-
getType
public KieServiceResponse.ResponseType getType()
- Specified by:
getTypein interfaceKieServiceResponse<T>
-
getMsg
public String getMsg()
- Specified by:
getMsgin interfaceKieServiceResponse<T>
-
setType
public void setType(KieServiceResponse.ResponseType type)
-
setMsg
public void setMsg(String msg)
-
getResult
public T getResult()
- Specified by:
getResultin interfaceKieServiceResponse<T>
-
setResult
public void setResult(T result)
-
-