com.bea.wsrp.consumer.controls
Class ProxyPortletPresentationContext

java.lang.Object
  extended by com.bea.netuix.servlets.controls.ControlContext
      extended by com.bea.netuix.servlets.controls.PresentationContext
          extended by com.bea.netuix.servlets.controls.window.WindowPresentationContext
              extended by com.bea.netuix.servlets.controls.portlet.PortletPresentationContext
                  extended by com.bea.wsrp.consumer.controls.ProxyPortletPresentationContext
All Implemented Interfaces
ResponseHeaderAdder, Serializable

public class ProxyPortletPresentationContext
extends PortletPresentationContext

Presentation context for proxy portlets.

See Also
Serialized Form

Field Summary
 
Fields inherited from class com.bea.netuix.servlets.controls.window.WindowPresentationContext
CLASS_NAME
 
Method Summary
 int getConnectionEstablishmentTimeoutMSecs()
          Returns the connection establishment timeout in milli secs.
 int getConnectionTimeoutMSecs()
          Returns the read timeout, in milliseconds.
 String getContentPresentationClass()
          Returns this ProxyPortlet's content presentationClass attribute.
 String getContentPresentationStyle()
          Returns this ProxyPortlet's content presentationStyle attribute.
 String getGroupId()
          Returns the group ID as specified by the producer.
 String getPortletHandle()
          Returns the portlet's handle.
 String getPortletStateChange()
          Returns the current value of the portlet state change.
 String getProducerHandle()
          Returns the producer handle used when creating the proxy portlet.
static ProxyPortletPresentationContext getProxyPortletPresentationContext(javax.servlet.http.HttpServletRequest request)
          This is a convenience method for returning a reference to the current ProxyPortletPresentationContext.
 boolean isCacheRenderDependencies()
          Returns true if the consumer can cache render dependencies.
 boolean isDoesUrlTemplateProcessing()
          Specifies whether the producer does URL template processing or not for this portlet.
 boolean isInvokeRenderDependencies()
          Returns true if the portlet has render dependencies, and the consumer is required to collect render dependencies for this portlet from the producer.
 boolean isTemplatesStoredInSession()
          Specifies whether the producer stores URL templates in the user's session on the producer side or not.
 boolean isUserContextStoredInSession()
          Returns true if the consumer stores the user's context in its session.
 
Methods inherited from class com.bea.netuix.servlets.controls.portlet.PortletPresentationContext
getAsyncContent, getHeaderMode, getHttpRequest, getInstanceLabel, getLabel, getPagePresentationContext, getPortletPreferences, getPortletPresentationContext, getPortletUri, getPreferences, getSharedParameterValue, getSharedParameterValues, isAsyncContent, isCapable, isClientRequest, isContentOnly, isDefaultMinimized, isPortletRenderedByClient, isRemote, isReturnContentToCaller, setHeaderMode
 
Methods inherited from class com.bea.netuix.servlets.controls.window.WindowPresentationContext
getCapability, getContentAttributeRenderer, getContentPresentationContextChildren, getDefinitionId, getDefinitionLabel, getInstanceId, getLocalInstanceId, getMetaData, getMetaDatas, getOrientation, getParentPagePresentationContext, getPreviousWindowMode, getThemePresentationContext, getTitle, getTitlebarPresentationContext, getWindowMode, getWindowPresentationContext, getWindowState, isPacked
 
Methods inherited from class com.bea.netuix.servlets.controls.PresentationContext
addCookie, addDateHeader, addHeader, addIntHeader, getAttributeRenderer, getChildren, getChildren, getFirstChild, getOrderedChildren, getParsedProperties, getPresentationClass, getPresentationId, getPresentationStyle, getProperties, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsInt, getRenderFormat, getResolvedLocale, getTagName, isVisible, setCharacterEncoding, setContentType, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProxyPortletPresentationContext

public static ProxyPortletPresentationContext getProxyPortletPresentationContext(javax.servlet.http.HttpServletRequest request)
This is a convenience method for returning a reference to the current ProxyPortletPresentationContext. Note this method will only work if called from within a portal (typically, from the window.jsp skeleton). This method may return null if called when no appropriate context exists, but such a context should safely exist when being fetched from the associated skeleton JSP during normal portal rendering.

Parameters
request - The current HTTPServletRequest instance
Returns
A reference to the current ProxyPortletPresentationContext, if any

getPortletHandle

public String getPortletHandle()

Returns the portlet's handle. Note that, after a portlet is customized, this handle will be different from the value used while creating a proxy portlet.

Returns
handle

getProducerHandle

public String getProducerHandle()

Returns the producer handle used when creating the proxy portlet.

Returns
producer handle

getGroupId

public String getGroupId()

Returns the group ID as specified by the producer.

Returns
group ID

isDoesUrlTemplateProcessing

public boolean isDoesUrlTemplateProcessing()

Specifies whether the producer does URL template processing or not for this portlet.

Returns
boolean

isTemplatesStoredInSession

public boolean isTemplatesStoredInSession()

Specifies whether the producer stores URL templates in the user's session on the producer side or not.

Returns
boolean

getConnectionEstablishmentTimeoutMSecs

public int getConnectionEstablishmentTimeoutMSecs()

Returns the connection establishment timeout in milli secs. If the timeout expires before the connection can be established, the connection to the producer will be terminated.

Returns
connect timeout in msecs

getConnectionTimeoutMSecs

public int getConnectionTimeoutMSecs()
Returns the read timeout, in milliseconds. If the timeout expires before there is data available for read, the consumer will terminate the connection.

Returns
read timeout in msecs

getPortletStateChange

public String getPortletStateChange()

Returns the current value of the portlet state change. This enum will be used by the consumer to determine when to allow a producer to clone a portlet.

Returns
state change flag

isInvokeRenderDependencies

public boolean isInvokeRenderDependencies()

Returns true if the portlet has render dependencies, and the consumer is required to collect render dependencies for this portlet from the producer.

Returns
boolean

isCacheRenderDependencies

public boolean isCacheRenderDependencies()

Returns true if the consumer can cache render dependencies.

Returns
boolean

isUserContextStoredInSession

public boolean isUserContextStoredInSession()

Returns true if the consumer stores the user's context in its session.

Returns
boolean

getContentPresentationClass

public String getContentPresentationClass()
Returns this ProxyPortlet's content presentationClass attribute. Since ProxyPortletContent controls do not have presentation contexts, their presentationClass attribute can be accessed from their parent ProxyPortlet. This attribute should only affect the content area of the ProxyPortlet.

Overrides:
getContentPresentationClass in class WindowPresentationContext
Returns
The presentationClass for this ProxyPortlet's content area
See Also
PresentationContext#getPresentationClass()

getContentPresentationStyle

public String getContentPresentationStyle()
Returns this ProxyPortlet's content presentationStyle attribute. Since ProxyPortletContent controls do not have presentation contexts, their presentationStyle attribute can be accessed from their parent ProxyPortlet. This attribute should only affect the content area of the ProxyPortlet.

Overrides:
getContentPresentationStyle in class WindowPresentationContext
Returns
The presentationStyle for this ProxyPortlet's content area
See Also
PresentationContext#getPresentationStyle()


Copyright © 2011, Oracle. All rights reserved.