|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.servlets.MVCServletHandlerImpl
public abstract class MVCServletHandlerImpl
Default implementation of a MVCHandler. Calls the command (method) through reflection.
Field Summary | |
---|---|
protected java.lang.Throwable |
exception
|
protected javax.servlet.http.HttpServletRequest |
request
|
protected javax.servlet.http.HttpServletResponse |
response
|
protected static java.lang.String |
VIEW_ERROR
|
protected static java.lang.String |
VIEW_SUCCESS
|
Fields inherited from interface info.magnolia.cms.servlets.MVCServletHandler |
---|
VIEW_NOTHING |
Constructor Summary | |
---|---|
protected |
MVCServletHandlerImpl(java.lang.String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Method Summary | |
---|---|
java.lang.String |
execute(java.lang.String command)
Call the method through reflection. |
java.lang.String |
getCommand()
Returns the name of the command we want to execute. |
java.lang.Throwable |
getException()
Getter for exception . |
java.lang.String |
getExceptionStackTrace()
Returns the stacktrace from the exception as a String. |
java.lang.String |
getName()
The name of the handler. |
javax.servlet.http.HttpServletRequest |
getRequest()
|
javax.servlet.http.HttpServletResponse |
getResponse()
|
void |
init()
Called after instantiating. |
protected void |
populateFromRequest(java.lang.Object bean)
|
void |
setCommand(java.lang.String command)
|
void |
setRequest(javax.servlet.http.HttpServletRequest request)
|
void |
setResponse(javax.servlet.http.HttpServletResponse response)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface info.magnolia.cms.servlets.MVCServletHandler |
---|
renderHtml |
Field Detail |
---|
protected static final java.lang.String VIEW_ERROR
protected static final java.lang.String VIEW_SUCCESS
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected java.lang.Throwable exception
Constructor Detail |
---|
protected MVCServletHandlerImpl(java.lang.String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Method Detail |
---|
public void init()
MVCServletHandler
init
in interface MVCServletHandler
protected void populateFromRequest(java.lang.Object bean)
public java.lang.String getName()
MVCServletHandler
getName
in interface MVCServletHandler
MVCServletHandler.getName()
public java.lang.String execute(java.lang.String command)
execute
in interface MVCServletHandler
public void setRequest(javax.servlet.http.HttpServletRequest request)
request
- The request to set.public javax.servlet.http.HttpServletRequest getRequest()
public void setResponse(javax.servlet.http.HttpServletResponse response)
response
- The response to set.public javax.servlet.http.HttpServletResponse getResponse()
public java.lang.String getCommand()
MVCServletHandler
getCommand
in interface MVCServletHandler
public void setCommand(java.lang.String command)
command
- The command to set.public java.lang.Throwable getException()
exception
.
public java.lang.String getExceptionStackTrace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |