InboundMessageType - OutboundMessageType - public class LoadClientStorageServices<InboundMessageType,OutboundMessageType> extends AbstractProfileAction<InboundMessageType,OutboundMessageType>
ClientStorageService instances from a POST submission
or cookies as applicable.| Modifier and Type | Field and Description |
|---|---|
private ClientStorageLoadContext |
clientStorageLoadCtx
Context to drive storage load.
|
static String |
EXCEPTION_FORM_FIELD
Name of local storage form field containing value read.
|
private Logger |
log
Class logger.
|
private Map<String,ClientStorageService> |
storageServices
The storage service instances to load.
|
static String |
SUCCESS_FORM_FIELD
Name of local storage form field signaling success/failure of a read operation.
|
static String |
SUPPORT_FORM_FIELD
Name of local storage form field containing local storage support indicator.
|
private boolean |
useLocalStorage
Whether to allow for data loaded from local storage and submitted via POST.
|
static String |
VALUE_FORM_FIELD
Name of local storage form field containing value read.
|
| Constructor and Description |
|---|
LoadClientStorageServices()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext) |
protected boolean |
doPreExecute(ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext) |
private void |
loadFromCookie(ClientStorageService storageService,
ClientStorageService.ClientStorageSource source)
Load the specified storage service from a cookie.
|
private void |
loadFromLocalStorage(ClientStorageService storageService)
Load the specified storage service from local storage data supplied in the POST.
|
void |
setStorageServices(Collection<ClientStorageService> services)
Set the
ClientStorageService instances to check for loading. |
void |
setUseLocalStorage(boolean flag)
Set whether to allow for data loaded from local storage and submitted via POST.
|
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized@Nonnull @NotEmpty public static final String SUPPORT_FORM_FIELD
@Nonnull @NotEmpty public static final String SUCCESS_FORM_FIELD
@Nonnull @NotEmpty public static final String VALUE_FORM_FIELD
@Nonnull @NotEmpty public static final String EXCEPTION_FORM_FIELD
private boolean useLocalStorage
@Nonnull @NonnullElements private Map<String,ClientStorageService> storageServices
@Nullable private ClientStorageLoadContext clientStorageLoadCtx
public void setUseLocalStorage(boolean flag)
flag - flag to setpublic void setStorageServices(@Nonnull@NonnullElements Collection<ClientStorageService> services)
ClientStorageService instances to check for loading.services - instances to check for loadingprotected boolean doPreExecute(@Nonnull ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext)
doPreExecute in class AbstractProfileAction<InboundMessageType,OutboundMessageType>protected void doExecute(@Nonnull ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext)
doExecute in class AbstractProfileAction<InboundMessageType,OutboundMessageType>private void loadFromCookie(@Nonnull ClientStorageService storageService, @Nonnull ClientStorageService.ClientStorageSource source)
storageService - service to loadsource - source to apply to load operationprivate void loadFromLocalStorage(@Nonnull ClientStorageService storageService)
storageService - service to loadCopyright © 1999–2016 Shibboleth Consortium. All rights reserved.