org.apache.http.impl.cookie
Class RFC2965VersionAttributeHandlerHC4

java.lang.Object
  extended by org.apache.http.impl.cookie.RFC2965VersionAttributeHandlerHC4
All Implemented Interfaces:
org.apache.http.cookie.CookieAttributeHandler

@Immutable
public class RFC2965VersionAttributeHandlerHC4
extends java.lang.Object
implements org.apache.http.cookie.CookieAttributeHandler

"Version" cookie attribute handler for RFC 2965 cookie spec.

Since:
4.0

Constructor Summary
RFC2965VersionAttributeHandlerHC4()
           
 
Method Summary
 boolean match(org.apache.http.cookie.Cookie cookie, org.apache.http.cookie.CookieOrigin origin)
           
 void parse(org.apache.http.cookie.SetCookie cookie, java.lang.String value)
          Parse cookie version attribute.
 void validate(org.apache.http.cookie.Cookie cookie, org.apache.http.cookie.CookieOrigin origin)
          validate cookie version attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RFC2965VersionAttributeHandlerHC4

public RFC2965VersionAttributeHandlerHC4()
Method Detail

parse

public void parse(org.apache.http.cookie.SetCookie cookie,
                  java.lang.String value)
           throws org.apache.http.cookie.MalformedCookieException
Parse cookie version attribute.

Specified by:
parse in interface org.apache.http.cookie.CookieAttributeHandler
Throws:
org.apache.http.cookie.MalformedCookieException

validate

public void validate(org.apache.http.cookie.Cookie cookie,
                     org.apache.http.cookie.CookieOrigin origin)
              throws org.apache.http.cookie.MalformedCookieException
validate cookie version attribute. Version attribute is REQUIRED.

Specified by:
validate in interface org.apache.http.cookie.CookieAttributeHandler
Throws:
org.apache.http.cookie.MalformedCookieException

match

public boolean match(org.apache.http.cookie.Cookie cookie,
                     org.apache.http.cookie.CookieOrigin origin)
Specified by:
match in interface org.apache.http.cookie.CookieAttributeHandler