cn.dreampie.common.http.result
类 WebResult<T>
java.lang.Object
cn.dreampie.common.http.result.WebResult<T>
public class WebResult<T>
- extends Object
Created by ice on 14-12-19.
A WebResult can be raised to make resty return immediately an HTTP response with a specific HTTP status.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebResult
public WebResult(HttpStatus status)
WebResult
public WebResult(HttpStatus status,
T result)
WebResult
public WebResult(T result)
getStatus
public HttpStatus getStatus()
getResult
public T getResult()
- Returns the content to use in the HTTP response .
- 返回:
- the content to use in the response.
Copyright © 2015. All rights reserved.