Author: chris.laprun(a)jboss.com
Date: 2010-12-03 09:14:16 -0500 (Fri, 03 Dec 2010)
New Revision: 5474
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/processors/RequestProcessor.java
Log:
- Adding logging of extensions to be able to figure out what is actually passed by
consumers.
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/processors/RequestProcessor.java
===================================================================
---
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/processors/RequestProcessor.java 2010-12-03
13:01:01 UTC (rev 5473)
+++
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/processors/RequestProcessor.java 2010-12-03
14:14:16 UTC (rev 5474)
@@ -45,6 +45,7 @@
import org.gatein.wsrp.WSRPUtils;
import org.gatein.wsrp.producer.Utils;
import org.gatein.wsrp.spec.v2.WSRP2ExceptionFactory;
+import org.oasis.wsrp.v2.Extension;
import org.oasis.wsrp.v2.InvalidHandle;
import org.oasis.wsrp.v2.InvalidRegistration;
import org.oasis.wsrp.v2.MarkupType;
@@ -62,6 +63,8 @@
import org.oasis.wsrp.v2.UnsupportedMimeType;
import org.oasis.wsrp.v2.UnsupportedMode;
import org.oasis.wsrp.v2.UnsupportedWindowState;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import java.security.Principal;
import java.util.ArrayList;
@@ -80,6 +83,7 @@
{
private static final String WINDOW_STATE = "window state";
private static final String PORTLET_MODE = "portlet mode";
+ private static final Logger log = LoggerFactory.getLogger(RequestProcessor.class);
protected PortletInvocation invocation;
protected MarkupRequest markupRequest;
@@ -165,6 +169,16 @@
invocation.setNavigationalState(navigationalState);
List<NamedString> publicParams = navigationalContext.getPublicValues();
+
+ List<Extension> extensions = navigationalContext.getExtensions();
+ if (ParameterValidation.existsAndIsNotEmpty(extensions))
+ {
+ for (Extension extension : extensions)
+ {
+ log.debug("NavigationalContext extension: " + extension);
+ }
+ }
+
if (ParameterValidation.existsAndIsNotEmpty(publicParams))
{
Map<String, String[]> publicNS =
WSRPUtils.createPublicNSFrom(publicParams);
Show replies by date