Class APIRequestContextInitializer


  • public class APIRequestContextInitializer
    extends Object
    Initializes the APIRequestContext for an API request.

    This class is responsible for setting up the APIRequestContext with the appropriate resource type, request type, and detail level for the API operation.

    It is annotated with RequestScoped to ensure that an instance is created per HTTP request, aligning with the scope of APIRequestContext.
    Author:
    nikritikos
    • Constructor Detail

      • APIRequestContextInitializer

        public APIRequestContextInitializer()
    • Method Detail

      • initialize

        public void initialize​(APIResource resource,
                               APIRequestType requestType,
                               com.qivos.util.rest.common.APIResponseLevel detailLevel)
        Initializes the request context with the given parameters.
        Parameters:
        resource - The type of resource being requested.
        requestType - The type of the API request (e.g., GET, POST).
        detailLevel - The level of detail required in the response.