com.hack23.cia.web.viewfactory.api.common
Class ErrorMessageModelAndView

Package class diagram package ErrorMessageModelAndView
java.lang.Object
  extended by com.hack23.cia.web.viewfactory.api.common.AbstractModelAndView
      extended by com.hack23.cia.web.viewfactory.api.common.ErrorMessageModelAndView
All Implemented Interfaces:
ModelAndView, Serializable

public class ErrorMessageModelAndView
extends AbstractModelAndView

The Class ErrorMessageModelAndView.

See Also:
Serialized Form

Nested Class Summary
static class ErrorMessageModelAndView.ErrorViewSpecification
          The Enum ErrorViewSpecification.
 
Constructor Summary
ErrorMessageModelAndView(UserSessionDTO userSessionDTO, ControllerAction controllerAction, ErrorMessageModelAndView.ErrorViewSpecification errorViewSpecification, String errorMessage)
          Instantiates a new error message model and view.
 
Method Summary
 String getErrorMessage()
          Gets the error message.
 ErrorMessageModelAndView.ErrorViewSpecification getErrorViewSpecification()
          Gets the error view specification.
 String getViewSpecificationDescription()
          Gets the view specification description.
 
Methods inherited from class com.hack23.cia.web.viewfactory.api.common.AbstractModelAndView
getControllerAction, getUserSessionDTO
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorMessageModelAndView

public ErrorMessageModelAndView(UserSessionDTO userSessionDTO,
                                ControllerAction controllerAction,
                                ErrorMessageModelAndView.ErrorViewSpecification errorViewSpecification,
                                String errorMessage)
Instantiates a new error message model and view.

Parameters:
userSessionDTO - the user session dto
controllerAction - the controller action
errorViewSpecification - the error view specification
errorMessage - the error message
Method Detail

getErrorMessage

public final String getErrorMessage()
Gets the error message.

Returns:
the error message

getErrorViewSpecification

public final ErrorMessageModelAndView.ErrorViewSpecification getErrorViewSpecification()
Gets the error view specification.

Returns:
the error view specification

getViewSpecificationDescription

public final String getViewSpecificationDescription()
Description copied from interface: ModelAndView
Gets the view specification description.

Specified by:
getViewSpecificationDescription in interface ModelAndView
Specified by:
getViewSpecificationDescription in class AbstractModelAndView
Returns:
the view specification description


Copyright © 2008-2009 www.hack23.com. All Rights Reserved.