fix some Cookie models

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2269 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2008-01-03 17:03:38 +00:00
parent 639d5d3aa4
commit 74aaf36780
3 changed files with 5 additions and 2 deletions

View File

@ -22,7 +22,7 @@ public class ServletRequest implements javax.servlet.ServletRequest {
/**
* The semantics of this are bogus ... be careful to hijack this.
*/
private static String getInputString() {
protected static String getInputString() {
return "some input string";
}

View File

@ -35,7 +35,10 @@ public class HttpServletRequest
}
public Cookie[] getCookies() {
return null;
Cookie cookie = new Cookie(getInputString(), getInputString());
cookie.setComment(getInputString());
return new Cookie[] { cookie } ;
}
public long getDateHeader(String name) {