|
||||||||||
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 Throwable |
exception
|
protected javax.servlet.http.HttpServletRequest |
request
|
protected javax.servlet.http.HttpServletResponse |
response
|
protected static String |
VIEW_ERROR
|
protected static String |
VIEW_SUCCESS
|
Fields inherited from interface info.magnolia.cms.servlets.MVCServletHandler |
---|
VIEW_NOTHING |
Constructor Summary | |
---|---|
protected |
MVCServletHandlerImpl(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Method Summary | |
---|---|
String |
execute(String command)
Call the method through reflection. |
String |
getCommand()
Returns the name of the command we want to execute. |
Throwable |
getException()
Getter for exception . |
String |
getExceptionStackTrace()
Returns the stacktrace from the exception as a String. |
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(Object bean)
|
void |
setCommand(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 String VIEW_ERROR
protected static final String VIEW_SUCCESS
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected Throwable exception
Constructor Detail |
---|
protected MVCServletHandlerImpl(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(Object bean)
public String getName()
MVCServletHandler
getName
in interface MVCServletHandler
MVCServletHandler.getName()
public String execute(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 String getCommand()
MVCServletHandler
getCommand
in interface MVCServletHandler
public void setCommand(String command)
command
- The command to set.public Throwable getException()
exception
.
public String getExceptionStackTrace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |