IT. Expert System.

Java Standard Edition (SE)

CookiePolicy


compact1, compact2, compact3
java.net

Interface CookiePolicy



  • public interface CookiePolicy
    CookiePolicy implementations decide which cookies should be accepted and which should be rejected. Three pre-defined policy implementations are provided, namely ACCEPT_ALL, ACCEPT_NONE and ACCEPT_ORIGINAL_SERVER.

    See RFC 2965 sec. 3.3 and 7 for more detail.

    Since:
    1.6
    • Field Detail

      • ACCEPT_ALL

        static final CookiePolicy ACCEPT_ALL
        One pre-defined policy which accepts all cookies.
      • ACCEPT_NONE

        static final CookiePolicy ACCEPT_NONE
        One pre-defined policy which accepts no cookies.
      • ACCEPT_ORIGINAL_SERVER

        static final CookiePolicy ACCEPT_ORIGINAL_SERVER
        One pre-defined policy which only accepts cookies from original server.
    • Method Detail

      • shouldAccept

        boolean shouldAccept(URI uri,
                             HttpCookie cookie)
        Will be called to see whether or not this cookie should be accepted.
        Parameters:
        uri - the URI to consult accept policy with
        cookie - the HttpCookie object in question
        Returns:
        true if this cookie should be accepted; otherwise, false


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 283 / 158852285. Delta: 0.03663 с