|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActionMapper
The ActionMapper is responsible for providing a mapping between HTTP requests and action invocation requests and
vice-versa. When given an HttpServletRequest, the ActionMapper may return null if no action invocation request maps,
or it may return an ActionMapping
that describes an action invocation that WebWork should attempt to try. The
ActionMapper is not required to guarantee that the ActionMapping
returned be a real action or otherwise
ensure a valid request. This means that most ActionMappers do not need to consult WebWork's configuration to
determine if a request should be mapped.
getMapping(javax.servlet.http.HttpServletRequest)
and
getUriFromActionMapping(ActionMapping)
if it cannot handle the context.
Method Summary | |
---|---|
ActionMapping |
getMapping(HttpServletRequest request)
Return the ActionMapping for the given HttpServletRequest , the format of
HttpServletRequest url depends on the implementation of ActionMapper , eg. |
String |
getUriFromActionMapping(ActionMapping mapping)
Return the uri of the ActionMapping passed in as the argument. |
Method Detail |
---|
ActionMapping getMapping(HttpServletRequest request)
ActionMapping
for the given HttpServletRequest
, the format of
HttpServletRequest
url depends on the implementation of ActionMapper
, eg.
a RestfulActionMapper
might handle it differently from
DefaultActionMapper
.
Implementation should return null if it cannot handle the format of request (eg. if it is bad etc.) such that
we could cascade ActionMapping
together using
CompositeActionMapper
request
-
String getUriFromActionMapping(ActionMapping mapping)
ActionMapping
passed in as the argument.
Implementation should return null if it cannot handle the format of request (eg. if it is bad etc.) such that
we could cascade ActionMapping
together using
CompositeActionMapper
The parameter mapping
is an instance of ActionMappingEx
.
mapping
-
|
WebWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |