public class CookieManager extends BaseTable
Field | Type | Description |
---|---|---|
sequencekey | VARCHAR(255) | |
ordinal | BIGINT | |
domainspecified | CHAR(1) | |
domain | LONGTEXT | |
name | LONGTEXT | |
value | LONGTEXT | |
pathspecified | CHAR(1) | |
path | LONGTEXT | |
versionspecified | CHAR(1) | |
version | BIGINT | |
comment | LONGTEXT | |
secure | CHAR(1) | |
expirationdate | BIGINT | |
discard | CHAR(1) | |
commenturl | LONGTEXT | |
portblank | CHAR(1) | |
portspecified | CHAR(1) | |
ports | LONGTEXT |
Modifier and Type | Class and Description |
---|---|
protected static class |
CookieManager.CookiesCacheClass
Cache class for robots.
|
protected static class |
CookieManager.CookiesDescription
This is the object description for a session key object.
|
protected static class |
CookieManager.CookiesExecutor
This is the executor object for locating cookies session objects.
|
protected static class |
CookieManager.DynamicCookieSet
This is a set of cookies, built dynamically.
|
Modifier and Type | Field and Description |
---|---|
static String |
_rcsid |
protected static String |
commentField |
protected static String |
commentURLField |
protected static CookieManager.CookiesCacheClass |
cookiesCacheClass |
protected static String |
discardField |
protected static String |
domainField |
protected static String |
domainSpecifiedField |
protected static String |
expirationDateField |
protected static String |
keyField |
protected static String |
nameField |
protected static String |
ordinalField |
protected static String |
pathField |
protected static String |
pathSpecifiedField |
protected static String |
portBlankField |
protected static String |
portField |
protected static String |
portSpecifiedField |
protected static String |
secureField |
protected static String |
valueField |
protected static String |
versionField |
protected static String |
versionSpecifiedField |
dbInterface, tableName
Constructor and Description |
---|
CookieManager(IThreadContext tc,
IDBInterface database)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static String |
booleanToString(boolean value)
Convert a boolean to a boolean string.
|
void |
deinstall()
Uninstall the manager.
|
protected static String |
getCookiesCacheKey(String sessionKey)
Construct a global key which represents an individual session.
|
void |
install()
Install the manager.
|
protected static String |
portsToString(int[] ports)
Convert a port array to a string.
|
LoginCookies |
readCookies(String sessionKey)
Read cookies currently in effect for a given session key.
|
protected LoginCookies |
readCookiesUncached(String sessionKey)
Read cookies from database, uncached.
|
protected static boolean |
stringToBoolean(String value)
Convert a boolean string to a boolean.
|
protected static int[] |
stringToPorts(String value)
Convert a string to a port array.
|
void |
updateCookies(String sessionKey,
LoginCookies cookies)
Update cookes that are in effect for a given session key.
|
addTableIndex, analyzeTable, beginTransaction, buildConjunctionClause, constructCountClause, constructDistinctOnClause, constructDoubleCastClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, findConjunctionClauseMax, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getSleepAmt, getTableIndexes, getTableName, getTableSchema, getTransactionID, getWindowedReportMaxRows, makeTableKey, noteModifications, performAddIndex, performAlter, performCommit, performCreate, performDelete, performDrop, performInsert, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback, sleepFor
public static final String _rcsid
protected static CookieManager.CookiesCacheClass cookiesCacheClass
protected static final String keyField
protected static final String ordinalField
protected static final String domainSpecifiedField
protected static final String domainField
protected static final String nameField
protected static final String valueField
protected static final String pathSpecifiedField
protected static final String pathField
protected static final String versionSpecifiedField
protected static final String versionField
protected static final String commentField
protected static final String secureField
protected static final String expirationDateField
protected static final String discardField
protected static final String commentURLField
protected static final String portBlankField
protected static final String portSpecifiedField
protected static final String portField
public CookieManager(IThreadContext tc, IDBInterface database) throws ManifoldCFException
tc
- is the thread context.database
- is the database handle.ManifoldCFException
public void install() throws ManifoldCFException
ManifoldCFException
public void deinstall() throws ManifoldCFException
ManifoldCFException
public LoginCookies readCookies(String sessionKey) throws ManifoldCFException
sessionKey
- is the session key.ManifoldCFException
public void updateCookies(String sessionKey, LoginCookies cookies) throws ManifoldCFException
sessionKey
- is the session key.cookies
- are the cookies to write into the database.ManifoldCFException
protected static String getCookiesCacheKey(String sessionKey)
sessionKey
- is the session key.protected LoginCookies readCookiesUncached(String sessionKey) throws ManifoldCFException
sessionKey
- is the session key.ManifoldCFException
protected static boolean stringToBoolean(String value) throws ManifoldCFException
ManifoldCFException
protected static String booleanToString(boolean value)
protected static int[] stringToPorts(String value) throws ManifoldCFException
ManifoldCFException
protected static String portsToString(int[] ports)