Interface IPublicSyncWebSocketContext

  • All Superinterfaces:
    IPublicPromaInvocationContext, IPublicPromaInvocationContextSync

    public interface IPublicSyncWebSocketContext
    extends IPublicPromaInvocationContextSync
    A specific type of IPublicPromaInvocationContext intended UI handling code within the Java Server Faces framework. It uses web sockets to send HTTP requests via the browser. Instances of this invocation context MUST not be cached or reused, create a new instance when you need a new context.

    Furthermore, this invocation context must be created within an active Faces context, e.g. within a view bean etc. Failure to do so will result in an exception. However, the resulting invocation context can be used to handle the response of a PROMA API call result, even if that response is received within a different thread (as long as the web socket session to the user is still active, which it needs to be or no response would have been received).

    Since:
    8.0.0
    Author:
    XIMA MEDIA GmbH