public abstract class MVCServletHandlerImpl extends Object implements MVCServletHandler
Modifier and Type | Field and Description |
---|---|
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 |
VIEW_NOTHING
Modifier | Constructor and Description |
---|---|
protected |
MVCServletHandlerImpl(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
renderHtml
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
protected MVCServletHandlerImpl(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
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()
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.