Package org.gatein.wsrp

Examples of org.gatein.wsrp.WSRPPortletURL


         }
         context.setValueFor(WSRPPortletURL.URLContext.INSTANCE_KEY, WSRPTypeFactory.getPortletInstanceKey(instanceContext));
         context.setValueFor(WSRPPortletURL.URLContext.NAMESPACE, WSRPTypeFactory.getNamespacePrefix(windowContext, instanceContext.getPortletContext().getId()));
         context.setValueFor(WSRPPortletURL.URLContext.ESCAPE_XML, urlFormat.getWantEscapeXML());

         WSRPPortletURL url = WSRPPortletURL.create(containerURL, wantSecure, context);
         return url.toString();
      }
      return null;
   }
View Full Code Here


         {
            useJavaScriptEscaping = true;
            match = match.replaceAll("\\\\x2D", "-").replaceAll("\\\\x26", "&");
         }

         WSRPPortletURL portletURL = WSRPPortletURL.create(match, supportedCustomModes, supportedCustomWindowStates, true);

         URLFormat urlFormat;
         // If the current url is using & then specify we want to use xml escaped ampersands
         if (match.contains("&"))
         {
View Full Code Here

      {
         String urlAsString = currentMatch.getURLAsString();
         ProducerInfo info = consumer.getProducerInfo();
         if (urlAsString.startsWith(WSRPRewritingConstants.BEGIN_WSRP_REWRITE))
         {
            WSRPPortletURL portletURL = WSRPPortletURL.create(urlAsString,
               info.getSupportedCustomModes(), info.getSupportedCustomWindowStates());
            if (portletURL instanceof WSRPResourceURL)
            {
               log.debug("URL '" + urlAsString + "' seems to refer to a resource which are not currently supported. " +
                  "Trying to use the raw URL but this probably won't work...");
               return portletURL.toString();
            }

            // todo: this is a hack to circumvent frameworks that don't properly request resource encoding (icefaces)
            if (urlAsString.startsWith(SLASH))
            {
View Full Code Here

         {
            useISO_8859_1Encoding = true;
            match = match.replaceAll("\\\\u002D", "-").replaceAll("\\\\u0026", "&");
         }

         WSRPPortletURL portletURL = WSRPPortletURL.create(match, supportedCustomModes, supportedCustomWindowStates, true);

         // escaping format needs to be unique for each processed URL so create a new URLFormat based on what was originally asked but with tailored encoding
         URLFormat urlFormat;
         // If the current url is using & then specify we want to use xml escaped ampersands
         if (match.contains("&"))
View Full Code Here

            context.setValueFor(WSRPPortletURL.URLContext.REGISTRATION_HANDLE, registration.getRegistrationHandle());
         }
         context.setValueFor(WSRPPortletURL.URLContext.INSTANCE_KEY, WSRPTypeFactory.getPortletInstanceKey(instanceContext));
         context.setValueFor(WSRPPortletURL.URLContext.NAMESPACE, WSRPTypeFactory.getNamespacePrefix(windowContext, instanceContext.getPortletContext().getId()));

         WSRPPortletURL url = WSRPPortletURL.create(containerURL, wantSecure, context);
         return url.toString();
      }
      return null;
   }
View Full Code Here

         {
            useISO_8859_1Encoding = true;
            match = match.replaceAll("\\\\u002D", "-").replaceAll("\\\\u0026", "&");
         }

         WSRPPortletURL portletURL = WSRPPortletURL.create(match, supportedCustomModes, supportedCustomWindowStates, true);

         URLFormat urlFormat;
         // If the current url is using & then specify we want to use xml escaped ampersands
         if (match.contains("&"))
         {
View Full Code Here

TOP

Related Classes of org.gatein.wsrp.WSRPPortletURL

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.