Class DefaultServletCookies

java.lang.Object
io.micronaut.servlet.engine.DefaultServletCookies
All Implemented Interfaces:
io.micronaut.core.convert.ConversionServiceProvider, io.micronaut.core.convert.value.ConvertibleValues<io.micronaut.http.cookie.Cookie>, io.micronaut.core.value.ValueResolver<CharSequence>, io.micronaut.http.cookie.Cookies, Iterable<Map.Entry<String,io.micronaut.http.cookie.Cookie>>

public class DefaultServletCookies extends Object implements io.micronaut.http.cookie.Cookies
Implementation of Cookies ontop of the Servlet API.
Since:
1.0.0
Author:
graemerocher
  • Field Summary

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

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultServletCookies(jakarta.servlet.http.Cookie[] cookies)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<io.micronaut.http.cookie.Cookie>
     
    <T> Optional<T>
    get(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext)
     
    <T> Optional<T>
    get(CharSequence name, Class<T> requiredType)
     
    Set<io.micronaut.http.cookie.Cookie>
     
    Collection<io.micronaut.http.cookie.Cookie>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    asMap, asMap, asProperties, contains, forEach, getConversionService, getValue, getValueType, isEmpty, iterator, subMap, subMap, subMap

    Methods inherited from interface io.micronaut.http.cookie.Cookies

    get, names

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface io.micronaut.core.value.ValueResolver

    get, get
  • Constructor Details

    • DefaultServletCookies

      public DefaultServletCookies(jakarta.servlet.http.Cookie[] cookies)
      Default constructor.
      Parameters:
      cookies - The cookies
  • Method Details

    • getAll

      public Set<io.micronaut.http.cookie.Cookie> getAll()
      Specified by:
      getAll in interface io.micronaut.http.cookie.Cookies
    • findCookie

      public Optional<io.micronaut.http.cookie.Cookie> findCookie(CharSequence name)
      Specified by:
      findCookie in interface io.micronaut.http.cookie.Cookies
    • values

      public Collection<io.micronaut.http.cookie.Cookie> values()
      Specified by:
      values in interface io.micronaut.core.convert.value.ConvertibleValues<io.micronaut.http.cookie.Cookie>
    • get

      public <T> Optional<T> get(CharSequence name, Class<T> requiredType)
      Specified by:
      get in interface io.micronaut.core.value.ValueResolver<CharSequence>
    • get

      public <T> Optional<T> get(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext)
      Specified by:
      get in interface io.micronaut.core.value.ValueResolver<CharSequence>