net.n2oapp.framework.mvc.callback.ServletCallback Maven / Gradle / Ivy
package net.n2oapp.framework.mvc.callback;
import net.n2oapp.framework.api.exception.N2oException;
import net.n2oapp.framework.mvc.exception.ControllerArgumentException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;
/**
* Обработка вызова в сервлете
*/
public interface ServletCallback {
void onService(HttpServletRequest req, HttpServletResponse res)
throws ControllerArgumentException, IOException, ServletException;
void onError(N2oException e, HttpServletRequest req, HttpServletResponse res) throws IOException;
/**
* @return Тип контента http ответа (content-type)
*/
String getContentType();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy