com.elasticpath.sfweb.controller.impl
Class ViewOrderControllerImpl

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.support.WebContentGenerator
              extended by org.springframework.web.servlet.mvc.AbstractController
                  extended by org.springframework.web.servlet.mvc.BaseCommandController
                      extended by com.elasticpath.sfweb.controller.impl.AbstractEpControllerImpl
                          extended by com.elasticpath.sfweb.controller.impl.ViewOrderControllerImpl
All Implemented Interfaces:
EpController, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

public class ViewOrderControllerImpl
extends AbstractEpControllerImpl

The Spring MVC controller for displaying an order.


Field Summary
 
Fields inherited from class org.springframework.web.servlet.mvc.BaseCommandController
DEFAULT_COMMAND_NAME
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
METHOD_GET, METHOD_HEAD, METHOD_POST
 
Constructor Summary
ViewOrderControllerImpl()
           
 
Method Summary
 java.lang.String getRequestType()
          Gets the request type.
 java.lang.String getSuccessView()
          Sets the success view name.
 void setOrderService(OrderService orderService)
          Sets the order service.
 void setRequestType(java.lang.String requestType)
          Sets the request type.
 void setSuccessView(java.lang.String successView)
          Sets the static view name.
 
Methods inherited from class com.elasticpath.sfweb.controller.impl.AbstractEpControllerImpl
getElasticPath, getRequestHelper, setElasticPath, setRequestHelper
 
Methods inherited from class org.springframework.web.servlet.mvc.BaseCommandController
getBindingErrorProcessor, getCommandClass, getCommandName, getMessageCodesResolver, getPropertyEditorRegistrars, getValidator, getValidators, isValidateOnBinding, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
 
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseExpiresHeader, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseExpiresHeader
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, setApplicationContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.web.servlet.mvc.Controller
handleRequest
 

Constructor Detail

ViewOrderControllerImpl

public ViewOrderControllerImpl()
Method Detail

getRequestType

public java.lang.String getRequestType()
Gets the request type.

Returns:
type of request (either "ViewOrderDetails" or "ViewPrintReceipt")

getSuccessView

public java.lang.String getSuccessView()
Sets the success view name.

Returns:
name of the success view

setOrderService

public void setOrderService(OrderService orderService)
Sets the order service.

Parameters:
orderService - the order service

setRequestType

public final void setRequestType(java.lang.String requestType)
Sets the request type.

Parameters:
requestType - type of request (either "ViewOrderDetails" or "ViewPrintReceipt")

setSuccessView

public final void setSuccessView(java.lang.String successView)
Sets the static view name.

Parameters:
successView - name of the success view