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 creatingIUserPortalInvocationContextinstances.- Since:
- 8.2.0
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserPortalInvocationContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IUserPortalInvocationContextlive()Creates a newIUserPortalInvocationContextinstance that accesses a live user portal REST API.IUserPortalInvocationContextlive(EHttpTransportType clientType)Creates a newIUserPortalInvocationContextinstance that accesses a live user portal REST API.IUserPortalInvocationContextlive(EHttpTransportType clientType, IUserPortalRestClientConfig config, Locale locale, UserPortalRestAuthenticator authentication, UserPortalUnauthorizedHandler unauthorizedHandler)Creates a newIUserPortalInvocationContextinstance that accesses a live user portal REST API.
-
-
-
Method Detail
-
live
public IUserPortalInvocationContext 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
public IUserPortalInvocationContext live(EHttpTransportType clientType)
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.
-
-