public class Response extends Object
| Constructor and Description |
|---|
Response() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.http.HttpEntity<org.springframework.hateoas.ResourceSupport> |
build(Object domain,
LarkAssembler resourceAssembler) |
static org.springframework.http.HttpEntity<org.springframework.hateoas.ResourceSupport> |
build(Object domain,
LarkAssembler resourceAssembler,
Object... pathOrRequestVariables) |
static org.springframework.http.ResponseEntity |
created(org.springframework.hateoas.ResourceSupport resourceSupport) |
static com.alibaba.fastjson.JSONObject |
error(Exception exception) |
org.springframework.http.HttpStatus |
getHttpStatus() |
org.springframework.hateoas.ResourceSupport |
getRestResource() |
static org.springframework.http.ResponseEntity |
ok() |
static org.springframework.http.ResponseEntity |
ok(org.springframework.hateoas.ResourceSupport resourceSupport) |
void |
setHttpStatus(org.springframework.http.HttpStatus httpStatus) |
void |
setRestResource(org.springframework.hateoas.ResourceSupport restResource) |
public org.springframework.hateoas.ResourceSupport getRestResource()
public void setRestResource(org.springframework.hateoas.ResourceSupport restResource)
public org.springframework.http.HttpStatus getHttpStatus()
public void setHttpStatus(org.springframework.http.HttpStatus httpStatus)
public static org.springframework.http.HttpEntity<org.springframework.hateoas.ResourceSupport> build(Object domain, LarkAssembler resourceAssembler)
public static org.springframework.http.HttpEntity<org.springframework.hateoas.ResourceSupport> build(Object domain, LarkAssembler resourceAssembler, Object... pathOrRequestVariables)
public static org.springframework.http.ResponseEntity ok()
public static org.springframework.http.ResponseEntity ok(org.springframework.hateoas.ResourceSupport resourceSupport)
public static org.springframework.http.ResponseEntity created(org.springframework.hateoas.ResourceSupport resourceSupport)
public static com.alibaba.fastjson.JSONObject error(Exception exception)
Copyright © 2016. All rights reserved.