GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.handler.codec.http.cookie
  • ServerCookieDecoder

This view

  • Original page
  • New address

GeezerVison is showing netty.io — ServerCookieDecoder (Netty API Reference (4.1.141.Final))

Class ServerCookieDecoder

java.lang.Object
io.netty.handler.codec.http.cookie.CookieDecoder
io.netty.handler.codec.http.cookie.ServerCookieDecoder

public final class ServerCookieDecoder extends CookieDecoder
A RFC6265 compliant cookie decoder to be used server side. Only name and value fields are expected, so old fields are not populated (path, domain, etc). Old RFC2965 cookies are still supported, old fields will simply be ignored.
See Also:
  • ServerCookieEncoder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ServerCookieDecoder
    LAX
    Lax instance that doesn't validate name and value
    static final ServerCookieDecoder
    STRICT
    Strict decoder that validates that name and value chars are in the valid scope defined in RFC6265
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<Cookie>
    decode(String header)
    Decodes the specified Cookie HTTP header value into a Cookie.
    List<Cookie>
    decodeAll(String header)
    Decodes the specified Cookie HTTP header value into a Cookie.

    Methods inherited from class CookieDecoder

    initCookie
    Modifier and Type
    Method
    Description
    protected DefaultCookie
    initCookie(String header, int nameBegin, int nameEnd, int valueBegin, int valueEnd)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • STRICT

      public static final ServerCookieDecoder STRICT
      Strict decoder that validates that name and value chars are in the valid scope defined in RFC6265
    • LAX

      public static final ServerCookieDecoder LAX
      Lax instance that doesn't validate name and value
  • Method Details

    • decodeAll

      public List<Cookie> decodeAll(String header)
      Decodes the specified Cookie HTTP header value into a Cookie. Unlike decode(String), this includes all cookie values present, even if they have the same name.
      Returns:
      the decoded Cookie
    • decode

      public Set<Cookie> decode(String header)
      Decodes the specified Cookie HTTP header value into a Cookie.
      Returns:
      the decoded Cookie
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.