Methods Summary |
---|
protected org.apache.http.cookie.CookieAttributeHandler | findAttribHandler(java.lang.String name)Finds an attribute handler {@link CookieAttributeHandler} for the
given attribute. Returns null if no attribute handler is
found for the specified attribute.
return this.attribHandlerMap.get(name);
|
protected org.apache.http.cookie.CookieAttributeHandler | getAttribHandler(java.lang.String name)Gets attribute handler {@link CookieAttributeHandler} for the
given attribute.
CookieAttributeHandler handler = findAttribHandler(name);
if (handler == null) {
throw new IllegalStateException("Handler not registered for " +
name + " attribute.");
} else {
return handler;
}
|
protected java.util.Collection | getAttribHandlers()
return this.attribHandlerMap.values();
|
public void | registerAttribHandler(java.lang.String name, org.apache.http.cookie.CookieAttributeHandler handler)
if (name == null) {
throw new IllegalArgumentException("Attribute name may not be null");
}
if (handler == null) {
throw new IllegalArgumentException("Attribute handler may not be null");
}
this.attribHandlerMap.put(name, handler);
|