Interface ServletAccessor<REQUEST,RESPONSE>
-
- Type Parameters:
REQUEST- HttpServletRequest class (or a wrapper)RESPONSE- HttpServletResponse class (or a wrapper)
public interface ServletAccessor<REQUEST,RESPONSE>This interface is used to access methods of ServletContext, HttpServletRequest and HttpServletResponse classes in shared code that is used for both jakarta.servlet and javax.servlet versions of those classes. A wrapper class with extra information attached may be used as well in cases where the class itself does not provide some field (such as response status for Servlet API 2.2).
-
-
Method Summary
-
-
-
Method Detail
-
getRequestServerPort
int getRequestServerPort(REQUEST request)
-
getRequestContentLength
int getRequestContentLength(REQUEST request)
-
addRequestAsyncListener
void addRequestAsyncListener(REQUEST request, ServletAsyncListener<RESPONSE> listener, Object response)
-
getResponseStatus
int getResponseStatus(RESPONSE response)
-
isResponseCommitted
boolean isResponseCommitted(RESPONSE response)
-
isServletException
boolean isServletException(Throwable throwable)
-
-