Package | Description |
---|---|
net.sourceforge.stripes.action |
This package defines the ActionBean interface and related classes and interfaces for
writing ActionBeans.
|
net.sourceforge.stripes.controller |
This package contains classes which form the core internals of Stripes.
|
net.sourceforge.stripes.integration.spring |
Provides classes for integrating a Stripes application with Spring, primarily by
injecting Spring beans into ActionBeans.
|
Modifier and Type | Method and Description |
---|---|
ActionBeanContext |
ActionBean.getContext()
Implementations must implement this method to return a reference to the context object
provided to the ActionBean during the call to setContext(ActionBeanContext).
|
Modifier and Type | Method and Description |
---|---|
void |
ActionBean.setContext(ActionBeanContext context)
Called by the Stripes dispatcher to provide context to the ActionBean before invoking the
handler method.
|
Modifier and Type | Method and Description |
---|---|
ActionBeanContext |
ExecutionContext.getActionBeanContext()
Retrieves the ActionBeanContext associated with the current request.
|
ActionBeanContext |
DefaultViewActionBean.getContext() |
ActionBeanContext |
ActionBeanContextFactory.getContextInstance(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates and returns a new instance of ActionBeanContext or a subclass.
|
ActionBeanContext |
DefaultActionBeanContextFactory.getContextInstance(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns a new instance of the configured class, or ActionBeanContext if a class is
not specified.
|
Modifier and Type | Method and Description |
---|---|
ValidationErrors |
ActionBeanPropertyBinder.bind(ActionBean bean,
ActionBeanContext context,
boolean validate)
Populates all the properties in the request which have a matching property in the target
bean.
|
ValidationErrors |
DefaultActionBeanPropertyBinder.bind(ActionBean bean,
ActionBeanContext context,
boolean validate)
Loops through the parameters contained in the request and attempts to bind each one to the
supplied ActionBean.
|
protected void |
DefaultActionBeanPropertyBinder.bindMissingValuesAsNull(ActionBean bean,
ActionBeanContext context)
Uses a hidden field to determine what (if any) fields were present in the form but did not get
submitted to the server.
|
ActionBean |
ActionResolver.getActionBean(ActionBeanContext context)
Resolves the Class, implementing ActionBean, that should be used to handle the request.
|
ActionBean |
AnnotatedClassActionResolver.getActionBean(ActionBeanContext context)
Gets the logical name of the ActionBean that should handle the request.
|
ActionBean |
ActionResolver.getActionBean(ActionBeanContext context,
java.lang.String path)
Returns the ActionBean class that responds to the path provided.
|
ActionBean |
AnnotatedClassActionResolver.getActionBean(ActionBeanContext context,
java.lang.String path)
Returns the ActionBean class that is bound to the UrlBinding supplied.
|
ActionBean |
NameBasedActionResolver.getActionBean(ActionBeanContext context,
java.lang.String urlBinding)
Overridden to trap the exception that is thrown when a URL cannot be mapped to an
ActionBean and then attempt to construct a dummy ActionBean that will forward the
user to an appropriate view.
|
java.lang.String |
ActionResolver.getEventName(java.lang.Class<? extends ActionBean> bean,
ActionBeanContext context)
Determines the name of the event fired by the front end.
|
java.lang.String |
AnnotatedClassActionResolver.getEventName(java.lang.Class<? extends ActionBean> bean,
ActionBeanContext context)
Try various means to determine which event is to be executed on the current ActionBean.
|
protected java.lang.String |
AnnotatedClassActionResolver.getEventNameFromEventNameParam(java.lang.Class<? extends ActionBean> bean,
ActionBeanContext context)
Looks to see if there is a single non-empty parameter value for the parameter name
specified by
StripesConstants.URL_KEY_EVENT_NAME . |
protected java.lang.String |
AnnotatedClassActionResolver.getEventNameFromPath(java.lang.Class<? extends ActionBean> bean,
ActionBeanContext context)
Looks to see if there is extra path information beyond simply the url binding of the
bean.
|
protected java.lang.String |
AnnotatedClassActionResolver.getEventNameFromRequestAttribute(java.lang.Class<? extends ActionBean> bean,
ActionBeanContext context)
Checks a special request attribute to get the event name.
|
protected java.lang.String |
AnnotatedClassActionResolver.getEventNameFromRequestParams(java.lang.Class<? extends ActionBean> bean,
ActionBeanContext context)
Loops through the set of known events for the ActionBean to see if the event
names are present as parameter names in the request.
|
protected ActionBean |
NameBasedActionResolver.handleActionBeanNotFound(ActionBeanContext context,
java.lang.String urlBinding)
Invoked when no appropriate ActionBean can be located.
|
static void |
DispatcherHelper.logValidationErrors(ActionBeanContext context)
Log validation errors at DEBUG to help during development.
|
protected ActionBean |
AnnotatedClassActionResolver.makeNewActionBean(java.lang.Class<? extends ActionBean> type,
ActionBeanContext context)
Helper method to construct and return a new ActionBean instance.
|
protected void |
AnnotatedClassActionResolver.setActionBeanContext(ActionBean bean,
ActionBeanContext context)
Calls
ActionBean.setContext(ActionBeanContext) with the given context only if
necessary. |
void |
ExecutionContext.setActionBeanContext(ActionBeanContext actionBeanContext)
Sets the ActionBeanContext for the current request.
|
void |
DefaultViewActionBean.setContext(ActionBeanContext context) |
Modifier and Type | Method and Description |
---|---|
static void |
SpringHelper.injectBeans(java.lang.Object bean,
ActionBeanContext context)
Injects Spring managed beans into using a Web Application Context that is
derived from the ServletContext, which is in turn looked up using the
ActionBeanContext.
|
? Copyright 2005-2006, Stripes Development Team.