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 post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JButton (javax.swing)
  • 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