com.aiyc.server.standalone.net
类 Response
java.lang.Object
com.aiyc.server.standalone.net.Response
public class Response
- extends Object
Class representing a response from the server.
- 作者:
- felly
|
嵌套类摘要 |
static class |
Response.Status
Different status the server reports back to the client |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Response
public Response()
Response
public Response(Response.Status status,
String message,
Object data)
setStatus
public void setStatus(Response.Status status)
- 参数:
status - Response.Status to be sent to the client
getStatus
public Response.Status getStatus()
- 返回:
Response.Status to be sent to the client
setMessage
public void setMessage(String message)
- 参数:
message - Message to be sent to the client
getMessage
public String getMessage()
- 返回:
- Message
setData
public void setData(Object data)
- 参数:
data - Data to be sent to the client
getData
public Object getData()
- 返回:
- Data
Copyright © 2017. All Rights Reserved.