Вы находитесь на странице: 1из 3

OVERVIEW PACKAGE CLASS TREE DEPRECATED INDEX HELP

PREV CLASS NEXT CLASS FRAMES NO FRAMES ALL CLASSES


SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

jakarta.servlet
Interface UAhttpCookie

All Known Implementing Classes:


UserAgentServedHTTPCookieManager

public interface UAhttpCookie

( Written by Mr Samuel A Marhant , nicephotog@gmail.com , nicephotog@yahoo.com.au Sydney NSW Australia, Saturday, 21-Nov-20
19:00:39 GMT )
This Interface belongs to class UserAgentServedHTTPCookieManager. It is obtained through Interface RamHttpTools using method
getUAClientCookieManager().
UserAgentServedHTTPCookieManager contains a persistent storage HashTable array for these cookies.
When a cookie is created it is placed onto the HashTable persistent array with its "name" as the Key for the array element.

Method Summary

All Methods Instance Methods Abstract Methods


Modifier and Type Method and Description
boolean createNewHTTPCookie(java.lang.String cookieName)

Constructs and returns a cookie object with none of the parameters set. With the "method used" to
create it a "name" that will also be the cookie name attribute-value is supplied for the HashTable key
and placed into the HashTable array.
This method returns boolean false on success.

boolean createNewHTTPCookie(java.lang.String NamE, java.lang.String ValuE,


java.lang.String samesite)
Constructs a cookie with name , value , and SamSite attribute values set. With the "method used" to
create it a "name" that will also be the cookie name attribute-value is supplied for the HashTable key
and placed into the HashTable array.
This method returns boolean false on success.

boolean createNewHTTPCookie(java.lang.String NamE, java.lang.String ValuE,


java.lang.String samesite, java.lang.String expires)
Constructs a cookie with Name , Value , SamSite and Expires attribute values set. With the "method
used" to create it a "name" that will also be the cookie name attribute-value is supplied for the
HashTable key and placed into the HashTable array.
This method returns boolean false on success.

boolean createNewHTTPCookie(java.lang.String NamE, java.lang.String ValuE,


java.lang.String samesite, java.lang.String maxage, java.lang.String path)
Constructs a cookie with name , value , SamSite , Max-Age and Path attribute values set. With the
"method used" to create it a "name" that will also be the cookie name attribute-value is supplied for the
HashTable key and placed into the HashTable array.
This method returns boolean false on success.

java.util.Enumeration getkeysForHttpCookieArray()

Returns an Enumeration with the HashTable array's keys from this interface implementing class
UserAgentServedHTTPCookieManager.

int getStoredCookieArraySize()

Returns the number of entries in the HashTable array in th UserAgentServedHTTPCookieManager.


UserAgentServedHTTPCookie getStoredHttpCookie(java.lang.String keyItemname)

Returns a UserAgentServedHTTPCookie from the storage HashTable in


UserAgentServedHTTPCookieManager class.

boolean isCookieKeyNamePresent(java.lang.String keyItemname)

Tests whether the name of a cookie is present as key to the HashTable array element in the manager
class.

void putStoredHttpCookie(java.lang.String keyItemname,


UserAgentServedHTTPCookie storedvalue)

Stores a cookie onto the HashTable persistant storage array in class


UserAgentServedHTTPCookieManager.

void removeStoredHttpCookie(java.lang.String keyItemname)

Deletes an entry from the HashTable array in its implementing storage class
UserAgentServedHTTPCookieManager.

void replaceStoredHttpCookie(java.lang.String keyItemname,


UserAgentServedHTTPCookie storedvalue)

Replaces a cookie object on the HashTable array.

Method Detail

createNewHTTPCookie

boolean createNewHTTPCookie(java.lang.String cookieName)

createNewHTTPCookie

boolean createNewHTTPCookie(java.lang.String NamE,


java.lang.String ValuE,
java.lang.String samesite)

createNewHTTPCookie

boolean createNewHTTPCookie(java.lang.String NamE,


java.lang.String ValuE,
java.lang.String samesite,
java.lang.String expires)

createNewHTTPCookie

boolean createNewHTTPCookie(java.lang.String NamE,


java.lang.String ValuE,
java.lang.String samesite,
java.lang.String maxage,
java.lang.String path)

getStoredHttpCookie

UserAgentServedHTTPCookie getStoredHttpCookie(java.lang.String keyItemname)

putStoredHttpCookie

void putStoredHttpCookie(java.lang.String keyItemname,


UserAgentServedHTTPCookie storedvalue)

replaceStoredHttpCookie

void replaceStoredHttpCookie(java.lang.String keyItemname,


UserAgentServedHTTPCookie storedvalue)

removeStoredHttpCookie

void removeStoredHttpCookie(java.lang.String keyItemname)

getkeysForHttpCookieArray

java.util.Enumeration getkeysForHttpCookieArray()

getStoredCookieArraySize

int getStoredCookieArraySize()

isCookieKeyNamePresent

boolean isCookieKeyNamePresent(java.lang.String keyItemname)

OVERVIEW PACKAGE CLASS TREE DEPRECATED INDEX HELP

PREV CLASS NEXT CLASS FRAMES NO FRAMES ALL CLASSES


SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Вам также может понравиться