public interface CookiePolicy
请参阅RFC 2965秒。3.3和7的更详细。
Modifier and Type | Field and Description |
---|---|
static CookiePolicy |
ACCEPT_ALL
接受所有饼干的一个预先定义的政策。
|
static CookiePolicy |
ACCEPT_NONE
一个预先定义的策略,它不接受任何饼干。
|
static CookiePolicy |
ACCEPT_ORIGINAL_SERVER
一个预定义的策略,只接受来自原始服务器的饼干。
|
Modifier and Type | Method and Description |
---|---|
boolean |
shouldAccept(URI uri, HttpCookie cookie)
将被调用,看看这个饼干是否应该被接受。
|
static final CookiePolicy ACCEPT_ALL
static final CookiePolicy ACCEPT_NONE
static final CookiePolicy ACCEPT_ORIGINAL_SERVER
boolean shouldAccept(URI uri, HttpCookie cookie)
uri
的URI接受政策咨询
cookie
-问题的httpcookie对象
true
如果这个饼干应该接受;否则,
false
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.