Package org.opensaml.storage.impl.client
Class XMLClientStorageServiceStore
- java.lang.Object
-
- org.opensaml.storage.impl.client.AbstractClientStorageServiceStore
-
- org.opensaml.storage.impl.client.XMLClientStorageServiceStore
-
- All Implemented Interfaces:
ClientStorageServiceStore
public class XMLClientStorageServiceStore extends AbstractClientStorageServiceStore
XML-based storage forClientStorageService.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXMLClientStorageServiceStore.XMLClientStorageServiceStoreFactoryFactory for XML-backed store.-
Nested classes/interfaces inherited from interface org.opensaml.storage.impl.client.ClientStorageServiceStore
ClientStorageServiceStore.Factory
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private ParserPoolparserPoolParser machinery.
-
Constructor Summary
Constructors Constructor Description XMLClientStorageServiceStore(ParserPool pool)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoLoad(String raw)Reconstitute stored data.ClientStorageServiceOperationsave(ClientStorageService storageService)Serialize current state of stored data into a storage operation.-
Methods inherited from class org.opensaml.storage.impl.client.AbstractClientStorageServiceStore
getContextMap, getSource, isDirty, load, setDirty
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
parserPool
@Nonnull private final ParserPool parserPool
Parser machinery.
-
-
Constructor Detail
-
XMLClientStorageServiceStore
public XMLClientStorageServiceStore(@Nonnull ParserPool pool)Constructor.- Parameters:
pool-ParserPoolto use
-
-
Method Detail
-
doLoad
public void doLoad(@Nullable @NotEmpty String raw) throws IOException
Reconstitute stored data.- Specified by:
doLoadin classAbstractClientStorageServiceStore- Parameters:
raw- serialized data to load- Throws:
IOException- if an error occurs
-
save
@Nullable public ClientStorageServiceOperation save(@Nonnull ClientStorageService storageService) throws IOException
Serialize current state of stored data into a storage operation.- Specified by:
savein interfaceClientStorageServiceStore- Specified by:
savein classAbstractClientStorageServiceStore- Parameters:
storageService- storage service- Returns:
- the operation, or a null if the data has not been modified since loading or saving
- Throws:
IOException- if an error occurs
-
-