1 package common.http.interceptor;
2
3 import javax.servlet.ServletException;
4 import javax.servlet.http.HttpServletRequest;
5 import javax.servlet.http.HttpServletResponse;
6 import java.io.IOException;
7
8 /**
9 * Rapprsenta un'operazione che accetta un oggetto {@link javax.servlet.http.HttpServletRequest}, un oggetto {@link HttpServletResponse}
10 * e può lanciare {@link ServletException} oppure {@link IOException}.</br>
11 *
12 * Questa è un'interfaccia funzionale il cui metodo funzionale è {@link HttpServletBiConsumer#handle(HttpServletRequest, HttpServletResponse)}
13 */
14 @FunctionalInterface
15 public interface HttpServletBiConsumer {
16 void handle(HttpServletRequest request, HttpServletResponse response)
17 throws ServletException, IOException;
18 }