@Component public class ResponseMapper extends Object
| Constructor and Description |
|---|
ResponseMapper() |
| Modifier and Type | Method and Description |
|---|---|
<T> org.springframework.http.ResponseEntity<T> |
accepted(ResponseObject<T> response) |
<T> org.springframework.http.ResponseEntity<T> |
created(ResponseObject<T> response) |
<T,R> org.springframework.http.ResponseEntity<?> |
created(ResponseObject<T> response,
Function<T,R> mapper) |
<T> org.springframework.http.ResponseEntity<T> |
delete(ResponseObject<T> response) |
<T,R> org.springframework.http.ResponseEntity<?> |
delete(ResponseObject<T> response,
Function<T,R> mapper) |
<T> org.springframework.http.ResponseEntity<T> |
ok(ResponseObject<T> response) |
<T,R> org.springframework.http.ResponseEntity<?> |
ok(ResponseObject<T> response,
Function<T,R> mapper) |
public <T,R> org.springframework.http.ResponseEntity<?> ok(ResponseObject<T> response, Function<T,R> mapper)
public <T,R> org.springframework.http.ResponseEntity<?> created(ResponseObject<T> response, Function<T,R> mapper)
public <T,R> org.springframework.http.ResponseEntity<?> delete(ResponseObject<T> response, Function<T,R> mapper)
public <T> org.springframework.http.ResponseEntity<T> ok(ResponseObject<T> response)
public <T> org.springframework.http.ResponseEntity<T> created(ResponseObject<T> response)
public <T> org.springframework.http.ResponseEntity<T> delete(ResponseObject<T> response)
public <T> org.springframework.http.ResponseEntity<T> accepted(ResponseObject<T> response)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.