Interface LazyResponse

All Known Implementing Classes:
LazyResponse.Existing

public interface LazyResponse
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response
    get()
    Gets the response, possibly generating it if it does not exist yet
    boolean
     
    default boolean
    If true, 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()
      If true, 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.