You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by ms...@apache.org on 2015/02/25 09:58:40 UTC
[3/9] portals-pluto git commit: Change of method signature in
MimeResponse to allow for backwards compatibility. JSR 286 portlets now run
unchanged
Change of method signature in MimeResponse to allow for backwards compatibility. JSR 286 portlets now run unchanged
Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/c0a0c3ac
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/c0a0c3ac
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/c0a0c3ac
Branch: refs/heads/V3Prototype
Commit: c0a0c3aca7895063ea3137804bc18961c2cd8de3
Parents: 260318f
Author: Scott Nicklous <ms...@apache.org>
Authored: Mon Feb 23 09:55:38 2015 +0100
Committer: Scott Nicklous <ms...@apache.org>
Committed: Mon Feb 23 09:55:38 2015 +0100
----------------------------------------------------------------------
.../java/org/apache/pluto/container/impl/MimeResponseImpl.java | 4 ++++
portlet-api/src/main/java/javax/portlet/MimeResponse.java | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/c0a0c3ac/pluto-container/src/main/java/org/apache/pluto/container/impl/MimeResponseImpl.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/impl/MimeResponseImpl.java b/pluto-container/src/main/java/org/apache/pluto/container/impl/MimeResponseImpl.java
index 8fbe40c..1b688ac 100644
--- a/pluto-container/src/main/java/org/apache/pluto/container/impl/MimeResponseImpl.java
+++ b/pluto-container/src/main/java/org/apache/pluto/container/impl/MimeResponseImpl.java
@@ -25,7 +25,9 @@ import java.util.Locale;
import javax.portlet.CacheControl;
import javax.portlet.MimeResponse;
+
import static javax.portlet.MimeResponse.ParameterCopyOption.*;
+
import javax.portlet.RenderURL;
import javax.portlet.ActionURL;
import javax.portlet.ResourceURL;
@@ -71,10 +73,12 @@ public class MimeResponseImpl extends PortletResponseImpl implements
return responseContentTypes;
}
+ @SuppressWarnings("unchecked")
public ActionURL createActionURL() {
return new ActionURLImpl(responseContext, COPY_PUBLIC_RENDER_PARAMETERS);
}
+ @SuppressWarnings("unchecked")
public RenderURL createRenderURL() {
return new RenderURLImpl(responseContext, COPY_PUBLIC_RENDER_PARAMETERS);
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/c0a0c3ac/portlet-api/src/main/java/javax/portlet/MimeResponse.java
----------------------------------------------------------------------
diff --git a/portlet-api/src/main/java/javax/portlet/MimeResponse.java b/portlet-api/src/main/java/javax/portlet/MimeResponse.java
index cf12cf6..3ca6914 100644
--- a/portlet-api/src/main/java/javax/portlet/MimeResponse.java
+++ b/portlet-api/src/main/java/javax/portlet/MimeResponse.java
@@ -449,7 +449,7 @@ public interface MimeResponse extends PortletResponse {
*
* @return a portlet render URL
*/
- public RenderURL createRenderURL();
+ public <T extends PortletURL & RenderURL> T createRenderURL();
/**
@@ -513,7 +513,7 @@ public interface MimeResponse extends PortletResponse {
* The returned URL can be further extended by adding portlet-specific action
* parameters, portlet mode, and window state.
* If no additional portlet mode, window
- * state or security modifier is set on the URL, the values from the
+ * state or security modifier is set on the URL, the values from themi
* current render or resource request are preserved.
* <div class="changed_added_3_0">
* <p>
@@ -533,7 +533,7 @@ public interface MimeResponse extends PortletResponse {
*
* @return a portlet action URL
*/
- public ActionURL createActionURL();
+ public <T extends PortletURL & ActionURL> T createActionURL();
/**