
io.unmock.core.persistence.Persistence Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core functions with which one can build an unmock java integration
The newest version!
package io.unmock.core.persistence;
import io.unmock.core.PersistableData;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Map;
public interface Persistence {
void saveHeaders(@NotNull String hash, @NotNull Map headers);
void saveBody(@NotNull String hash, @NotNull String body);
void saveAuth(@NotNull String auth);
void saveToken(@NotNull String token);
void saveMetadata(@NotNull String hash, @NotNull PersistableData data);
@Nullable Map loadHeaders(@NotNull String hash);
@Nullable String loadBody(@NotNull String hash);
@Nullable String loadAuth();
@Nullable String loadToken();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy