Class UserPortalInvocationContextFactory
java.lang.Object
de.xima.fc.user_portal.api.context.UserPortalInvocationContextFactory
- All Implemented Interfaces:
Serializable
@SessionScoped
public class UserPortalInvocationContextFactory
extends Object
implements Serializable
Factory for creating
IUserPortalInvocationContext instances.- Since:
- 8.2.0
- Author:
- XIMA Media GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlive()Creates a newIUserPortalInvocationContextinstance that accesses a live user portal REST API.live(EHttpTransportType clientType) Creates a newIUserPortalInvocationContextinstance that accesses a live user portal REST API.live(EHttpTransportType clientType, IUserPortalRestClientConfig config, Locale locale, UserPortalRestAuthenticator authentication, UserPortalUnauthorizedHandler unauthorizedHandler) Creates a newIUserPortalInvocationContextinstance that accesses a live user portal REST API.
-
Constructor Details
-
UserPortalInvocationContextFactory
public UserPortalInvocationContextFactory()
-
-
Method Details
-
live
Creates a newIUserPortalInvocationContextinstance that accesses a live user portal REST API. It makes uses of the default client and the default configuration, seeUserPortalRestConfigManager, as well as the authentication for the current user, if any.- Returns:
- A new
IUserPortalInvocationContextinstance.
-
live
Creates a newIUserPortalInvocationContextinstance that accesses a live user portal REST API. It makes uses of the default configuration, seeUserPortalRestConfigManager.- Parameters:
clientType- Type of the HTTP client.- Returns:
- A new
IUserPortalInvocationContextinstance.
-
live
public IUserPortalInvocationContext live(EHttpTransportType clientType, IUserPortalRestClientConfig config, Locale locale, UserPortalRestAuthenticator authentication, UserPortalUnauthorizedHandler unauthorizedHandler) Creates a newIUserPortalInvocationContextinstance that accesses a live user portal REST API. It makes uses of the given configuration.- Parameters:
clientType- Type of the HTTP client.config- Configuration for the REST client.locale- Locale to use for the request.authentication- Optional authentication applied to all REST requests.unauthorizedHandler- Handler for unauthorized requests.- Returns:
- A new
IUserPortalInvocationContextinstance.
-