Interface Cookies

All Superinterfaces:
io.micronaut.core.convert.ConversionServiceProvider, io.micronaut.core.convert.value.ConvertibleValues<Cookie>, Iterable<Map.Entry<String,Cookie>>, io.micronaut.core.value.ValueResolver<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

    Modifier and Type
    Method
    Description
    Find a Cookie for the given name.
    default Cookie
    Get a cookie by name or return null.
     
    default Set<String>
     

    Methods inherited from interface io.micronaut.core.convert.value.ConvertibleValues

    asMap, asMap, asProperties, contains, forEach, getConversionService, 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 Details

    • getAll

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

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

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

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