Class AbstractApiEndpoint<E extends ApiName,​T>

    • Field Detail

      • log

        protected final org.slf4j.Logger log
      • apiName

        protected final E extends ApiName apiName
      • methodName

        protected final String methodName
      • configuration

        protected final T configuration
      • inBody

        @UriParam(description="Sets the name of a parameter to be passed in the exchange In Body")
        protected String inBody
    • Constructor Detail

      • AbstractApiEndpoint

        public AbstractApiEndpoint​(String endpointUri,
                                   org.apache.camel.Component component,
                                   E apiName,
                                   String methodName,
                                   ApiMethodHelper<? extends ApiMethod> methodHelper,
                                   T endpointConfiguration)
    • Method Detail

      • afterConfigureProperties

        protected abstract void afterConfigureProperties()
        Initialize proxies, create server connections, etc. after endpoint properties have been configured.
      • interceptPropertyNames

        public void interceptPropertyNames​(Set<String> propertyNames)
        Description copied from interface: PropertyNamesInterceptor
        Intercept property names used to find API Method. Used to add any custom/hidden method arguments, which MUST be provided in interceptProperties() override.
        Specified by:
        interceptPropertyNames in interface PropertyNamesInterceptor
        Parameters:
        propertyNames - argument names.
      • interceptProperties

        public void interceptProperties​(Map<String,​Object> properties)
        Description copied from interface: PropertiesInterceptor
        Intercept method invocation arguments used to find and invoke API method. Can be overridden to add custom/hidden method arguments.
        Specified by:
        interceptProperties in interface PropertiesInterceptor
        Parameters:
        properties - method invocation arguments.
      • getConfiguration

        public final T getConfiguration()
        Returns endpoint configuration object. One of the generated EndpointConfiguration classes that extends component configuration class.
        Returns:
        endpoint configuration object
      • getApiName

        public final E getApiName()
        Returns API name.
        Returns:
        apiName property.
      • getMethodName

        public final String getMethodName()
        Returns method name.
        Returns:
        methodName property.
      • getMethodHelper

        public final ApiMethodHelper<? extends ApiMethod> getMethodHelper()
        Returns method helper.
        Returns:
        methodHelper property.
      • getCandidates

        public final List<ApiMethod> getCandidates()
        Returns candidate methods for this endpoint.
        Returns:
        list of candidate methods.
      • getInBody

        public final String getInBody()
        Returns name of parameter passed in the exchange In Body.
        Returns:
        inBody property.
      • getEndpointPropertyNames

        public final Set<String> getEndpointPropertyNames()
      • getEndpointProperties

        public final Map<String,​Object> getEndpointProperties()
      • getConfigurationPropertyNames

        public Set<String> getConfigurationPropertyNames()
      • getConfigurationProperties

        public final Map<String,​Object> getConfigurationProperties()
      • getThreadProfileName

        protected abstract String getThreadProfileName()
        Returns Thread profile name. Generated as a constant THREAD_PROFILE_NAME in *Constants.
        Returns:
        thread profile name to use.