Interface EndpointInstance

  • All Known Subinterfaces:
    WebAppEndpointInstance
    All Known Implementing Classes:
    AbstractEndpoint, AbstractWebEndpoint

    public interface EndpointInstance
    Generic endpoint instance. Implementations must persist/load only the custom settings using the JsonSerializable interface; authenticators, id, and description are always set via initialize method. Lifecycle:
    1. initialize (once)
    2. operation....
    3. destroy (once)
    Destroy might be called also before initialize if there was server deployment error.
    Author:
    K. Benedyczak
    • Method Detail

      • initialize

        void initialize​(ResolvedEndpoint endpointDescription,
                        List<AuthenticationFlow> authenticatonOptions,
                        String serializedConfiguration)
        Parameters:
        endpointDescription - most of the endpoint's settings
        authenticatonOptions - authenticator instances for the endpoint.
        serializedConfiguration - endpoint specific configuration (as returned by getSerializedConfiguration().
      • getAuthenticationFlows

        List<AuthenticationFlow> getAuthenticationFlows()
        Returns:
        the current list of previously configured authentication flows (with initialize).
      • getSerializedConfiguration

        String getSerializedConfiguration()
        Returns:
        serialized representation of the endpoint configuration/state
      • start

        void start()
            throws EngineException
        Starts the endpoint. After this method returns the endpoint should be made available for usage.
        Throws:
        EngineException