Fixes #9887 - Deprecate CGI Servlet. (#9889)

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2023-06-08 10:19:24 +02:00 committed by GitHub
parent a471c08717
commit c29491e5ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 12 deletions

View File

@ -121,18 +121,6 @@
<url-pattern>/dispatch/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>CGI</servlet-name>
<servlet-class>org.eclipse.jetty.servlets.CGI</servlet-class>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>CGI</servlet-name>
<url-pattern>/cgi-bin/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Chat</servlet-name>
<servlet-class>com.acme.ChatServlet</servlet-class>

View File

@ -62,7 +62,10 @@ import org.slf4j.LoggerFactory;
* <dt>ignoreExitState</dt>
* <dd>If true then do not act on a non-zero exec exit status")</dd>
* </dl>
*
* @deprecated do not use, no replacement, will be removed in a future release.
*/
@Deprecated(forRemoval = true)
public class CGI extends HttpServlet
{
private static final long serialVersionUID = -6182088932884791074L;