| java.lang.Object org.apache.commons.httpclient.cookie.CookieSpecBase org.apache.commons.httpclient.cookie.RFC2109Spec
Field Summary | |
final public static String | SET_COOKIE_KEY Cookie Response Header name for cookies processed
by this spec. |
SET_COOKIE_KEY | final public static String SET_COOKIE_KEY(Code) | | Cookie Response Header name for cookies processed
by this spec.
|
RFC2109Spec | public RFC2109Spec()(Code) | | Default constructor
|
domainMatch | public boolean domainMatch(String host, String domain)(Code) | | Performs domain-match as defined by the RFC2109.
Parameters: host - The target host. Parameters: domain - The cookie domain attribute. true if the specified host matches the given domain. since: 3.0 |
formatCookie | public String formatCookie(Cookie cookie)(Code) | | Return a string suitable for sending in a "Cookie" header as
defined in RFC 2109
Parameters: cookie - a Cookie to be formatted as string a string suitable for sending in a "Cookie" header. |
formatCookies | public String formatCookies(Cookie[] cookies)(Code) | | Create a RFC 2109 compliant "Cookie" header value containing all
Cookie s in cookies suitable for sending in a "Cookie"
header
Parameters: cookies - an array of Cookies to be formatted a string suitable for sending in a Cookie header. |
validate | public void validate(String host, int port, String path, boolean secure, Cookie cookie) throws MalformedCookieException(Code) | | Performs RFC 2109 compliant
Cookie validation
Parameters: host - the host from which the Cookie was received Parameters: port - the port from which the Cookie was received Parameters: path - the path from which the Cookie was received Parameters: secure - true when the Cookie was received using asecure connection Parameters: cookie - The cookie to validate throws: MalformedCookieException - if an exception occurs duringvalidation |
Fields inherited from org.apache.commons.httpclient.cookie.CookieSpecBase | final protected static Log LOG(Code)(Java Doc)
|
Methods inherited from org.apache.commons.httpclient.cookie.CookieSpecBase | public boolean domainMatch(String host, String domain)(Code)(Java Doc) public String formatCookie(Cookie cookie)(Code)(Java Doc) public Header formatCookieHeader(Cookie[] cookies)(Code)(Java Doc) public Header formatCookieHeader(Cookie cookie)(Code)(Java Doc) public String formatCookies(Cookie[] cookies) throws IllegalArgumentException(Code)(Java Doc) public Collection getValidDateFormats()(Code)(Java Doc) public boolean match(String host, int port, String path, boolean secure, Cookie cookie)(Code)(Java Doc) public Cookie[] match(String host, int port, String path, boolean secure, Cookie cookies)(Code)(Java Doc) public Cookie[] parse(String host, int port, String path, boolean secure, String header) throws MalformedCookieException(Code)(Java Doc) public Cookie[] parse(String host, int port, String path, boolean secure, Header header) throws MalformedCookieException(Code)(Java Doc) public void parseAttribute(NameValuePair attribute, Cookie cookie) throws MalformedCookieException(Code)(Java Doc) public boolean pathMatch(String path, String topmostPath)(Code)(Java Doc) public void setValidDateFormats(Collection datepatterns)(Code)(Java Doc) public void validate(String host, int port, String path, boolean secure, Cookie cookie) throws MalformedCookieException(Code)(Java Doc)
|
|
|