Author: chris.laprun(a)jboss.com
Date: 2010-10-20 20:25:28 -0400 (Wed, 20 Oct 2010)
New Revision: 4751
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/processors/MimeResponseProcessor.java
Log:
- Make it compile on Java 5.
- Minor clean-ups.
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/processors/MimeResponseProcessor.java
===================================================================
---
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/processors/MimeResponseProcessor.java 2010-10-21
00:14:38 UTC (rev 4750)
+++
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/processors/MimeResponseProcessor.java 2010-10-21
00:25:28 UTC (rev 4751)
@@ -24,6 +24,7 @@
package org.gatein.wsrp.producer.handlers.processors;
import org.gatein.common.net.URLTools;
+import org.gatein.common.util.ParameterValidation;
import org.gatein.pc.api.invocation.PortletInvocation;
import org.gatein.pc.api.invocation.response.ContentResponse;
import org.gatein.pc.api.invocation.response.PortletInvocationResponse;
@@ -39,7 +40,6 @@
*/
abstract class MimeResponseProcessor<LocalMimeResponse extends MimeResponse,
Response> extends RequestProcessor<Response>
{
-// private String namespace;
private static final String EMPTY = "";
protected MimeResponseProcessor(ProducerHelper producer)
@@ -50,8 +50,6 @@
@Override
PortletInvocation initInvocation(WSRPPortletInvocationContext context)
{
-// namespace = getRuntimeContext().getNamespacePrefix();
-
return internalInitInvocation(context);
}
@@ -64,8 +62,7 @@
*/
protected String processFragmentString(String renderString)
{
-// String result = renderString.replaceAll(namespace,
WSRPRewritingConstants.WSRP_REWRITE);
- if (renderString != null && !renderString.isEmpty())
+ if (ParameterValidation.isNullOrEmpty(renderString))
{
return URLTools.replaceURLsBy(renderString, new
WSRPUtils.AbsoluteURLReplacementGenerator(ServletAccess.getRequest()));
}