| Package | Description |
|---|---|
| com.holonplatform.http | |
| com.holonplatform.http.exceptions |
| Modifier and Type | Method and Description |
|---|---|
default HttpStatus |
HttpResponse.getStatus()
Get the response status as
HttpStatus |
static HttpStatus |
HttpStatus.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatus[] |
HttpStatus.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<HttpStatus> |
HttpStatus.of(int code)
Get the
HttpStatus which corresponds to given status code, if any |
| Modifier and Type | Method and Description |
|---|---|
static <T> HttpResponse.Builder<T> |
HttpResponse.builder(HttpStatus status,
Class<? extends T> payloadType)
Get a builder to create a default
HttpResponse instance. |
| Modifier and Type | Method and Description |
|---|---|
Optional<HttpStatus> |
HttpStatusCodeException.getStatus()
Get HTTP response status associated with this exception as
HttpStatus, if available and known. |
Copyright © 2019 The Holon Platform. All rights reserved.