You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by et...@apache.org on 2008/12/16 02:19:10 UTC
svn commit: r726913 -
/incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/HttpResponseBuilder.java
Author: etnu
Date: Mon Dec 15 17:19:09 2008
New Revision: 726913
URL: http://svn.apache.org/viewvc?rev=726913&view=rev
Log:
Applied SHINDIG-761, fixed the signature / javadoc of HttpResponseBuilder.setExpirationTime.
Modified:
incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/HttpResponseBuilder.java
Modified: incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/HttpResponseBuilder.java
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/HttpResponseBuilder.java?rev=726913&r1=726912&r2=726913&view=diff
==============================================================================
--- incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/HttpResponseBuilder.java (original)
+++ incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/HttpResponseBuilder.java Mon Dec 15 17:19:09 2008
@@ -149,12 +149,13 @@
}
/**
- * @param expriationTime The expiration time for this response, in seconds.
+ * @param expirationTime The expiration time for this response, in
+ * milliseconds since the Unix epoch.
*/
- public HttpResponseBuilder setExpirationTime(int expriationTime) {
+ public HttpResponseBuilder setExpirationTime(long expirationTime) {
headers.remove("Cache-Control");
headers.remove("Pragma");
- headers.put("Expires", Lists.newLinkedList(DateUtil.formatDate(expriationTime)));
+ headers.put("Expires", Lists.newLinkedList(DateUtil.formatDate(expirationTime)));
return this;
}