Package com.iizix.web
Interface ICommonServletInterface
- All Known Implementing Classes:
- PushNotificationHandler
public interface ICommonServletInterface
Common Servlet interface used to intercept GET/POST/... requests. The typical usage of this interface is to intercept any kind of web request, but not to be used as a Servlet for a particular "request path" or URI.
- Author:
- Christopher Mindus
- Method SummaryModifier and TypeMethodDescription- boolean- handle- (String targetRequestURI, PortConfig portConfig, HttpServletRequest request, HttpServletResponse response) Checks if the servlet is handling the request or not.
- Method Details- handleboolean handle- (String targetRequestURI, PortConfig portConfig, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException Checks if the servlet is handling the request or not.- Parameters:
- targetRequestURI- The target request URI.
- portConfig- The port configuration used.
- request- The request.
- response- The response.
- Returns:
- trueif handled,- falseotherwise.
- Throws:
- ServletException- For Servlet exceptions.
- IOException- For I/O errors.