Author: julien(a)jboss.com
Date: 2008-02-28 07:34:12 -0500 (Thu, 28 Feb 2008)
New Revision: 10153
Modified:
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/impl/jsr168/api/MimeResponseImpl.java
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/invocation/response/ResponseProperties.java
Log:
added a clear() methods on ResponseProperties that clears the 3 nested objects.
Modified:
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/impl/jsr168/api/MimeResponseImpl.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/impl/jsr168/api/MimeResponseImpl.java 2008-02-28
12:28:42 UTC (rev 10152)
+++
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/impl/jsr168/api/MimeResponseImpl.java 2008-02-28
12:34:12 UTC (rev 10153)
@@ -210,9 +210,7 @@
resetBuffer();
// And properties
- getProperties().getTransportHeaders().clear();
- getProperties().getMarkupHeaders().clear();
- getProperties().getCookies().clear();
+ getProperties().clear();
}
public boolean isCommitted()
Modified:
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/invocation/response/ResponseProperties.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/invocation/response/ResponseProperties.java 2008-02-28
12:28:42 UTC (rev 10152)
+++
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/invocation/response/ResponseProperties.java 2008-02-28
12:34:12 UTC (rev 10153)
@@ -77,4 +77,11 @@
markupHeaders.append(appended.markupHeaders);
cookies.addAll(appended.cookies);
}
+
+ public void clear()
+ {
+ transportHeaders.clear();
+ markupHeaders.clear();
+ cookies.clear();
+ }
}
\ No newline at end of file