Interface Cookies

  • All Superinterfaces:
    io.micronaut.core.convert.value.ConvertibleValues<Cookie>, java.lang.Iterable<java.util.Map.Entry<java.lang.String,​Cookie>>, io.micronaut.core.value.ValueResolver<java.lang.CharSequence>
    All Known Implementing Classes:
    SimpleCookies

    public interface Cookies
    extends io.micronaut.core.convert.value.ConvertibleValues<Cookie>
    Models the defined Cookie instances in an application.
    Since:
    1.0
    • Field Summary

      • Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues

        EMPTY
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.util.Optional<Cookie> findCookie​(java.lang.CharSequence name)
      Find a Cookie for the given name.
      default Cookie get​(java.lang.CharSequence name)
      Get a cookie by name or return null.
      java.util.Set<Cookie> getAll()  
      default java.util.Set<java.lang.String> names()  
      • Methods inherited from interface io.micronaut.core.convert.value.ConvertibleValues

        asMap, asMap, asProperties, contains, forEach, getValue, getValueType, isEmpty, iterator, subMap, subMap, subMap, values
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface io.micronaut.core.value.ValueResolver

        get, get, get, get
    • Method Detail

      • getAll

        java.util.Set<Cookie> getAll()
        Returns:
        A set of the cookies
      • findCookie

        java.util.Optional<Cookie> findCookie​(java.lang.CharSequence name)
        Find a Cookie for the given name.
        Parameters:
        name - The cookie
        Returns:
        An Optional cookie
      • get

        default Cookie get​(java.lang.CharSequence name)
        Get a cookie by name or return null.
        Parameters:
        name - The name of the cookie
        Returns:
        The Cookie instance
      • names

        default java.util.Set<java.lang.String> names()
        Specified by:
        names in interface io.micronaut.core.convert.value.ConvertibleValues<Cookie>