it.openutils.web.spring
Class SimpleController

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by it.openutils.web.spring.SimpleController
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

public abstract class SimpleController
extends org.springframework.web.context.support.WebApplicationObjectSupport
implements org.springframework.web.servlet.mvc.Controller

Version:
$Revision$ ($Author$)
Author:
fgiust

Field Summary
protected  org.slf4j.Logger log
          Logger.
protected  java.lang.String successView
          Jsp name.
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
SimpleController()
           
 
Method Summary
 java.lang.String getSuccessView()
          Getter for successView.
 java.lang.String getText(java.lang.String msgKey, java.lang.Object arg)
          Convenient method for getting a i18n key's value with a single string argument.
 void saveError(javax.servlet.http.HttpServletRequest request, java.lang.String message)
           
 void saveMessage(javax.servlet.http.HttpServletRequest request, java.lang.String message)
           
 void setSuccessView(java.lang.String successView)
          Setter for successView.
 java.lang.String toString()
          
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, isContextRequired, setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.web.servlet.mvc.Controller
handleRequest
 

Field Detail

log

protected org.slf4j.Logger log
Logger.


successView

protected java.lang.String successView
Jsp name.

Constructor Detail

SimpleController

public SimpleController()
Method Detail

getSuccessView

public java.lang.String getSuccessView()
Getter for successView.

Returns:
Returns the successView.

setSuccessView

public void setSuccessView(java.lang.String successView)
Setter for successView.

Parameters:
successView - The successView to set.

getText

public java.lang.String getText(java.lang.String msgKey,
                                java.lang.Object arg)
Convenient method for getting a i18n key's value with a single string argument.

Parameters:
msgKey -
arg -
Returns:
String

saveMessage

public void saveMessage(javax.servlet.http.HttpServletRequest request,
                        java.lang.String message)

saveError

public void saveError(javax.servlet.http.HttpServletRequest request,
                      java.lang.String message)

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2007 Openmind. All Rights Reserved.