Author: thomas.heute(a)jboss.com
Date: 2009-08-20 15:05:52 -0400 (Thu, 20 Aug 2009)
New Revision: 45
Modified:
components/pc/trunk/api/src/main/java/org/gatein/pc/api/invocation/SimplePortletInvocationContext.java
Log:
Implement encodeResourceURL
Modified:
components/pc/trunk/api/src/main/java/org/gatein/pc/api/invocation/SimplePortletInvocationContext.java
===================================================================
---
components/pc/trunk/api/src/main/java/org/gatein/pc/api/invocation/SimplePortletInvocationContext.java 2009-08-19
13:53:21 UTC (rev 44)
+++
components/pc/trunk/api/src/main/java/org/gatein/pc/api/invocation/SimplePortletInvocationContext.java 2009-08-20
19:05:52 UTC (rev 45)
@@ -25,6 +25,9 @@
import java.io.IOException;
import java.io.Writer;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
import org.gatein.common.util.MarkupInfo;
import org.gatein.pc.api.ActionURL;
import org.gatein.pc.api.ContainerURL;
@@ -42,16 +45,19 @@
private MarkupInfo markupInfo;
private String baseURL;
+ private HttpServletResponse response;
- public SimplePortletInvocationContext(MarkupInfo markupInfo, String baseURL)
+ public SimplePortletInvocationContext(MarkupInfo markupInfo, String baseURL,
HttpServletResponse response)
{
this.markupInfo = markupInfo;
this.baseURL = baseURL;
+ this.response = response;
}
public String encodeResourceURL(String url) throws IllegalArgumentException
{
- throw new IllegalArgumentException("EncodeResourceURL method not yet
supported");
+ return response.encodeURL(url);
+ //throw new IllegalArgumentException("EncodeResourceURL method not yet
supported");
}
public MarkupInfo getMarkupInfo()
Show replies by date