Class HTTP::CookieJar::AbstractStore
In: lib/http/cookie_jar/abstract_store.rb
Parent: Object

An abstract superclass for all store classes.

Methods

add   cleanup   clear   delete   each   empty?   implementation   initialize_copy   new  

Included Modules

MonitorMixin Enumerable

Public Class methods

Gets an implementation class by the name, optionally trying to load "http/cookie_jar/*_store" if not found. If loading fails, IndexError is raised.

Called by the constructor of each subclass using super().

Public Instance methods

Implements HTTP::CookieJar#add().

This is an abstract method that each subclass must override.

Implements HTTP::CookieJar#cleanup().

This is an abstract method that each subclass must override.

Implements HTTP::CookieJar#clear().

This is an abstract method that each subclass must override.

Implements HTTP::CookieJar#delete().

This is an abstract method that each subclass must override.

Iterates over all cookies that are not expired.

An optional argument uri specifies a URI object indicating the destination of the cookies being selected. Every cookie yielded should be good to send to the given URI, i.e. cookie.valid_for_uri?(uri) evaluates to true.

If (and only if) the uri option is given, last access time of each cookie is updated to the current time.

This is an abstract method that each subclass must override.

Implements HTTP::CookieJar#empty?().

This is an abstract method that each subclass must override.

[Validate]