Class OpenAPIOperation

    • Method Detail

      • getPath

        protected String getPath​(ObjectData data)
        Returns the generated Path section of the URI. The values paths from the operation will be serialized per OpenAPI specification and replaced within the path from the specification.
        Overrides:
        getPath in class RestOperation
        Parameters:
        data - incoming request object data.
        Returns:
        the Path
      • getHeaders

        protected Iterable<Map.Entry<String,​String>> getHeaders​(ObjectData data)
        Fetch a List of Parameter Header Entries and the Accept from the openapi specification response path of: responses.content. Header Parameters come from the specification and will be serialized per specification.
        Overrides:
        getHeaders in class RestOperation
        Parameters:
        data - incoming request object data.
        Returns:
        Iterable Entry List of Headers
      • getParameters

        protected Iterable<Map.Entry<String,​String>> getParameters​(ObjectData data)
        Fetch a List of Query Entries. These query parameters come from the specification and will be serialized per specification.
        Overrides:
        getParameters in class RestOperation
        Parameters:
        data - incoming request object data.
        Returns:
        Iterable Entry List of query parameters
      • getEntity

        protected HttpEntity getEntity​(ObjectData data)
                                throws IOException
        Returns null for GET, HEAD & DELETE requests. Null corresponds to a null request payload/body. GET, HEAD & DELETE requests are no longer allowed to have request body as per RFC-7231. In other cases, the HttpEntity with the request data will be returned.
        Overrides:
        getEntity in class RestOperation
        Parameters:
        data - incoming request object data.
        Returns:
        the HttpEntity
        Throws:
        IOException - IOException if unable to fetch data
      • isRequestBodyRequired

        protected boolean isRequestBodyRequired()
        Returns a boolean value of the "required" attribute from OpenAPI request Cookie.
        Overrides:
        isRequestBodyRequired in class RestOperation
        Returns:
        true if requestBody is required, false otherwise