Package org.sam.server.http.web.response
Class ResponseEntity<T>
- java.lang.Object
-
- org.sam.server.http.web.response.ResponseEntity<T>
-
public class ResponseEntity<T> extends java.lang.Object
응답 상태 및 데이터를 포장하는 클래스. 핸들러에서 반환 값으로 사용할 수 있다.
-
-
Constructor Summary
Constructors Constructor Description ResponseEntity(HttpStatus httpStatus)
ResponseEntity(HttpStatus httpStatus, T value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> ResponseEntity<?>
badRequest()
static <T> ResponseEntity<?>
badRequest(T value)
HttpStatus
getHttpStatus()
T
getValue()
static <T> ResponseEntity<T>
noContent()
static <T> ResponseEntity<T>
notFound()
static <T> ResponseEntity<T>
notFound(T value)
static <T> ResponseEntity<T>
of(HttpStatus httpStatus)
static <T> ResponseEntity<T>
of(HttpStatus httpStatus, T value)
static <T> ResponseEntity<T>
ok()
static <T> ResponseEntity<T>
ok(T value)
-
-
-
Constructor Detail
-
ResponseEntity
public ResponseEntity(HttpStatus httpStatus, T value)
-
ResponseEntity
public ResponseEntity(HttpStatus httpStatus)
-
-
Method Detail
-
of
public static <T> ResponseEntity<T> of(HttpStatus httpStatus)
-
of
public static <T> ResponseEntity<T> of(HttpStatus httpStatus, T value)
-
ok
public static <T> ResponseEntity<T> ok()
-
ok
public static <T> ResponseEntity<T> ok(T value)
-
noContent
public static <T> ResponseEntity<T> noContent()
-
notFound
public static <T> ResponseEntity<T> notFound()
-
notFound
public static <T> ResponseEntity<T> notFound(T value)
-
badRequest
public static <T> ResponseEntity<?> badRequest()
-
badRequest
public static <T> ResponseEntity<?> badRequest(T value)
-
getHttpStatus
public HttpStatus getHttpStatus()
-
getValue
public T getValue()
-
-