public class ServletWrapper extends Object
Servlet. 
 ServletWrapper are used to handle servlets from inside the application, instead of inside the servlet engine.| Constructor and Description | 
|---|
ServletWrapper(Servlet servlet)
Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
init(String servletName,
    ServletContext servletContext,
    Map<String,String> parameters)
Initialize the servlet in the wrapper 
 | 
void | 
service(HttpServletRequest request,
       HttpServletResponse response,
       Map objectModel,
       Redirector redirect)
Calls service in the servlet 
 | 
void | 
service(Map objectModel,
       Redirector redirect)
Calls service in the servlet, wrapping the request and the response 
 | 
public ServletWrapper(Servlet servlet)
servlet - A servlet to applypublic void init(String servletName, ServletContext servletContext, Map<String,String> parameters) throws ServletException
servletName - NameservletContext - Contextparameters - ParametersServletException - Exception if servlet init failspublic void service(Map objectModel, Redirector redirect) throws ServletException, IOException
objectModel - object modelredirect - redirectorServletException - exception thrown by the servletIOException - exception thrown by the servletpublic void service(HttpServletRequest request, HttpServletResponse response, Map objectModel, Redirector redirect) throws ServletException, IOException
request - requestresponse - responseobjectModel - object modelredirect - redirectorServletException - exception thrown by the servletIOException - exception thrown by the servlet