Methods Summary |
---|
public java.lang.String | getName()
if (cookie != null)
return cookie.getName();
else
return "unavailable";
|
public java.lang.String | getPath()
if (cookie != null)
return cookie.getPath();
else
return "unavailable";
|
public java.lang.String | getValue()
if (cookie != null)
return cookie.getValue();
else
return "unavailable";
|
public void | setCookieHeader(javax.servlet.http.HttpServletResponse response)
if (response == null )
throw new IllegalArgumentException("Invalid HttpServletResponse set in: "+getClass().getName());
if (cookie != null)
response.addCookie(cookie);
|
public void | setMaxAge(int maxAge)
if (cookie != null)
cookie.setMaxAge(maxAge);
|
public void | setName(java.lang.String name)
if (name == null || (name.equals("")))
throw new IllegalArgumentException("Invalid cookie name set in: "+getClass().getName());
cookie = new Cookie(name,""+new java.util.Date().getTime());
|
public void | setPath(java.lang.String path)
if (path == null || (path.equals("")))
throw new IllegalArgumentException("Invalid cookie path set in: "+getClass().getName());
if (cookie != null)
cookie.setPath(path);
|
public void | setValue(java.lang.String value)
if (value == null || (value.equals("")))
throw new IllegalArgumentException("Invalid cookie value set in: "+getClass().getName());
if (cookie != null)
cookie.setValue(value);
|