Interface ServletCallback
-
public interface ServletCallbackОбработка вызова в сервлете
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContentType()voidonError(N2oException e, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)voidonService(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
-
-
-
Method Detail
-
onService
void onService(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws ControllerArgumentException, IOException, javax.servlet.ServletException- Throws:
ControllerArgumentExceptionIOExceptionjavax.servlet.ServletException
-
onError
void onError(N2oException e, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException
- Throws:
IOException
-
getContentType
String getContentType()
- Returns:
- Тип контента http ответа (content-type)
-
-