All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.commercetools.sunrise.sessions.country.CountryInSession Maven / Gradle / Ivy

The newest version!
package com.commercetools.sunrise.sessions.country;

import com.commercetools.sunrise.sessions.ResourceStoringOperations;
import com.google.inject.ImplementedBy;
import com.neovisionaries.i18n.CountryCode;

import javax.annotation.Nullable;
import java.util.Optional;

/**
 * Keeps the current country in session.
 */
@ImplementedBy(DefaultCountryInSession.class)
public interface CountryInSession extends ResourceStoringOperations {

    Optional findCountry();

    @Override
    void store(@Nullable final CountryCode countryCode);

    @Override
    void remove();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy