public class NSHTTPCookieStorage extends NSObject
| Modifier and Type | Method and Description |
|---|---|
int |
cookieAcceptPolicy()
Returns the cookie accept policy of the NSHTTPCookieStorage.
|
List<NSHTTPCookie> |
cookies()
Returns a list with the stored cookies.
|
List<NSHTTPCookie> |
cookiesForURL(NSURL url)
Returns the list with the stored cookies for the specified URL.
|
void |
deleteCookie(NSHTTPCookie cookie)
Deletes the specified cookie from the NSHTTPCookieStorage.
|
void |
setCookie(NSHTTPCookie cookie)
Stores the specified cookie to the NSHTTPCookieStorage.
|
void |
setCookieAcceptPolicy(int cookieAcceptPolicy)
Sets the cookie accept policy for the NSHTTPCookieStorage.
|
void |
setCookies(List<NSHTTPCookie> cookies,
NSURL url,
NSURL mainDocumentURL)
Add a list of cookies of a URL to the NSHTTPCookieStorage.
|
static NSHTTPCookieStorage |
sharedHTTPCookieStorage()
Returns the shared NSHTTPCookieStorage instance.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKeypublic static NSHTTPCookieStorage sharedHTTPCookieStorage()
public int cookieAcceptPolicy()
NSHTTPCookieAcceptPolicypublic void setCookieAcceptPolicy(int cookieAcceptPolicy)
cookieAcceptPolicy - The cookie accept policy of the
NSHTTPCookieStorage.NSHTTPCookieAcceptPolicypublic void deleteCookie(NSHTTPCookie cookie)
cookie - The cookie to be deleted from the NSHTTPCookieStorage.public void setCookie(NSHTTPCookie cookie)
cookie - The cookie to be added to the NSHTTPCookieStorage.public void setCookies(List<NSHTTPCookie> cookies, NSURL url, NSURL mainDocumentURL)
cookies - The list of cookies to be added.url - The URL of the cookies.mainDocumentURL - The URL of the main HTML document.public List<NSHTTPCookie> cookies()
public List<NSHTTPCookie> cookiesForURL(NSURL url)
url - The URL for which the stored cookies are requested.Copyright © 2020. All rights reserved.