Package com.helger.xservlet.handler
Interface IXServletHandler
-
- All Superinterfaces:
IXServletBasicHandler
- All Known Implementing Classes:
XServletAsyncHandler,XServletHandlerOPTIONS,XServletHandlerToSimpleHandler,XServletHandlerTRACE
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IXServletHandler extends IXServletBasicHandler
Handler for a single HTTP method in an XServlet.- Since:
- 9.0.0
- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract 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.-
Methods inherited from interface com.helger.xservlet.handler.IXServletBasicHandler
onServletDestroy, onServletInit
-
-
-
-
Method Detail
-
onRequest
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
Handle the servlet action for a certain request and response.- 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
-
-