com.caucho.portal.generic
Class MapBasedInvocationFactory

java.lang.Object
  extended by com.caucho.portal.generic.MapBasedInvocationFactory
All Implemented Interfaces:
InvocationFactory, java.lang.Cloneable

public class MapBasedInvocationFactory
extends java.lang.Object
implements InvocationFactory, java.lang.Cloneable


Field Summary
protected static java.util.logging.Logger log
           
 
Constructor Summary
MapBasedInvocationFactory()
           
 
Method Summary
protected  MapBasedInvocationFactory clone(java.lang.String namespace)
          The actionNamespace and actionMap are null in the returned clone The invocation that matches the passed namespace will not have any parameters.
protected  InvocationURL createActionURL(java.lang.String namespace)
           
protected  InvocationURL createRenderURL(java.lang.String namespace)
           
protected  void decodeRawParameters(java.util.Map<java.lang.String,java.lang.String[]> raw)
           
 void finish()
           
 java.lang.String getActionTargetParameterName()
          The name of the parameter to use to store the namespace of the target of an action.
 com.caucho.portal.generic.MapBasedInvocationFactory.MapBasedInvocation getInvocation(java.lang.String namespace)
          Return a Invocation appropriate for the passed namespace.
 java.lang.String getPortletModeParameterName()
          The name of the parameter to use to store the portlet mode.
 java.util.Set<PortletMode> getPortletModesUsed()
           
 java.lang.String getReservedNamespace()
          The reserved namespace is used to mark parameters that have special meaning to the portal.
 java.lang.String getURL()
           
 java.lang.String getWindowStateParameterName()
          The name of the parameter to use to store the window state.
 java.util.Set<WindowState> getWindowStatesUsed()
           
 boolean isActionTarget(java.lang.String namespace)
           
 void setActionTargetParameterName(java.lang.String name)
          The name of the parameter to use to store the namespace of the target of an action.
 void setPortletModeParameterName(java.lang.String name)
          The name of the parameter to use to store the portlet mode.
 void setReservedNamespace(java.lang.String namespace)
          The reserved namespace is used to mark parameters that have special meaning to the portal.
 void setWindowStateParameterName(java.lang.String name)
          The name of the parameter to use to store the window state.
 void start(java.util.Map<java.lang.String,java.lang.String[]> rawParameters)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final java.util.logging.Logger log
Constructor Detail

MapBasedInvocationFactory

public MapBasedInvocationFactory()
Method Detail

setReservedNamespace

public void setReservedNamespace(java.lang.String namespace)
The reserved namespace is used to mark parameters that have special meaning to the portal. The specification suggests "javax.portal.", which is rather long so the default is "__". This implementation also uses the reserved namespace as a prefix to parameter names.


getReservedNamespace

public java.lang.String getReservedNamespace()
The reserved namespace is used to mark parameters that have special meaning to the portal.


setActionTargetParameterName

public void setActionTargetParameterName(java.lang.String name)
The name of the parameter to use to store the namespace of the target of an action.


getActionTargetParameterName

public java.lang.String getActionTargetParameterName()
The name of the parameter to use to store the namespace of the target of an action.


setWindowStateParameterName

public void setWindowStateParameterName(java.lang.String name)
The name of the parameter to use to store the window state.


getWindowStateParameterName

public java.lang.String getWindowStateParameterName()
The name of the parameter to use to store the window state.


setPortletModeParameterName

public void setPortletModeParameterName(java.lang.String name)
The name of the parameter to use to store the portlet mode.


getPortletModeParameterName

public java.lang.String getPortletModeParameterName()
The name of the parameter to use to store the portlet mode.


start

public void start(java.util.Map<java.lang.String,java.lang.String[]> rawParameters)

finish

public void finish()

isActionTarget

public boolean isActionTarget(java.lang.String namespace)

clone

protected MapBasedInvocationFactory clone(java.lang.String namespace)
The actionNamespace and actionMap are null in the returned clone The invocation that matches the passed namespace will not have any parameters.


decodeRawParameters

protected void decodeRawParameters(java.util.Map<java.lang.String,java.lang.String[]> raw)

getURL

public java.lang.String getURL()

getWindowStatesUsed

public java.util.Set<WindowState> getWindowStatesUsed()
Specified by:
getWindowStatesUsed in interface InvocationFactory
Returns:
a Set of all WindowState's used.

getPortletModesUsed

public java.util.Set<PortletMode> getPortletModesUsed()
Specified by:
getPortletModesUsed in interface InvocationFactory
Returns:
a Set of all PortletMode's used.

getInvocation

public com.caucho.portal.generic.MapBasedInvocationFactory.MapBasedInvocation getInvocation(java.lang.String namespace)
Return a Invocation appropriate for the passed namespace.

Specified by:
getInvocation in interface InvocationFactory

createActionURL

protected InvocationURL createActionURL(java.lang.String namespace)

createRenderURL

protected InvocationURL createRenderURL(java.lang.String namespace)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object