Class OpenAPIOperationConnection

    • Constructor Detail

      • OpenAPIOperationConnection

        public OpenAPIOperationConnection​(OperationContext context)
    • Method Detail

      • getAPIAuthenticationKeys

        protected Map<String,​String> getAPIAuthenticationKeys()
        Returns a map of key values pairs provided in the API Keys custom properties field for Authentication Type = "API_KEY"
        Returns:
        Map of API Keys
      • isAPIAuthentication

        public boolean isAPIAuthentication()
        Returns true is selected authentication type is API_KEY
        Returns:
      • getPath

        public String getPath()
        Gets the selected Path to execute upon.
        Returns:
        the path
      • getRequestCookie

        public OpenAPIRequestCookie getRequestCookie()
        Retrieves the request cookie, which describes schema type and parameters necessary to make a request
        Returns:
        the request cookie
      • getResponseCookie

        public OpenAPIResponseCookie getResponseCookie()
        Retrieves the response cookie, which describes the response schema types
        Returns:
        the response cookie
      • addCookiesToStore

        protected void addCookiesToStore​(BasicCookieStore cookieStore)
        Adds cookies from the apiKeyCustomProperties field into the provided cookie store if the auth is of type API_KEY and Request Location is set to Cookie
        Overrides:
        addCookiesToStore in class RestOperationConnection
        Parameters:
        cookieStore -
      • isAPIAuthenticationEnabled

        protected boolean isAPIAuthenticationEnabled​(APIKeyAuthentication apiKeyAuthentication)
        Returns true if the following is true: - the authentication type is API_KEY - authentication type matches the selected api key request location - has a non-null map of API Key values pairs defined