org.apache.pluto.services.information
Interface DynamicInformationProvider


public interface DynamicInformationProvider

Provide information from the portal to portlet container that are request dependend.


Method Summary
 PortletActionProvider getPortletActionProvider(PortletWindow portletWindow)
          Returns the portlet action provider for the given portlet window
 javax.portlet.PortletMode getPortletMode(PortletWindow portletWindow)
          Returns the current PortletMode of the given portlet window.
 PortletURLProvider getPortletURLProvider(PortletWindow portletWindow)
          Returns an URL pointing to the given portlet window
 ResourceURLProvider getResourceURLProvider(PortletWindow portletWindow)
          Returns the ResourceURLProvider to create URLs pointing to a resource in a web application.
 java.lang.String getResponseContentType()
          Returns the content type the portlet should use in its response The content type only includes the content type, not the character set.
 java.util.Iterator getResponseContentTypes()
          Gets a list of mime types which the portal accepts for the response.
 javax.portlet.WindowState getWindowState(PortletWindow portletWindow)
          Returns the WindowState of the given portlet window.
 boolean isPortletModeAllowed(javax.portlet.PortletMode mode)
          Returns true if the portal supports the requested portlet mode.
 boolean isWindowStateAllowed(javax.portlet.WindowState state)
          Returns true if the portal supports the requested window state.
 

Method Detail

getResponseContentType

java.lang.String getResponseContentType()
Returns the content type the portlet should use in its response The content type only includes the content type, not the character set.

Returns:
the content type to use for the response

getResponseContentTypes

java.util.Iterator getResponseContentTypes()
Gets a list of mime types which the portal accepts for the response. This list is ordered with the most preferable types listed first.

The content type only includes the content type, not the character set.

Returns:
an java.util.Iterator of content types for the response

getPortletURLProvider

PortletURLProvider getPortletURLProvider(PortletWindow portletWindow)
Returns an URL pointing to the given portlet window

Parameters:
portletWindow - the portlet Window
Returns:
the URL to the given portlet

getResourceURLProvider

ResourceURLProvider getResourceURLProvider(PortletWindow portletWindow)
Returns the ResourceURLProvider to create URLs pointing to a resource in a web application.

Parameters:
portletWindow - the portlet Window
Returns:
the URL to a resource

getPortletActionProvider

PortletActionProvider getPortletActionProvider(PortletWindow portletWindow)
Returns the portlet action provider for the given portlet window

Parameters:
portletWindow - the portlet Window
Returns:
the action provider for the given portlet

getPortletMode

javax.portlet.PortletMode getPortletMode(PortletWindow portletWindow)
Returns the current PortletMode of the given portlet window.

Parameters:
portletWindow - the portlet Window
Returns:
the portlet mode

getWindowState

javax.portlet.WindowState getWindowState(PortletWindow portletWindow)
Returns the WindowState of the given portlet window.

Parameters:
portletWindow - the portlet window
Returns:
the portlet window state

isPortletModeAllowed

boolean isPortletModeAllowed(javax.portlet.PortletMode mode)
Returns true if the portal supports the requested portlet mode.

Parameters:
mode - portlet mode requested to support
Returns:
true, if the portal support requested portlet mode

isWindowStateAllowed

boolean isWindowStateAllowed(javax.portlet.WindowState state)
Returns true if the portal supports the requested window state.

Parameters:
state - window state requested to support
Returns:
true, if the portal support requested window state


Copyright © 2003-2011 . All Rights Reserved.