Package com.inteliqua.rest.common
Class APIRequestContextInitializer
- java.lang.Object
-
- com.inteliqua.rest.common.APIRequestContextInitializer
-
public class APIRequestContextInitializer extends Object
Initializes theAPIRequestContextfor an API request.This class is responsible for setting up the
It is annotated withAPIRequestContextwith the appropriate resource type, request type, and detail level for the API operation.RequestScopedto ensure that an instance is created per HTTP request, aligning with the scope ofAPIRequestContext.- Author:
- nikritikos
-
-
Constructor Summary
Constructors Constructor Description APIRequestContextInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(APIResource resource, APIRequestType requestType, com.qivos.util.rest.common.APIResponseLevel detailLevel)Initializes the request context with the given parameters.
-
-
-
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.
-
-