Interface LazyResponse
-
- All Known Implementing Classes:
LazyResponse.Existing
public interface LazyResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
LazyResponse.Existing
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description jakarta.ws.rs.core.Response
get()
Gets the response, possibly generating it if it does not exist yetboolean
isCreated()
default boolean
isPredetermined()
Iftrue
, it means that the Response is static and its data has been pre-populated and known in the request context.
-
-
-
Method Detail
-
get
jakarta.ws.rs.core.Response get()
Gets the response, possibly generating it if it does not exist yet
-
isCreated
boolean isCreated()
- Returns:
true
if the response already exists
-
isPredetermined
default boolean isPredetermined()
Iftrue
, it means that the Response is static and its data has been pre-populated and known in the request context. Otherwise, the build response could contain data that is not known in the request context and therefore needs to be consulted.
-
-