com.ibm.commerce.command
Class HttpForwardViewCommandImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.AbstractViewCommand
              |
              +--com.ibm.commerce.command.AbstractForwardViewCommand
                    |
                    +--com.ibm.commerce.command.HttpForwardViewCommandImpl
All Implemented Interfaces:
AccCommand, ECCommand, ForwardViewCommand, HttpViewCommand, Protectable, ViewCommand
Direct Known Subclasses:
ToolsForwardViewCommandImpl

public class HttpForwardViewCommandImpl
extends AbstractForwardViewCommand
implements HttpViewCommand

This is the default implementation of a Http forward view command.


Fields inherited from class com.ibm.commerce.command.AbstractViewCommand
requestProperties, responseProperties
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.command.HttpViewCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command.ForwardViewCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
 
Constructor Summary
HttpForwardViewCommandImpl()
          HttpForwardViewCommandImpl constructor.
 
Method Summary
protected  void forwardDocument(java.lang.String docPathName)
          Forward the document given the document name.
 com.ibm.commerce.command.HttpServletRequest getRequest()
          Gets the HttpServletRequest associated with this command.
 com.ibm.commerce.command.HttpServletResponse getResponse()
          Gets the HttpServletResponse associated with this command.
 com.ibm.commerce.command.ServletContext getServletContext()
          Gets the servlet context associated with this request.
 void performExecute()
          The business logic for this forward view command.
 
Methods inherited from class com.ibm.commerce.command.AbstractForwardViewCommand
getDocumentPathName
 
Methods inherited from class com.ibm.commerce.command.AbstractViewCommand
fulfills, getForUserId, getOwner, getRequestProperties, getResourceOwners, getResponseProperties, getViewName, mergeProperties, setForUserId, setOwner, setRequestProperties, setResponseProperties, setViewName
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ViewCommand
getRequestProperties, getResponseProperties, getViewName, mergeProperties, setRequestProperties, setViewName
 
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Constructor Detail

HttpForwardViewCommandImpl

public HttpForwardViewCommandImpl()
HttpForwardViewCommandImpl constructor.
Method Detail

forwardDocument

protected void forwardDocument(java.lang.String docPathName)
                        throws ECException
Forward the document given the document name.

Parameters:
docPathName - String - the page to be displayed
Throws:
ECException -  

getRequest

public com.ibm.commerce.command.HttpServletRequest getRequest()
Gets the HttpServletRequest associated with this command.

Specified by:
getRequest in interface HttpViewCommand
Returns:
HttpServletRequest

getResponse

public com.ibm.commerce.command.HttpServletResponse getResponse()
Gets the HttpServletResponse associated with this command.

Specified by:
getResponse in interface HttpViewCommand
Returns:
HttpServletResponse

getServletContext

public com.ibm.commerce.command.ServletContext getServletContext()
Gets the servlet context associated with this request.

Returns:
ServletContext

performExecute

public void performExecute()
                    throws ECException
The business logic for this forward view command. For this default implementation, the request properties object itself, as well as each individual properties are set as attributes in the HttpServletRequest.

Overrides:
performExecute in class AbstractViewCommand
Throws:
ECException - The exception description.