
eap8.eap7.javax-to-jakarta-servlet.windup.xml Maven / Gradle / Ivy
The newest version!
This ruleset provides analysis of Java EE applications that need to change their servlet related code from javax to jakarta.
IMPLEMENTS_TYPE
The `javax.servlet.SingleThreadModel` marker interface has been removed and servlets that implement this interface should remove
the interface declaration and ensure that the servlet code properly guards state and other resource access against concurrent access,
for example by avoiding the usage of an instance variable or synchronizing the block of code accessing resources. However, it is
strongly recommended that developers not synchronize the service method (or methods like `doGet` and `doPost` that it dispatches to)
because of the detrimental effect of such synchronization on performance.
IMPLEMENTS_TYPE
METHOD_CALL
The `javax.servlet.http.HttpSessionContext` interface has been removed,
along with the `javax.servlet.http.HttpSession.getSessionContext()` method. Since Servlet 2.1 there have
been no use cases for this interface as its implementations were required by spec not to provide any usable data.
The `javax.servlet.http.HttpUtils` utility class has been removed. Applications should use the ServletRequest
and HttpServletRequest interfaces instead of these methods it provided:
- `parseQueryString(String s)` and `parsePostData(int len, ServletInputStream in)` -- Use `ServletRequest.getParameterMap()`. If an application needs to differentiate between query string parameters and request body parameters it will need to implement code to do that itself, perhaps by parsing the query string itself.
- `getRequestURL(HttpServletRequest req)` -- Use `HttpServletRequest.getRequestURL()`.
Method getServlet in javax.servlet.ServletContext has been removed.
Method getServlets in javax.servlet.ServletContext has been removed.
Method getServletNames in javax.servlet.ServletContext has been removed.
Method log(Exception, String) in javax.servlet.ServletContext has been removed. Use log(String, Throwable) instead.
METHOD_CALL
Method `getRealPath(String)` in javax.servlet.ServletRequest has been removed. It can be replaced with `ServletContext.getRealPath(String path)`.
Method `getRealPath` in javax.servlet.ServletRequestWrapper has been removed. It can be replaced with `ServletContext.getRealPath(String path)`.
METHOD_CALL
Method getServlet in javax.servlet.UnavailableException has been removed.
CONSTRUCTOR_CALL
Constructor UnavailableException(Servlet, String) in javax.servlet.UnavailableException has been removed. Use UnavailableException(String) instead.
CONSTRUCTOR_CALL
Constructor UnavailableException(int, Servlet, String) in javax.servlet.UnavailableException has been removed. Use UnavailableException(String, int) instead.
METHOD_CALL
Method `isRequestedSessionIdFromUrl` in javax.servlet.http.HttpServletRequest has been removed. Use `isRequestedSessionIdFromURL()` instead.
METHOD_CALL
Method `isRequestedSessionIdFromUrl` in javax.servlet.http.HttpServletRequestWrapper has been removed. Use `isRequestedSessionIdFromURL()` instead.
Method encodeURL in javax.servlet.http.HttpServletResponse has been removed. Use encodeURL(String) instead.
Method encodeRedirectUrl(String) in javax.servlet.http.HttpServletResponse has been removed. Use encodeRedirectURL(String) instead.
Method setStatus(int, String) in javax.servlet.http.HttpServletResponse has been removed. Use sendError(int, String) instead.
Method encodeUrl in javax.servlet.http.HttpServletResponseWrapper has been removed. Use encodeURL instead.
Method encodeRedirectUrl in javax.servlet.http.HttpServletResponseWrapper has been removed. Use encodeRedirectURL instead.
Method setStatus(int, String) in javax.servlet.http.HttpServletResponseWrapper has been removed. Use sendError(int, String) instead.
METHOD_CALL
Method getValue in javax.servlet.http.HttpSession has been removed. Use getAttribute instead.
METHOD_CALL
Method getValueNames in javax.servlet.http.HttpSession has been removed. Use getAttributeNames instead.
METHOD_CALL
Method putValue in javax.servlet.http.HttpSession has been removed. Use setAttribute instead.
METHOD_CALL
Method removeValue in javax.servlet.http.HttpSession has been removed. Use removeAttribute instead.
web.xml element references a javax-prefixed class name
© 2015 - 2025 Weber Informatics LLC | Privacy Policy