Package de.xima.fc.proma
Class RequestPromaContexts
java.lang.Object
de.xima.fc.proma.RequestPromaContexts
Factory for
IPublicPromaInvocationContexts. Similar to RequestEntityContext. The factory methods must
be called within an active Faces context, but can then be used outside of the UI thread.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic IPublicAsyncWebSocketContextstatic IPublicAsyncWebSocketContextpublicWebSocketAsync(IUser user) static IPublicAsyncWebSocketContextpublicWebSocketAsync(IUser user, de.xima.ximahttp.jakarta_faces.api.IContextualExecutor executor) static IPublicAsyncWebSocketContextstatic IPublicAsyncWebSocketContextpublicWebSocketAsync(UserContext uc, de.xima.ximahttp.jakarta_faces.api.IContextualExecutor executor) static IPublicSyncWebSocketContextstatic IPublicSyncWebSocketContextpublicWebSocketSync(IUser user) static IPublicSyncWebSocketContextpublicWebSocketSync(IUser user, de.xima.ximahttp.jakarta_faces.api.IContextualExecutor executor) static IPublicSyncWebSocketContextstatic IPublicSyncWebSocketContextpublicWebSocketSync(UserContext uc, de.xima.ximahttp.jakarta_faces.api.IContextualExecutor executor)
-
Method Details
-
publicWebSocketAsync
- Returns:
- A new web socket sync invocation context with the appropriate settings for the current context.
-
publicWebSocketAsync
- Parameters:
user- The user who initiated the interaction with the PROMA API.- Returns:
- A new web socket sync invocation context with the appropriate settings for the current context, plus the given user.
-
publicWebSocketAsync
- Parameters:
uc- User context of the user who initiated the interaction with the PROMA API.- Returns:
- A new web socket sync invocation context with the appropriate settings for the current context, plus the given user context
-
publicWebSocketAsync
public static IPublicAsyncWebSocketContext publicWebSocketAsync(IUser user, de.xima.ximahttp.jakarta_faces.api.IContextualExecutor executor) - Parameters:
user- User who initiated the interaction with the PROMA API.executor- Optional executor, when not set, defaults toFacesHttp.facesExecutor().- Returns:
- A new web socket sync invocation context with the appropriate settings for the current context, plus the given user and executor.
-
publicWebSocketAsync
public static IPublicAsyncWebSocketContext publicWebSocketAsync(UserContext uc, de.xima.ximahttp.jakarta_faces.api.IContextualExecutor executor) - Parameters:
uc- User context of the user who initiated the interaction with the PROMA API.executor- Optional executor, when not set, defaults toFacesHttp.facesExecutor().- Returns:
- A new web socket sync invocation context with the appropriate settings for the current context, plus the given user context and executor
-
publicWebSocketSync
- Returns:
- A new web socket sync invocation context with the appropriate settings for the current context.
-
publicWebSocketSync
- Parameters:
user- The user who initiated the interaction with the PROMA API.- Returns:
- A new web socket sync invocation context with the appropriate settings for the current context, plus the given user.
-
publicWebSocketSync
- Parameters:
uc- User context of the user who initiated the interaction with the PROMA API.- Returns:
- A new web socket sync invocation context with the appropriate settings for the current context, plus the given user context.
-
publicWebSocketSync
public static IPublicSyncWebSocketContext publicWebSocketSync(IUser user, de.xima.ximahttp.jakarta_faces.api.IContextualExecutor executor) - Parameters:
user- The user who initiated the interaction with the PROMA API.executor- Optional executor, when not set, defaults toFacesHttp.webSocketContextExecutor().- Returns:
- A new web socket sync invocation context with the appropriate settings for the current context, plus the given user and executor.
-
publicWebSocketSync
public static IPublicSyncWebSocketContext publicWebSocketSync(UserContext uc, de.xima.ximahttp.jakarta_faces.api.IContextualExecutor executor) - Parameters:
uc- User context of the user who initiated the interaction with the PROMA API.executor- Optional executor, when not set, defaults toFacesHttp.webSocketContextExecutor().- Returns:
- A new web socket sync invocation context with the appropriate settings for the current context, plus the given user context and executor.
-