Class CookieSpecRegistry

  • All Implemented Interfaces:
    Lookup<CookieSpecProvider>

    @Contract(threading=SAFE)
    @Deprecated
    public final class CookieSpecRegistry
    extends java.lang.Object
    implements Lookup<CookieSpecProvider>
    Deprecated.
    (4.3) use Registry.
    Cookie specification registry that can be used to obtain the corresponding cookie specification implementation for a given type of type or version of cookie.
    Since:
    4.0
    • Constructor Detail

      • CookieSpecRegistry

        public CookieSpecRegistry()
        Deprecated.
    • Method Detail

      • unregister

        public void unregister​(java.lang.String id)
        Deprecated.
        Unregisters the CookieSpecFactory with the given ID.
        Parameters:
        id - the identifier of the cookie specification to unregister
      • getCookieSpec

        public CookieSpec getCookieSpec​(java.lang.String name)
                                 throws java.lang.IllegalStateException
        Deprecated.
        Gets the cookie specification with the given name.
        Parameters:
        name - the cookie specification identifier
        Returns:
        cookie specification
        Throws:
        java.lang.IllegalStateException - if a policy with the given name cannot be found
      • getSpecNames

        public java.util.List<java.lang.String> getSpecNames()
        Deprecated.
        Obtains a list containing the names of all registered cookie specs. Note that the DEFAULT policy (if present) is likely to be the same as one of the other policies, but does not have to be.
        Returns:
        list of registered cookie spec names
      • setItems

        public void setItems​(java.util.Map<java.lang.String,​CookieSpecFactory> map)
        Deprecated.
        Populates the internal collection of registered cookie specs with the content of the map passed as a parameter.
        Parameters:
        map - cookie specs