public class ServiceResponse<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceResponse.ResponseType |
| Constructor and Description |
|---|
ServiceResponse() |
ServiceResponse(ServiceResponse.ResponseType type,
String msg) |
ServiceResponse(ServiceResponse.ResponseType type,
String msg,
T result) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMsg() |
T |
getResult() |
ServiceResponse.ResponseType |
getType() |
void |
setMsg(String msg) |
void |
setResult(T result) |
void |
setType(ServiceResponse.ResponseType type) |
String |
toString() |
public ServiceResponse()
public ServiceResponse(ServiceResponse.ResponseType type, String msg)
public ServiceResponse(ServiceResponse.ResponseType type, String msg, T result)
public ServiceResponse.ResponseType getType()
public String getMsg()
public void setType(ServiceResponse.ResponseType type)
public void setMsg(String msg)
public T getResult()
public void setResult(T result)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.