|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.framework.Controller
public abstract class Controller
Base class for controller objects. Provides various helper methods that help slightly reduce the code required to create a Seam component that acts as a controller.
| Constructor Summary | |
|---|---|
Controller()
|
|
| Method Summary | ||
|---|---|---|
protected void |
addCookie(javax.servlet.http.Cookie cookie)
|
|
protected void |
addFacesMessage(String messageTemplate,
Object... params)
|
|
protected void |
addFacesMessageFromResourceBundle(String key,
Object... params)
|
|
protected void |
debug(Object object,
Object... params)
|
|
protected void |
debug(Object object,
Throwable t,
Object... params)
|
|
protected void |
error(Object object,
Object... params)
|
|
protected void |
error(Object object,
Throwable t,
Object... params)
|
|
protected void |
failValidation()
|
|
protected void |
fatal(Object object,
Object... params)
|
|
protected void |
fatal(Object object,
Throwable t,
Object... params)
|
|
protected Context |
getApplicationContext()
|
|
protected Context |
getBusinessProcessContext()
|
|
protected Object |
getComponentInstance(Class clazz)
|
|
protected Object |
getComponentInstance(String name)
|
|
protected Conversation |
getConversation()
|
|
protected Context |
getConversationContext()
|
|
protected javax.servlet.http.Cookie |
getCookie(String name)
|
|
protected Context |
getEventContext()
|
|
protected Events |
getEvents()
|
|
protected javax.faces.context.FacesContext |
getFacesContext()
|
|
protected FacesMessages |
getFacesMessages()
|
|
protected Identity |
getIdentity()
|
|
protected Log |
getLog()
|
|
protected Map<String,String> |
getMessages()
|
|
protected Context |
getMethodContext()
|
|
protected Context |
getPageContext()
|
|
protected Redirect |
getRedirect()
|
|
protected Context |
getSessionContext()
|
|
protected
|
getValidator(Class<T> modelClass)
|
|
protected void |
info(Object object,
Object... params)
|
|
protected void |
info(Object object,
Throwable t,
Object... params)
|
|
protected String |
interpolate(String string,
Object... params)
|
|
protected void |
invalidateSession()
|
|
protected void |
raiseAsynchronousEvent(String type,
Object... parameters)
|
|
protected void |
raiseEvent(String type,
Object... parameters)
|
|
protected void |
raiseTransactionSuccessEvent(String type,
Object... parameters)
|
|
protected String |
render(String path)
|
|
protected void |
sendHttpError(int code)
|
|
protected void |
sendHttpError(int code,
String message)
|
|
protected void |
trace(Object object,
Object... params)
|
|
protected void |
trace(Object object,
Throwable t,
Object... params)
|
|
protected boolean |
validationFailed()
|
|
protected boolean |
validationSucceeded()
|
|
protected void |
warn(Object object,
Object... params)
|
|
protected void |
warn(Object object,
Throwable t,
Object... params)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Controller()
| Method Detail |
|---|
protected Context getApplicationContext()
protected Context getBusinessProcessContext()
protected Context getConversationContext()
protected Context getEventContext()
protected Events getEvents()
protected Conversation getConversation()
protected FacesMessages getFacesMessages()
protected Identity getIdentity()
protected javax.servlet.http.Cookie getCookie(String name)
protected void addCookie(javax.servlet.http.Cookie cookie)
protected void addFacesMessage(String messageTemplate, Object... params)
protected void addFacesMessageFromResourceBundle(String key, Object... params)
protected String render(String path)
protected void sendHttpError(int code)
protected void sendHttpError(int code,
String message)
protected Log getLog()
protected Map<String,String> getMessages()
protected Context getMethodContext()
protected Context getPageContext()
protected Redirect getRedirect()
protected Context getSessionContext()
protected javax.faces.context.FacesContext getFacesContext()
protected boolean validationSucceeded()
protected boolean validationFailed()
protected void failValidation()
protected String interpolate(String string, Object... params)
protected <T> org.hibernate.validator.ClassValidator<T> getValidator(Class<T> modelClass)
protected void debug(Object object, Object... params)
protected void debug(Object object, Throwable t, Object... params)
protected void error(Object object, Object... params)
protected void error(Object object, Throwable t, Object... params)
protected void fatal(Object object, Object... params)
protected void fatal(Object object, Throwable t, Object... params)
protected void info(Object object, Object... params)
protected void info(Object object, Throwable t, Object... params)
protected void trace(Object object, Object... params)
protected void trace(Object object, Throwable t, Object... params)
protected void warn(Object object, Object... params)
protected void warn(Object object, Throwable t, Object... params)
protected void raiseAsynchronousEvent(String type, Object... parameters)
protected void raiseEvent(String type, Object... parameters)
protected void raiseTransactionSuccessEvent(String type, Object... parameters)
protected Object getComponentInstance(String name)
protected Object getComponentInstance(Class clazz)
protected void invalidateSession()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||