Class XServletHandlerToSimpleHandler
- java.lang.Object
-
- com.helger.xservlet.handler.simple.XServletHandlerToSimpleHandler
-
- All Implemented Interfaces:
IXServletBasicHandler,IXServletHandler
public final class XServletHandlerToSimpleHandler extends Object implements IXServletHandler
Implementation ofIXServletHandlerforIXServletSimpleHandler.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description XServletHandlerToSimpleHandler(IXServletSimpleHandler aSimpleHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonRequest(javax.servlet.http.HttpServletRequest aHttpRequest, javax.servlet.http.HttpServletResponse aHttpResponse, com.helger.http.EHttpVersion eHttpVersion, com.helger.commons.http.EHttpMethod eHttpMethod, com.helger.web.scope.IRequestWebScope aRequestScope)Handle the servlet action for a certain request and response.voidonServletDestroy()Called upon Servlet destruction.voidonServletInit(com.helger.commons.collection.impl.ICommonsMap<String,String> aInitParams)Called upon Servlet initialization
-
-
-
Constructor Detail
-
XServletHandlerToSimpleHandler
public XServletHandlerToSimpleHandler(@Nonnull IXServletSimpleHandler aSimpleHandler)
-
-
Method Detail
-
onServletInit
public void onServletInit(@Nonnull com.helger.commons.collection.impl.ICommonsMap<String,String> aInitParams) throws javax.servlet.ServletException
Description copied from interface:IXServletBasicHandlerCalled upon Servlet initialization- Specified by:
onServletInitin interfaceIXServletBasicHandler- Parameters:
aInitParams- The init parameters. Nevernullbut maybe empty.- Throws:
javax.servlet.ServletException- if something goes wrong
-
onRequest
public void onRequest(@Nonnull javax.servlet.http.HttpServletRequest aHttpRequest, @Nonnull javax.servlet.http.HttpServletResponse aHttpResponse, @Nonnull com.helger.http.EHttpVersion eHttpVersion, @Nonnull com.helger.commons.http.EHttpMethod eHttpMethod, @Nonnull com.helger.web.scope.IRequestWebScope aRequestScope) throws javax.servlet.ServletException, IOException
Description copied from interface:IXServletHandlerHandle the servlet action for a certain request and response.- Specified by:
onRequestin interfaceIXServletHandler- Parameters:
aHttpRequest- HTTP servlet request. Nevernull.aHttpResponse- HTTP servlet response. Nevernull.eHttpVersion- HTTP version. Nevernull.eHttpMethod- HTTP method. Nevernull.aRequestScope- Request scope. Nevernull.- Throws:
javax.servlet.ServletException- On business errorIOException- On IO error
-
onServletDestroy
public void onServletDestroy()
Description copied from interface:IXServletBasicHandlerCalled upon Servlet destruction. May not throw an exception!- Specified by:
onServletDestroyin interfaceIXServletBasicHandler
-
-