| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.portal.struts.plugins.ViewCommandFactory
public class ViewCommandFactory
The ViewCommandFactory
class is the default factory used in the
Struts Portlet Framework. The ViewComandFactory will process the URI and
determine the correct type of StrutsViewCommand to create. The createCommand
method will determine the type StrutsViewCommand object to create based on the
extension. For example, a uri path of "/login.jsp" will result in the creation of a
StrutsViewJspCommand. This class can be extended to allow the applicaiton to add
new extenstion types that should result in the creation of a new type of
StrutsViewCommand. The ViewCommandFactories are registered per Struts module. A
Struts plugin can be used to determine which ViewCommandFactory is used for each
Struts module.
Field Summary | |
---|---|
protected static Log | log
commons logger instance for this class |
Constructor Summary | |
---|---|
ViewCommandFactory()
Default Constructor for the ViewCommandFactory class |
Method Summary | |
---|---|
StrutsViewCommand | PortletRequest, com.ibm.portal.struts.command.ViewCommandExecutionContext)">createCommand(ErrorResponseInfo errorInfo,
PortletRequest request,
ViewCommandExecutionContext context)
Create a command based on the given ErrorResponseInfo. |
StrutsViewCommand | PortletRequest, com.ibm.portal.struts.command.ViewCommandExecutionContext)">createCommand(java.lang.String uri,
PortletRequest request,
ViewCommandExecutionContext executionContext)
Create a command based on the given URI and request |
protected java.lang.String | getExtensionLowerCase(java.lang.String uri)
Get the extension from the given String URI. |
protected java.lang.String | getExtensionUpperCase(java.lang.String uri)
Get the extension from the given String URI. |
static ViewCommandFactory | getFactory(ModuleContext moduleContext)
Get the ViewCommandFactory object for this context |
static ViewCommandFactory | getFactory(ViewCommandExecutionContext viewCommandContext)
Get the ViewCommandFactory object for the module context obtained
from the ViewCommandExecutionContext
|
protected StrutsViewCommand | PortletRequest, com.ibm.portal.struts.command.ViewCommandExecutionContext)">handleUnrecognizedExtension(java.lang.String uri,
PortletRequest request,
ViewCommandExecutionContext executionContext)
Handle unrecognized extension. |
protected boolean | isDynamicallyIncludedContent(java.lang.String uri)
Answer whether the given path can be included dynamically (like a JSP). |
protected boolean | isDynamicallyIncludedContent(java.lang.String uri,
java.lang.String extLowerCase)
Answer whether the given path can be included dynamically (like a JSP). |
protected boolean | isStaticallyIncludedContent(java.lang.String uri)
Answer whether the given path can be included statically (like HTML). |
protected boolean | isStaticallyIncludedContent(java.lang.String uri,
java.lang.String extLowerCase)
Answer whether the given path can be included statically (like HTML). |
protected boolean | isTilesIncludedContent(java.lang.String uri,
java.lang.String extLowerCase,
PortletRequest request)
Answer whether the given path can be included as Struts Tiles JSP. |
static void | setFactory(ModuleContext moduleContext,
ViewCommandFactory factory)
Set a new ViewCommandFactory object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Log log
Constructor Detail |
---|
public ViewCommandFactory()
Method Detail |
---|
public static void setFactory(ModuleContext moduleContext, ViewCommandFactory factory)
public static ViewCommandFactory getFactory(ModuleContext moduleContext)
public static ViewCommandFactory getFactory(ViewCommandExecutionContext viewCommandContext)
ViewCommandFactory
object for the module context obtained
from the ViewCommandExecutionContext
public StrutsViewCommand createCommand(java.lang.String uri, PortletRequest request, ViewCommandExecutionContext executionContext)
null
public StrutsViewCommand createCommand(ErrorResponseInfo errorInfo, PortletRequest request, ViewCommandExecutionContext context)
protected boolean isStaticallyIncludedContent(java.lang.String uri)
protected boolean isStaticallyIncludedContent(java.lang.String uri, java.lang.String extLowerCase)
protected boolean isDynamicallyIncludedContent(java.lang.String uri)
protected boolean isDynamicallyIncludedContent(java.lang.String uri, java.lang.String extLowerCase)
protected boolean isTilesIncludedContent(java.lang.String uri, java.lang.String extLowerCase, PortletRequest request)
protected StrutsViewCommand handleUnrecognizedExtension(java.lang.String uri, PortletRequest request, ViewCommandExecutionContext executionContext)
protected java.lang.String getExtensionLowerCase(java.lang.String uri)
null
otherwiseprotected java.lang.String getExtensionUpperCase(java.lang.String uri)
null otherwise
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |