org.apache.commons.httpclient.cookie

Class IgnoreCookiesSpec

public class IgnoreCookiesSpec extends Object implements CookieSpec

A cookie spec that does nothing. Cookies are neither parsed, formatted nor matched. It can be used to effectively disable cookies altogether.

Since: 3.0

Constructor Summary
IgnoreCookiesSpec()
Method Summary
booleandomainMatch(String host, String domain)
StringformatCookie(Cookie cookie)
HeaderformatCookieHeader(Cookie cookie)
HeaderformatCookieHeader(Cookie[] cookies)
StringformatCookies(Cookie[] cookies)
CollectiongetValidDateFormats()
booleanmatch(String host, int port, String path, boolean secure, Cookie cookie)
Cookie[]match(String host, int port, String path, boolean secure, Cookie[] cookies)
Returns an empty {@link Cookie cookie} array.
Cookie[]parse(String host, int port, String path, boolean secure, String header)
Returns an empty {@link Cookie cookie} array.
Cookie[]parse(String host, int port, String path, boolean secure, Header header)
Returns an empty {@link Cookie cookie} array.
voidparseAttribute(NameValuePair attribute, Cookie cookie)
Does nothing.
booleanpathMatch(String path, String topmostPath)
voidsetValidDateFormats(Collection datepatterns)
Does nothing.
voidvalidate(String host, int port, String path, boolean secure, Cookie cookie)
Does nothing.

Constructor Detail

IgnoreCookiesSpec

public IgnoreCookiesSpec()

Method Detail

domainMatch

public boolean domainMatch(String host, String domain)

Returns: false

formatCookie

public String formatCookie(Cookie cookie)

Returns: null

formatCookieHeader

public Header formatCookieHeader(Cookie cookie)

Returns: null

formatCookieHeader

public Header formatCookieHeader(Cookie[] cookies)

Returns: null

formatCookies

public String formatCookies(Cookie[] cookies)

Returns: null

getValidDateFormats

public Collection getValidDateFormats()

Returns: null

match

public boolean match(String host, int port, String path, boolean secure, Cookie cookie)

Returns: false

match

public Cookie[] match(String host, int port, String path, boolean secure, Cookie[] cookies)
Returns an empty {@link Cookie cookie} array. All parameters are ignored.

parse

public Cookie[] parse(String host, int port, String path, boolean secure, String header)
Returns an empty {@link Cookie cookie} array. All parameters are ignored.

parse

public Cookie[] parse(String host, int port, String path, boolean secure, Header header)
Returns an empty {@link Cookie cookie} array. All parameters are ignored.

parseAttribute

public void parseAttribute(NameValuePair attribute, Cookie cookie)
Does nothing.

pathMatch

public boolean pathMatch(String path, String topmostPath)

Returns: false

setValidDateFormats

public void setValidDateFormats(Collection datepatterns)
Does nothing.

validate

public void validate(String host, int port, String path, boolean secure, Cookie cookie)
Does nothing.
Copyright (c) 1999-2005 - Apache Software Foundation