Interface LazyResponse
- All Known Implementing Classes:
LazyResponse.Existing
public interface LazyResponse
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
get()
Gets the response, possibly generating it if it does not exist yetboolean
default boolean
Iftrue
, it means that the Response is static and its data has been pre-populated and known in the request context.
-
Method Details
-
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.
-