Package org.gatein.pc.api

Examples of org.gatein.pc.api.OpaqueStateString


      if (navigationalContext != null)
      {
         String navigationalState = navigationalContext.getOpaqueValue();
         if (navigationalState != null) // todo: check meaning of empty private NS
         {
            result.setNavigationalState(new OpaqueStateString(navigationalState));
         }

         List<NamedString> publicParams = navigationalContext.getPublicValues();
         if (ParameterValidation.existsAndIsNotEmpty(publicParams))
         {
View Full Code Here


         }
         // navigational state
         String navigationalState = updateResponse.getNavigationalState();
         if (navigationalState != null)
         {
            result.setNavigationalState(new OpaqueStateString(navigationalState));
         }

         // check if the portlet was cloned
         PortletContext portletContext = updateResponse.getPortletContext();
         if (portletContext != null)
View Full Code Here

      if (navigationalContext != null)
      {
         String navigationalState = navigationalContext.getOpaqueValue();
         if (navigationalState != null) // todo: check meaning of empty private NS
         {
            result.setNavigationalState(new OpaqueStateString(navigationalState));
         }

         List<NamedString> publicParams = navigationalContext.getPublicValues();
         if (ParameterValidation.existsAndIsNotEmpty(publicParams))
         {
View Full Code Here

      }
   };

   private static StateString getTemplateNS()
   {
      return new OpaqueStateString(REWRITE_PARAMETER_OPEN + NAVIGATIONAL_STATE + REWRITE_PARAMETER_CLOSE);
   }
View Full Code Here

         // we can't create an opaquestatestring if with a null string, so need to check
         if (v1MarkupParams.getNavigationalState() != null)
         {
            markupParams.setNavigationalContext(WSRPTypeFactory.createNavigationalContextOrNull(
               new OpaqueStateString(v1MarkupParams.getNavigationalState()), null));
         }
         markupParams.setValidateTag(v1MarkupParams.getValidateTag());

         List<String> charSets = v1MarkupParams.getMarkupCharacterSets();
         if (charSets != null)
View Full Code Here

         UpdateResponse result = WSRPTypeFactory.createUpdateResponse();
         result.setMarkupContext(toV2MarkupContext(updateResponse.getMarkupContext()));
         String state = updateResponse.getNavigationalState();
         if (state != null)
         {
            result.setNavigationalContext(WSRPTypeFactory.createNavigationalContextOrNull(new OpaqueStateString(state), null));
         }
         result.setNewWindowState(updateResponse.getNewWindowState());
         result.setPortletContext(toV2PortletContext(updateResponse.getPortletContext()));
         result.setSessionContext(toV2SessionContext(updateResponse.getSessionContext()));
         result.setNewMode(updateResponse.getNewMode());
View Full Code Here

      // navigational state
      String resourceState = getRawParameterValueFor(params, WSRP2RewritingConstants.RESOURCE_STATE);
      if (resourceState != null)
      {
         this.resourceState = new OpaqueStateString(resourceState);
         params.remove(WSRP2RewritingConstants.RESOURCE_STATE);
      }

      String url = getRawParameterValueFor(params, WSRPRewritingConstants.RESOURCE_URL);
      if (url != null)
View Full Code Here

      super.dealWithSpecificParams(params, originalURL);

      String paramValue = getRawParameterValueFor(params, WSRPRewritingConstants.INTERACTION_STATE);
      if (paramValue != null)
      {
         interactionState = new OpaqueStateString(paramValue);
         params.remove(WSRPRewritingConstants.INTERACTION_STATE);
      }
   }
View Full Code Here

      // navigational state
      paramValue = getRawParameterValueFor(params, WSRPRewritingConstants.NAVIGATIONAL_STATE);
      if (paramValue != null)
      {
         navigationalState = new OpaqueStateString(paramValue);
         params.remove(WSRPRewritingConstants.NAVIGATIONAL_STATE);
      }
   }
View Full Code Here

         case EMPTY:
            return new ParametersStateString();
         case SERIALIZED:
            return new ParametersStateString(in);
         case OPAQUE:
            return new OpaqueStateString(in.readUTF());
      }

      //
      throw new IllegalArgumentException("Wrong format unrecognized header " + b);
   }
View Full Code Here

TOP

Related Classes of org.gatein.pc.api.OpaqueStateString

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.