org.apache.jetspeed.services.information
Class DynamicInformationProviderImpl

java.lang.Object
  extended by org.apache.jetspeed.services.information.DynamicInformationProviderImpl
All Implemented Interfaces:
org.apache.pluto.services.information.DynamicInformationProvider

public class DynamicInformationProviderImpl
extends Object
implements org.apache.pluto.services.information.DynamicInformationProvider

Provides dynamic information to Pluto Container: 1. getPortletURL 2. getRequestMimetype 3. getResponseMimetype 4. getResponseMimetypes 5. getPortletMode 6. getPreviousPortletMode 7. getWindowState 8. getPreviousWindowState 9. isPortletModeAllowed 10. isWindowStateAllowed 11. getSupportedPortletModes 12. getSupportedWindowStates 13. getAllParameters

Version:
$Id: DynamicInformationProviderImpl.java 517719 2007-03-13 15:05:48Z ate $
Author:
David Sean Taylor

Field Summary
(package private)  javax.servlet.ServletConfig config
           
(package private)  org.apache.jetspeed.request.RequestContext context
           
private static int NumberOfKnownMimetypes
           
(package private)  javax.servlet.http.HttpServletRequest request
           
 
Constructor Summary
DynamicInformationProviderImpl(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig config)
           
 
Method Summary
 String getBasePortalURL()
           
 org.apache.pluto.services.information.PortletActionProvider getPortletActionProvider(org.apache.pluto.om.window.PortletWindow window)
           getPortletActionProvider
 javax.portlet.PortletMode getPortletMode(org.apache.pluto.om.window.PortletWindow portletWindow)
           
 org.apache.pluto.services.information.PortletURLProvider getPortletURLProvider(org.apache.pluto.om.window.PortletWindow portletWindow)
           
 String getRequestContentType()
           
 org.apache.pluto.services.information.ResourceURLProvider getResourceURLProvider(org.apache.pluto.om.window.PortletWindow window)
           getResourceURLProvider
 String getResponseContentType()
           
 Iterator getResponseContentTypes()
           
 javax.portlet.WindowState getWindowState(org.apache.pluto.om.window.PortletWindow portletWindow)
           
 boolean isPortletModeAllowed(javax.portlet.PortletMode mode)
           
 boolean isWindowStateAllowed(javax.portlet.WindowState state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

request

javax.servlet.http.HttpServletRequest request

config

javax.servlet.ServletConfig config

context

org.apache.jetspeed.request.RequestContext context

NumberOfKnownMimetypes

private static final int NumberOfKnownMimetypes
See Also:
Constant Field Values
Constructor Detail

DynamicInformationProviderImpl

public DynamicInformationProviderImpl(javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.ServletConfig config)
Method Detail

getPortletURLProvider

public org.apache.pluto.services.information.PortletURLProvider getPortletURLProvider(org.apache.pluto.om.window.PortletWindow portletWindow)
Specified by:
getPortletURLProvider in interface org.apache.pluto.services.information.DynamicInformationProvider

getRequestContentType

public String getRequestContentType()

getResponseContentType

public String getResponseContentType()
Specified by:
getResponseContentType in interface org.apache.pluto.services.information.DynamicInformationProvider

getResponseContentTypes

public Iterator getResponseContentTypes()
Specified by:
getResponseContentTypes in interface org.apache.pluto.services.information.DynamicInformationProvider

getPortletMode

public javax.portlet.PortletMode getPortletMode(org.apache.pluto.om.window.PortletWindow portletWindow)
Specified by:
getPortletMode in interface org.apache.pluto.services.information.DynamicInformationProvider

getWindowState

public javax.portlet.WindowState getWindowState(org.apache.pluto.om.window.PortletWindow portletWindow)
Specified by:
getWindowState in interface org.apache.pluto.services.information.DynamicInformationProvider

isPortletModeAllowed

public boolean isPortletModeAllowed(javax.portlet.PortletMode mode)
Specified by:
isPortletModeAllowed in interface org.apache.pluto.services.information.DynamicInformationProvider

isWindowStateAllowed

public boolean isWindowStateAllowed(javax.portlet.WindowState state)
Specified by:
isWindowStateAllowed in interface org.apache.pluto.services.information.DynamicInformationProvider

getBasePortalURL

public String getBasePortalURL()

getPortletActionProvider

public org.apache.pluto.services.information.PortletActionProvider getPortletActionProvider(org.apache.pluto.om.window.PortletWindow window)

getPortletActionProvider

Specified by:
getPortletActionProvider in interface org.apache.pluto.services.information.DynamicInformationProvider
Parameters:
arg0 -
Returns:
See Also:
DynamicInformationProvider.getPortletActionProvider(org.apache.pluto.om.window.PortletWindow)

getResourceURLProvider

public org.apache.pluto.services.information.ResourceURLProvider getResourceURLProvider(org.apache.pluto.om.window.PortletWindow window)

getResourceURLProvider

Specified by:
getResourceURLProvider in interface org.apache.pluto.services.information.DynamicInformationProvider
Parameters:
arg0 -
Returns:
See Also:
DynamicInformationProvider.getResourceURLProvider(org.apache.pluto.om.window.PortletWindow)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.