Tabnine Logo
PortletMessaging.receive
Code IndexAdd Tabnine to your IDE (free)

How to use
receive
method
in
org.apache.portals.messaging.PortletMessaging

Best Java code snippets using org.apache.portals.messaging.PortletMessaging.receive (Showing top 9 results out of 315)

origin: org.apache.portals.bridges/portals-bridges-velocity

protected Object receiveRenderMessage(PortletRequest request, String message)
{
  try
  {
    if (topic == null)
      return PortletMessaging.receive(request, message);
    else
      return PortletMessaging.receive(request, topic, message);
  }
  catch (Exception e)
  {}
  return null;
}

origin: org.apache.portals.applications/apa-webcontent2-portlets

public String getURLSource(RenderRequest request, RenderResponse response, PortletPreferences prefs)
{
  String [] srcReplaceValues = { request.getServerName(), Integer.toString(request.getServerPort()), request.getContextPath() };
  
  String source = (String) PortletMessaging.receive(request, IFRAME_SRC_URL);
  
  if (source == null)
  {
    source = StringUtils.replaceEach(getAttributePreference(prefs, "SRC"), SRC_REPLACE_KEYS, srcReplaceValues);
  }
  
  // Sometimes, iframe's SRC attribute can be set to a local url to allow cross-domain scripting.
  // If proxy remote URL and its corresponding local path are set, then the proxy remote URL prefix
  // should be replaced by the local path.
  
  String proxyRemoteURL = StringUtils.replaceEach(getAttributePreference(prefs, "PROXYREMOTEURL"), SRC_REPLACE_KEYS, srcReplaceValues);
  String proxyLocalPath = StringUtils.replaceEach(getAttributePreference(prefs, "PROXYLOCALPATH"), SRC_REPLACE_KEYS, srcReplaceValues);
  
  if (StringUtils.isNotEmpty(proxyRemoteURL) && StringUtils.isNotEmpty(proxyLocalPath) && StringUtils.startsWith(source, proxyRemoteURL))
  {
    source = proxyLocalPath + source.substring(proxyRemoteURL.length());
  }
  
  return source;
}
origin: org.apache.portals.applications/apa-webcontent-jar

public String getURLSource(RenderRequest request, RenderResponse response, PortletPreferences prefs)
{
  String [] srcReplaceValues = { request.getServerName(), Integer.toString(request.getServerPort()), request.getContextPath() };
  
  String source = (String) PortletMessaging.receive(request, IFRAME_SRC_URL);
  
  if (source == null)
  {
    source = StringUtils.replaceEach(getAttributePreference(prefs, "SRC"), SRC_REPLACE_KEYS, srcReplaceValues);
  }
  
  // Sometimes, iframe's SRC attribute can be set to a local url to allow cross-domain scripting.
  // If proxy remote URL and its corresponding local path are set, then the proxy remote URL prefix
  // should be replaced by the local path.
  
  String proxyRemoteURL = StringUtils.replaceEach(getAttributePreference(prefs, "PROXYREMOTEURL"), SRC_REPLACE_KEYS, srcReplaceValues);
  String proxyLocalPath = StringUtils.replaceEach(getAttributePreference(prefs, "PROXYLOCALPATH"), SRC_REPLACE_KEYS, srcReplaceValues);
  
  if (StringUtils.isNotEmpty(proxyRemoteURL) && StringUtils.isNotEmpty(proxyLocalPath) && StringUtils.startsWith(source, proxyRemoteURL))
  {
    source = proxyLocalPath + source.substring(proxyRemoteURL.length());
  }
  
  return source;
}
origin: org.apache.portals.applications/apa-webcontent-jar

Cookie[] cookies = (Cookie[])PortletMessaging.receive(request, HTTP_STATE);
if (cookies != null)
origin: org.apache.portals.applications/apa-webcontent2-portlets

List<Cookie> cookies = (List<Cookie>) PortletMessaging.receive(request, HTTP_STATE);
origin: org.apache.portals.applications/apa-webcontent-jar

  WebContentHistoryList history = (WebContentHistoryList)PortletMessaging.receive(actionRequest, HISTORY);
WebContentHistoryList history = (WebContentHistoryList)PortletMessaging.receive(actionRequest, HISTORY);
if (history == null)
  history = new WebContentHistoryList();
origin: org.apache.portals.applications/apa-webcontent2-portlets

  WebContentPageHistory history = (WebContentPageHistory)PortletMessaging.receive(actionRequest, HISTORY);
WebContentPageHistory history = (WebContentPageHistory)PortletMessaging.receive(actionRequest, HISTORY);
origin: org.apache.portals.applications/apa-webcontent2-portlets

WebContentPageHistory history = (WebContentPageHistory)PortletMessaging.receive(request, HISTORY);
origin: org.apache.portals.applications/apa-webcontent-jar

WebContentHistoryList history = (WebContentHistoryList)PortletMessaging.receive(request, HISTORY);
if (history == null)
  history = new WebContentHistoryList();
org.apache.portals.messagingPortletMessagingreceive

Popular methods of PortletMessaging

  • publish
  • consume
  • cancel

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now