├── .github ├── ISSUE_TEMPLATE │ └── tck_challenge.md ├── dependabot.yml └── workflows │ └── maven.yml ├── .gitignore ├── .mvn ├── extensions.xml ├── jvm.config └── maven-build-cache-config.xml ├── CONTRIBUTING.md ├── LICENSE.md ├── NOTICE.md ├── README.md ├── api ├── etc │ └── config │ │ ├── copyright-eclipse.txt │ │ ├── copyright-exclude │ │ ├── copyright-oracle.txt │ │ └── ee4j-eclipse-formatting.xml ├── pom.xml └── src │ ├── main │ ├── java │ │ ├── jakarta │ │ │ └── servlet │ │ │ │ ├── AsyncContext.java │ │ │ │ ├── AsyncEvent.java │ │ │ │ ├── AsyncListener.java │ │ │ │ ├── DispatcherType.java │ │ │ │ ├── Filter.java │ │ │ │ ├── FilterChain.java │ │ │ │ ├── FilterConfig.java │ │ │ │ ├── FilterRegistration.java │ │ │ │ ├── GenericFilter.java │ │ │ │ ├── GenericServlet.java │ │ │ │ ├── HttpConstraintElement.java │ │ │ │ ├── HttpMethodConstraintElement.java │ │ │ │ ├── LocalStrings.properties │ │ │ │ ├── LocalStrings_fr.properties │ │ │ │ ├── LocalStrings_ja.properties │ │ │ │ ├── MultipartConfigElement.java │ │ │ │ ├── ReadListener.java │ │ │ │ ├── Registration.java │ │ │ │ ├── RequestDispatcher.java │ │ │ │ ├── Servlet.java │ │ │ │ ├── ServletConfig.java │ │ │ │ ├── ServletConnection.java │ │ │ │ ├── ServletContainerInitializer.java │ │ │ │ ├── ServletContext.java │ │ │ │ ├── ServletContextAttributeEvent.java │ │ │ │ ├── ServletContextAttributeListener.java │ │ │ │ ├── ServletContextEvent.java │ │ │ │ ├── ServletContextListener.java │ │ │ │ ├── ServletException.java │ │ │ │ ├── ServletInputStream.java │ │ │ │ ├── ServletOutputStream.java │ │ │ │ ├── ServletRegistration.java │ │ │ │ ├── ServletRequest.java │ │ │ │ ├── ServletRequestAttributeEvent.java │ │ │ │ ├── ServletRequestAttributeListener.java │ │ │ │ ├── ServletRequestEvent.java │ │ │ │ ├── ServletRequestListener.java │ │ │ │ ├── ServletRequestWrapper.java │ │ │ │ ├── ServletResponse.java │ │ │ │ ├── ServletResponseWrapper.java │ │ │ │ ├── ServletSecurityElement.java │ │ │ │ ├── SessionCookieConfig.java │ │ │ │ ├── SessionTrackingMode.java │ │ │ │ ├── UnavailableException.java │ │ │ │ ├── WriteListener.java │ │ │ │ ├── annotation │ │ │ │ ├── HandlesTypes.java │ │ │ │ ├── HttpConstraint.java │ │ │ │ ├── HttpMethodConstraint.java │ │ │ │ ├── MultipartConfig.java │ │ │ │ ├── ServletSecurity.java │ │ │ │ ├── WebFilter.java │ │ │ │ ├── WebInitParam.java │ │ │ │ ├── WebListener.java │ │ │ │ ├── WebServlet.java │ │ │ │ └── package.html │ │ │ │ ├── descriptor │ │ │ │ ├── JspConfigDescriptor.java │ │ │ │ ├── JspPropertyGroupDescriptor.java │ │ │ │ ├── TaglibDescriptor.java │ │ │ │ └── package.html │ │ │ │ ├── http │ │ │ │ ├── Cookie.java │ │ │ │ ├── HttpFilter.java │ │ │ │ ├── HttpServlet.java │ │ │ │ ├── HttpServletMapping.java │ │ │ │ ├── HttpServletRequest.java │ │ │ │ ├── HttpServletRequestWrapper.java │ │ │ │ ├── HttpServletResponse.java │ │ │ │ ├── HttpServletResponseWrapper.java │ │ │ │ ├── HttpSession.java │ │ │ │ ├── HttpSessionActivationListener.java │ │ │ │ ├── HttpSessionAttributeListener.java │ │ │ │ ├── HttpSessionBindingEvent.java │ │ │ │ ├── HttpSessionBindingListener.java │ │ │ │ ├── HttpSessionEvent.java │ │ │ │ ├── HttpSessionIdListener.java │ │ │ │ ├── HttpSessionListener.java │ │ │ │ ├── HttpUpgradeHandler.java │ │ │ │ ├── LocalStrings.properties │ │ │ │ ├── LocalStrings_es.properties │ │ │ │ ├── LocalStrings_fr.properties │ │ │ │ ├── LocalStrings_ja.properties │ │ │ │ ├── MappingMatch.java │ │ │ │ ├── Part.java │ │ │ │ ├── PushBuilder.java │ │ │ │ ├── WebConnection.java │ │ │ │ └── package.html │ │ │ │ └── package.html │ │ └── module-info.java │ ├── javadoc │ │ └── doc-files │ │ │ ├── expert-draft-bg-blank.graffle │ │ │ ├── expert-draft-bg-blank.png │ │ │ ├── expert-draft-bg-non-blank.graffle │ │ │ ├── expert-draft-bg-non-blank.png │ │ │ ├── expert-draft-bg.png │ │ │ └── speclicense.html │ └── resources │ │ └── jakarta │ │ └── servlet │ │ └── resources │ │ ├── j2ee_1_4.xsd │ │ ├── j2ee_web_services_1_1.xsd │ │ ├── j2ee_web_services_client_1_1.xsd │ │ ├── jakartaee_10.xsd │ │ ├── jakartaee_11.xsd │ │ ├── jakartaee_9.xsd │ │ ├── jakartaee_web_services_2_0.xsd │ │ ├── jakartaee_web_services_client_2_0.xsd │ │ ├── javaee_5.xsd │ │ ├── javaee_6.xsd │ │ ├── javaee_7.xsd │ │ ├── javaee_8.xsd │ │ ├── javaee_web_services_1_2.xsd │ │ ├── javaee_web_services_1_3.xsd │ │ ├── javaee_web_services_1_4.xsd │ │ ├── javaee_web_services_client_1_2.xsd │ │ ├── javaee_web_services_client_1_3.xsd │ │ ├── javaee_web_services_client_1_4.xsd │ │ ├── jsp_2_0.xsd │ │ ├── jsp_2_1.xsd │ │ ├── jsp_2_2.xsd │ │ ├── jsp_2_3.xsd │ │ ├── jsp_3_0.xsd │ │ ├── jsp_3_1.xsd │ │ ├── jsp_4_0.xsd │ │ ├── web-app_2_2.dtd │ │ ├── web-app_2_3.dtd │ │ ├── web-app_2_4.xsd │ │ ├── web-app_2_5.xsd │ │ ├── web-app_3_0.xsd │ │ ├── web-app_3_1.xsd │ │ ├── web-app_4_0.xsd │ │ ├── web-app_5_0.xsd │ │ ├── web-app_6_0.xsd │ │ ├── web-app_6_1.xsd │ │ ├── web-common_3_0.xsd │ │ ├── web-common_3_1.xsd │ │ ├── web-common_4_0.xsd │ │ ├── web-common_5_0.xsd │ │ ├── web-common_6_0.xsd │ │ ├── web-common_6_1.xsd │ │ ├── web-fragment_3_0.xsd │ │ ├── web-fragment_3_1.xsd │ │ ├── web-fragment_4_0.xsd │ │ ├── web-fragment_5_0.xsd │ │ ├── web-fragment_6_0.xsd │ │ ├── web-fragment_6_1.xsd │ │ ├── web-jsptaglibrary_1_1.dtd │ │ ├── web-jsptaglibrary_1_2.dtd │ │ ├── web-jsptaglibrary_2_0.xsd │ │ ├── web-jsptaglibrary_2_1.xsd │ │ ├── web-jsptaglibrary_3_0.xsd │ │ ├── web-jsptaglibrary_3_1.xsd │ │ └── web-jsptaglibrary_4_0.xsd │ └── test │ └── java │ └── ee │ └── jakarta │ └── servlet │ ├── MockServletConfig.java │ ├── MockServletContext.java │ ├── MockServletOutputStream.java │ ├── MockServletRequest.java │ ├── MockServletResponse.java │ └── http │ ├── CanonicalUriPathTest.java │ ├── CookieTest.java │ ├── HttpServletTest.java │ ├── MockHttpServletRequest.java │ └── MockHttpServletResponse.java ├── copyright-exclude ├── exclude.xml ├── pom.xml ├── spec ├── README.md ├── assembly.xml ├── pom.xml └── src │ └── main │ ├── asciidoc │ ├── images │ │ ├── jakarta_ee_logo_schooner_color_stacked_default.png │ │ ├── state-transition.drawio │ │ ├── state-transition.png │ │ └── state-transition.svg │ ├── license-efsl.adoc │ ├── servlet-spec-body.adoc │ └── servlet-spec.adoc │ └── theme │ └── jakartaee-theme.yml └── tck ├── README.md ├── pom.xml ├── tck-dist ├── pom.xml └── src │ └── main │ ├── assembly │ └── assembly.xml │ └── resources │ ├── artifact-install.sh │ └── eftl-1.1.adoc ├── tck-docs ├── ServletJavadocAssertions.html ├── ServletSpecAssertions.html ├── ServletTCK6.2-ReleaseNotes.html ├── TCK-Exclude-List.txt ├── index.html └── userguide │ ├── README.md │ ├── pom.xml │ └── src │ ├── main │ └── jbake │ │ ├── assets │ │ ├── README.md │ │ ├── css │ │ │ └── style.css │ │ └── img │ │ │ └── eclipse_foundation_logo_tiny.png │ │ ├── content │ │ ├── README │ │ ├── attributes.conf │ │ ├── config.adoc │ │ ├── config.inc │ │ ├── debug-tips.inc │ │ ├── debug.adoc │ │ ├── defns.inc │ │ ├── faq.adoc │ │ ├── install-server-vi.inc │ │ ├── install-server.inc │ │ ├── install.adoc │ │ ├── intro.adoc │ │ ├── intro.inc │ │ ├── packages.inc │ │ ├── platforms.inc │ │ ├── preface.adoc │ │ ├── rebuild.adoc │ │ ├── rebuild.inc │ │ ├── req-software.inc │ │ ├── rules.adoc │ │ ├── rules.inc │ │ ├── tck-packages.inc │ │ ├── title.adoc │ │ ├── title.inc │ │ ├── toc.adoc │ │ ├── using-examples.inc │ │ ├── using.adoc │ │ └── using.inc │ │ ├── jbake.properties │ │ └── templates │ │ ├── footer.ftl │ │ ├── header.ftl │ │ ├── menu.ftl │ │ └── page.ftl │ └── theme │ └── jakartaee-theme.yml ├── tck-runtime ├── pom.xml └── src │ └── main │ ├── java │ └── servlet │ │ └── tck │ │ ├── api │ │ ├── common │ │ │ └── sharedfiles │ │ │ │ ├── HSessionAttributeListener.java │ │ │ │ ├── HSessionListener.java │ │ │ │ ├── SCAttributeListener.java │ │ │ │ ├── SCListener.java │ │ │ │ ├── SRAttributeListener.java │ │ │ │ └── SRListener.java │ │ ├── jakarta_servlet │ │ │ ├── asynccontext │ │ │ │ ├── ACListener.java │ │ │ │ ├── ACListener1.java │ │ │ │ ├── ACListener2.java │ │ │ │ ├── ACListenerBad.java │ │ │ │ ├── AsyncContextTests.java │ │ │ │ ├── AsyncTestServlet.java │ │ │ │ ├── AsyncTestsServlet.java │ │ │ │ ├── RequestWrapper.java │ │ │ │ ├── ResponseWrapper.java │ │ │ │ └── servlet_js_asynccontext_web.xml │ │ │ ├── asyncevent │ │ │ │ ├── AsyncTestServlet.java │ │ │ │ ├── AsynceventTests.java │ │ │ │ └── servlet_js_asyncevent_web.xml │ │ │ ├── dispatchertype │ │ │ │ ├── DispatcherTypeTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_dispatchertype_web.xml │ │ │ ├── dispatchtest │ │ │ │ ├── DispatchTestServlet.java │ │ │ │ ├── DispatchTests.java │ │ │ │ ├── DispatchTests1.java │ │ │ │ ├── DispatchTests10.java │ │ │ │ ├── DispatchTests11.java │ │ │ │ ├── DispatchTests12.java │ │ │ │ ├── DispatchTests13.java │ │ │ │ ├── DispatchTests14.java │ │ │ │ ├── DispatchTests15.java │ │ │ │ ├── DispatchTests16.java │ │ │ │ ├── DispatchTests17.java │ │ │ │ ├── DispatchTests18.java │ │ │ │ ├── DispatchTests19.java │ │ │ │ ├── DispatchTests2.java │ │ │ │ ├── DispatchTests20.java │ │ │ │ ├── DispatchTests3.java │ │ │ │ ├── DispatchTests4.java │ │ │ │ ├── DispatchTests5.java │ │ │ │ ├── DispatchTests6.java │ │ │ │ ├── DispatchTestsServlet.java │ │ │ │ ├── TestListener.java │ │ │ │ ├── TestListener0.java │ │ │ │ ├── TestListener1.java │ │ │ │ ├── TestListener2.java │ │ │ │ ├── TestListener3.java │ │ │ │ ├── servlet_js_dispatchtest1_web.xml │ │ │ │ └── servlet_js_dispatchtest_web.xml │ │ │ ├── dofilter │ │ │ │ ├── CTSResponseWrapper.java │ │ │ │ ├── DoFilerTests.java │ │ │ │ ├── ForwardedServlet.java │ │ │ │ ├── IncludedServlet.java │ │ │ │ ├── SetHeaderResponseFilter.java │ │ │ │ ├── TestServlet.java │ │ │ │ ├── WrapResponseFilter.java │ │ │ │ └── servlet_js_dofilter_web.xml │ │ │ ├── filter │ │ │ │ ├── DoFilterTestServlet.java │ │ │ │ ├── DoFilter_Filter.java │ │ │ │ ├── FilterTests.java │ │ │ │ ├── InitFilterConfigTestServlet.java │ │ │ │ ├── InitFilter_Filter.java │ │ │ │ └── servlet_js_filter_web.xml │ │ │ ├── filterchain │ │ │ │ ├── FilterChainTestServlet.java │ │ │ │ ├── FilterChainTests.java │ │ │ │ ├── FilterChain_Filter1.java │ │ │ │ ├── FilterChain_Filter2.java │ │ │ │ └── servlet_js_filterchain_web.xml │ │ │ ├── filterconfig │ │ │ │ ├── FilterConfigTests.java │ │ │ │ ├── GetFilterNameTestServlet.java │ │ │ │ ├── GetFilterName_Filter.java │ │ │ │ ├── GetInitParamNamesNullTestServlet.java │ │ │ │ ├── GetInitParamNamesNull_Filter.java │ │ │ │ ├── GetInitParamNamesTestServlet.java │ │ │ │ ├── GetInitParamNames_Filter.java │ │ │ │ ├── GetInitParamNullTestServlet.java │ │ │ │ ├── GetInitParamNull_Filter.java │ │ │ │ ├── GetInitParamTestServlet.java │ │ │ │ ├── GetInitParam_Filter.java │ │ │ │ ├── GetServletContextTestServlet.java │ │ │ │ ├── GetServletContext_Filter.java │ │ │ │ └── servlet_js_filterconfig_web.xml │ │ │ ├── filterrequestdispatcher │ │ │ │ ├── DummyServlet.java │ │ │ │ ├── ErrorPage.java │ │ │ │ ├── FilterRequestDispatcherTests.java │ │ │ │ ├── ForwardTest1Servlet.java │ │ │ │ ├── ForwardTestServlet.java │ │ │ │ ├── ForwardedServlet.java │ │ │ │ ├── IncludeTest1Servlet.java │ │ │ │ ├── IncludeTestServlet.java │ │ │ │ ├── IncludedServlet.java │ │ │ │ ├── RequestTestServlet.java │ │ │ │ ├── TestServlet.java │ │ │ │ ├── Test_Filter.java │ │ │ │ └── servlet_js_filterrequestdispatcher_web.xml │ │ │ ├── genericfilter │ │ │ │ ├── GenericFilterTests.java │ │ │ │ ├── GetFilterNameTestServlet.java │ │ │ │ ├── GetFilterName_Filter.java │ │ │ │ ├── GetInitParamNamesNullTestServlet.java │ │ │ │ ├── GetInitParamNamesNull_Filter.java │ │ │ │ ├── GetInitParamNamesTestServlet.java │ │ │ │ ├── GetInitParamNames_Filter.java │ │ │ │ ├── GetInitParamNullTestServlet.java │ │ │ │ ├── GetInitParamNull_Filter.java │ │ │ │ ├── GetInitParamTestServlet.java │ │ │ │ ├── GetInitParam_Filter.java │ │ │ │ ├── GetServletContextTestServlet.java │ │ │ │ ├── GetServletContext_Filter.java │ │ │ │ ├── InitFilterConfigTestServlet.java │ │ │ │ ├── InitFilterConfig_Filter.java │ │ │ │ ├── InitFilterTestServlet.java │ │ │ │ ├── InitFilter_Filter.java │ │ │ │ └── servlet_js_genericfilter_web.xml │ │ │ ├── genericservlet │ │ │ │ ├── DestroyTestServlet.java │ │ │ │ ├── GenericServletTests.java │ │ │ │ ├── InitServletExceptionTestServlet.java │ │ │ │ ├── InitTestServlet.java │ │ │ │ ├── Init_ServletConfigServletExceptionTestServlet.java │ │ │ │ ├── Init_ServletConfigTestServlet.java │ │ │ │ ├── ServiceTestServlet.java │ │ │ │ ├── ServletErrorPage.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_genericservlet_web.xml │ │ │ ├── registration │ │ │ │ ├── RegistrationTests.java │ │ │ │ ├── TestListener.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_registration_web.xml │ │ │ ├── requestdispatcher │ │ │ │ ├── ForwardedServlet.java │ │ │ │ ├── ForwardedServlet2.java │ │ │ │ ├── ForwardedServlet3.java │ │ │ │ ├── IncludedServlet.java │ │ │ │ ├── RequestDispatcherTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_requestdispatcher_web.xml │ │ │ ├── scattributeevent │ │ │ │ ├── SCAttributeEventListener.java │ │ │ │ ├── SCAttributeListener.java │ │ │ │ ├── ScAttributeEventTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_scattributeevent_web.xml │ │ │ ├── scattributelistener │ │ │ │ ├── SCAttributeListener.java │ │ │ │ ├── ScAttributeListenerTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_scattributelistener_web.xml │ │ │ ├── scattributelistener40 │ │ │ │ ├── SCAttributeListener40.java │ │ │ │ ├── ScAttributeListenerTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_scattributelistener40_web.xml │ │ │ ├── scevent │ │ │ │ ├── SContextEventListener.java │ │ │ │ ├── ScEventTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_scevent_web.xml │ │ │ ├── scinitializer │ │ │ │ ├── addfilter │ │ │ │ │ ├── AddFilterString.java │ │ │ │ │ ├── AddFilterTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_addfilter_web.xml │ │ │ │ ├── addfilter1 │ │ │ │ │ ├── AddFilter1Tests.java │ │ │ │ │ ├── AddFilterClass.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_addfilter1_web.xml │ │ │ │ ├── addlistener │ │ │ │ │ ├── AddListenerTests.java │ │ │ │ │ ├── SCAttributeListener.java │ │ │ │ │ ├── SCListener.java │ │ │ │ │ ├── SRAttributeListener.java │ │ │ │ │ ├── SRListener.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_addlistener_web.xml │ │ │ │ ├── addlistener1 │ │ │ │ │ ├── AddListener1Tests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_addlistener1_web.xml │ │ │ │ ├── addservlet │ │ │ │ │ ├── AddServletTests.java │ │ │ │ │ ├── DummyServlet.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_addservlet_web.xml │ │ │ │ ├── addservlet1 │ │ │ │ │ ├── AddServlet1Tests.java │ │ │ │ │ ├── DummyServlet.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_addservlet1_web.xml │ │ │ │ ├── createfilter │ │ │ │ │ ├── CreateFilter.java │ │ │ │ │ ├── CreateFilterTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_createfilter_web.xml │ │ │ │ ├── createlistener │ │ │ │ │ ├── CreateListenerTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_createlistener_web.xml │ │ │ │ ├── createservlet │ │ │ │ │ ├── CreateServletTests.java │ │ │ │ │ ├── DummyServlet.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_createservlet_web.xml │ │ │ │ ├── getclassloader │ │ │ │ │ ├── GetClassLoaderTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_getclassloader_web.xml │ │ │ │ ├── getdefaultsessiontrackingmodes │ │ │ │ │ ├── GetDefaultSessionTrackingModesTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_getdefaultsessiontrackingmode_web.xml │ │ │ │ ├── geteffectivemajorversion │ │ │ │ │ ├── GetEffectiveMajorVersionTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_geteffectivemajorversion_web.xml │ │ │ │ ├── geteffectiveminorversion │ │ │ │ │ ├── GetEffectiveMinorVersionTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_geteffectiveminorversion_web.xml │ │ │ │ ├── geteffectivesessiontrackingmodes │ │ │ │ │ ├── GetEffectiveSessionTrackingModesTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_geteffectivesessiontrackingmode_web.xml │ │ │ │ ├── getfilterregistration │ │ │ │ │ ├── GetFilterRegistrationTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestFilter.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_getfilterregistration_web.xml │ │ │ │ ├── getfilterregistrations │ │ │ │ │ ├── GetFilterRegistrationsTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestFilter.java │ │ │ │ │ ├── TestFilter1.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_getfilterregistrations_web.xml │ │ │ │ ├── getservletregistration │ │ │ │ │ ├── GetServletRegistrationTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_getservletregistration_web.xml │ │ │ │ ├── getservletregistrations │ │ │ │ │ ├── GetServletRegistrationsTest.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_getservletregistrations_web.xml │ │ │ │ ├── getsessioncookieconfig │ │ │ │ │ ├── GetSessionCookieconfigTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_getsessioncookieconfig_web.xml │ │ │ │ ├── setinitparameter │ │ │ │ │ ├── SetInitParameterTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_setinitparameter_web.xml │ │ │ │ └── setsessiontrackingmodes │ │ │ │ │ ├── SetSessionTrackingModesTests.java │ │ │ │ │ ├── TCKServletContainerInitializer.java │ │ │ │ │ ├── TestListener.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ │ └── servlet_sci_setsessiontrackingmode_web.xml │ │ │ ├── sclistener │ │ │ │ ├── ContextListener.java │ │ │ │ ├── ScListenerTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_sclistener_web.xml │ │ │ ├── sclistener40 │ │ │ │ ├── SCListener40.java │ │ │ │ ├── ScListener40Tests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_sclistener40_web.xml │ │ │ ├── servlet │ │ │ │ ├── CoreServletTest.java │ │ │ │ ├── DoDestroyedTestServlet.java │ │ │ │ ├── DoInit1TestServlet.java │ │ │ │ ├── DoInit2TestServlet.java │ │ │ │ ├── DoServiceTestServlet.java │ │ │ │ ├── DoServletConfigTestServlet.java │ │ │ │ ├── DoServletInfoTestServlet.java │ │ │ │ ├── PUTestServlet.java │ │ │ │ ├── ServletTests.java │ │ │ │ └── servlet_js_servlet_web.xml │ │ │ ├── servletconfig │ │ │ │ ├── ServletConfigTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_servletconfig_web.xml │ │ │ ├── servletcontext │ │ │ │ ├── GetNamedDispatcherTestServlet.java │ │ │ │ ├── ServletContextTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_servletcontext_web.xml │ │ │ ├── servletcontext30 │ │ │ │ ├── AddFilterClass.java │ │ │ │ ├── AddFilterNotFound.java │ │ │ │ ├── AddFilterString.java │ │ │ │ ├── AddSCAttributeListenerClass.java │ │ │ │ ├── AddSCAttributeListenerString.java │ │ │ │ ├── AddSCListenerClass.java │ │ │ │ ├── AddSCListenerString.java │ │ │ │ ├── AddSRAttributeListenerClass.java │ │ │ │ ├── AddSRAttributeListenerString.java │ │ │ │ ├── AddSRListenerClass.java │ │ │ │ ├── AddSRListenerString.java │ │ │ │ ├── AddServletClass.java │ │ │ │ ├── AddServletNotFound.java │ │ │ │ ├── AddServletString.java │ │ │ │ ├── BadFilter.java │ │ │ │ ├── BadListener.java │ │ │ │ ├── BadServlet.java │ │ │ │ ├── CreateFilter.java │ │ │ │ ├── CreateSCAttributeListener.java │ │ │ │ ├── CreateSCListener.java │ │ │ │ ├── CreateSRAttributeListener.java │ │ │ │ ├── CreateSRListener.java │ │ │ │ ├── CreateServlet.java │ │ │ │ ├── DuplicateFilterClass.java │ │ │ │ ├── DuplicateFilterString.java │ │ │ │ ├── DuplicateServletClass.java │ │ │ │ ├── DuplicateServletString.java │ │ │ │ ├── FilterTestServlet.java │ │ │ │ ├── ServletContext30Tests.java │ │ │ │ ├── TestListener.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_servletcontext30_web.xml │ │ │ ├── servletcontext301 │ │ │ │ ├── AddGenericEventListenerClass.java │ │ │ │ ├── ServletContext301Tests.java │ │ │ │ ├── TestListener.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_servletcontext301_web.xml │ │ │ ├── servletcontext302 │ │ │ │ ├── ServletContext302Tests.java │ │ │ │ ├── TestListener.java │ │ │ │ └── servlet_js_servletcontext302_web.xml │ │ │ ├── servletcontext303 │ │ │ │ ├── ServletContext303Tests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_servletcontext303_web.xml │ │ │ ├── servletcontext304 │ │ │ │ ├── CreateGenericEventListener.java │ │ │ │ ├── ServletContext304Tests.java │ │ │ │ ├── TestListener.java │ │ │ │ └── servlet_js_servletcontext304_web.xml │ │ │ ├── servletcontext305 │ │ │ │ ├── AddSCListenerClass.java │ │ │ │ ├── AddSCListenerString.java │ │ │ │ ├── CreateSCListener.java │ │ │ │ ├── ServletContext305Tests.java │ │ │ │ ├── TestContainerInitializer.java │ │ │ │ ├── TestServlet.java │ │ │ │ ├── jakarta.servlet.ServletContainerInitializer │ │ │ │ └── servlet_js_servletcontext305_web.xml │ │ │ ├── servletcontext306 │ │ │ │ ├── ServletContext306Tests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_servletcontext306_web.xml │ │ │ ├── servletcontext31 │ │ │ │ ├── ServletContext31Tests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_servletcontext31_web.xml │ │ │ ├── servletcontext40 │ │ │ │ ├── AddListener.java │ │ │ │ ├── ServletContext40Tests.java │ │ │ │ ├── TestListener.java │ │ │ │ ├── TestServlet.java │ │ │ │ ├── TestServlet2.java │ │ │ │ ├── listener.tld │ │ │ │ └── servlet_js_servletcontext40_web.xml │ │ │ ├── servletexception │ │ │ │ ├── ServletExceptionTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_servletexception_web.xml │ │ │ ├── servletinputstream │ │ │ │ ├── ReadLineTestServlet.java │ │ │ │ ├── ServletInputStreamTests.java │ │ │ │ └── servlet_js_servletinputstream_web.xml │ │ │ ├── servletoutputstream │ │ │ │ ├── ServletOutputStreamTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_servletoutputstream_web.xml │ │ │ ├── servletrequest │ │ │ │ ├── GetParameterNamesEmptyEnumTestServlet.java │ │ │ │ ├── GetReaderUnsupportedEncodingExceptionTestServlet.java │ │ │ │ ├── ServletRequestTests.java │ │ │ │ ├── SetCharacterEncodingTest.java │ │ │ │ ├── SetCharacterEncodingUnsupportedEncodingExceptionTest.java │ │ │ │ └── servlet_js_servletrequest_web.xml │ │ │ ├── servletrequest1 │ │ │ │ ├── ServletRequest1Tests.java │ │ │ │ └── servlet_js_servletrequest1_web.xml │ │ │ ├── servletrequest30 │ │ │ │ ├── AsyncTestServlet.java │ │ │ │ ├── AsyncTests.java │ │ │ │ ├── SecondServlet.java │ │ │ │ ├── ServletRequest30Tests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_servletrequest30_web.xml │ │ │ ├── servletrequestwrapper │ │ │ │ ├── ServletRequestWrapperTests.java │ │ │ │ ├── SetCharacterEncodingTest.java │ │ │ │ ├── SetCharacterEncodingTestWrapper.java │ │ │ │ ├── SetCharacterEncodingUnsupportedEncodingExceptionTest.java │ │ │ │ ├── SetCharacterEncodingUnsupportedEncodingExceptionTestWrapper.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_servletrequestwrapper_web.xml │ │ │ ├── servletrequestwrapper30 │ │ │ │ ├── AsyncTestServletWrapper.java │ │ │ │ ├── ErrorServletWrapper.java │ │ │ │ ├── ServletRequestWrapper30Tests.java │ │ │ │ ├── TestServletWrapper.java │ │ │ │ └── servlet_js_servletrequestwrapper30_web.xml │ │ │ ├── servletrequestwrapper30x │ │ │ │ ├── IsWrapperForTest.java │ │ │ │ ├── ServletRequestWrapper30xTests.java │ │ │ │ ├── TCKServletRequestWrapper.java │ │ │ │ ├── TCKServletRequestsubWrapper.java │ │ │ │ └── servlet_js_servletrequestwrapper30x_web.xml │ │ │ ├── servletresponse │ │ │ │ ├── ServletResponseTests.java │ │ │ │ ├── SetCharacterEncodingTestServlet.java │ │ │ │ └── servlet_js_servletresponse_web.xml │ │ │ ├── servletresponsewrapper │ │ │ │ ├── ServletResponseWrapperTests.java │ │ │ │ ├── SetCharacterEncodingTestServlet.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_servletresponsewrapper_web.xml │ │ │ ├── servletresponsewrapper30 │ │ │ │ ├── IsWrapperForTest.java │ │ │ │ ├── ServletResponseWrapper30Tests.java │ │ │ │ ├── TCKServletResponseWrapper.java │ │ │ │ ├── TCKServletResponsesubWrapper.java │ │ │ │ └── servlet_js_servletresponsewrapper30_web.xml │ │ │ ├── sessiontrackingmode │ │ │ │ ├── SessionTrackingModeTests.java │ │ │ │ ├── TestListener.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_sessiontrackingmode_web.xml │ │ │ ├── sessiontrackingmode1 │ │ │ │ ├── SessionTrackingMode1Tests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_sessiontrackingmode1_web.xml │ │ │ ├── sessiontrackingmode2 │ │ │ │ ├── SessionTrackingMode2Tests.java │ │ │ │ ├── TestListener.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_sessiontrackingmode2_web.xml │ │ │ ├── sessiontrackingmode3 │ │ │ │ ├── SessionTrackingMode3Tests.java │ │ │ │ ├── TestListener.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_sessiontrackingmode3_web.xml │ │ │ ├── sessiontrackingmode4 │ │ │ │ ├── SessionTrackingMode4Tests.java │ │ │ │ ├── TestListener.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_sessiontrackingmode4_web.xml │ │ │ ├── srattributeevent │ │ │ │ ├── SRAttributeListener.java │ │ │ │ ├── SrAttributeEventTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_srattributeevent_web.xml │ │ │ ├── srattributelistener │ │ │ │ ├── SRAttributeListener.java │ │ │ │ ├── SrAttributeListenerTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_srattributelistener_web.xml │ │ │ ├── srattributelistener40 │ │ │ │ ├── SRAttributeListener40.java │ │ │ │ ├── SrAttributeListener40Tests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_srattributelistener40_web.xml │ │ │ ├── srevent │ │ │ │ ├── SrEventTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_srevent_web.xml │ │ │ ├── srlistener │ │ │ │ ├── SRListener.java │ │ │ │ ├── SrListenerTests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_srlistener_web.xml │ │ │ ├── srlistener40 │ │ │ │ ├── SRListener40.java │ │ │ │ ├── SrListener40Tests.java │ │ │ │ ├── TestServlet.java │ │ │ │ └── servlet_js_srlistener40_web.xml │ │ │ └── unavailableexception │ │ │ │ ├── TestServlet.java │ │ │ │ ├── UnAvailableExceptionTests.java │ │ │ │ ├── UnavailableServlet.java │ │ │ │ └── servlet_js_unavailableexception_web.xml │ │ └── jakarta_servlet_http │ │ │ ├── asynccontext │ │ │ ├── ACListener.java │ │ │ ├── ACListener1.java │ │ │ ├── ACListener2.java │ │ │ ├── ACListenerBad.java │ │ │ ├── AsyncContextTests.java │ │ │ ├── AsyncTestServlet.java │ │ │ ├── AsyncTests.java │ │ │ ├── RequestWrapper.java │ │ │ ├── ResponseWrapper.java │ │ │ └── servlet_jsh_asynccontext_web.xml │ │ │ ├── cookie │ │ │ ├── CookieTests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_cookie_web.xml │ │ │ ├── httpfilter │ │ │ ├── HttpFilterTestServlet.java │ │ │ ├── HttpFilterTests.java │ │ │ ├── HttpFilter_Filter1.java │ │ │ ├── HttpFilter_Filter2.java │ │ │ └── servlet_jsh_httpfilter_web.xml │ │ │ ├── httpservlet │ │ │ ├── DestroyTestServlet.java │ │ │ ├── HttpServletTests.java │ │ │ ├── InitTestServlet.java │ │ │ ├── Init_ServletConfigTestServlet.java │ │ │ ├── ServiceTestServlet.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_httpservlet_web.xml │ │ │ ├── httpservletrequest │ │ │ ├── GetParameterNamesEmptyEnumTestServlet.java │ │ │ ├── GetQueryStringNullTestServlet.java │ │ │ ├── GetReaderUnsupportedEncodingExceptionTestServlet.java │ │ │ ├── GetServletPathEmptyStringTestServlet.java │ │ │ ├── HttpServletRequestTests.java │ │ │ ├── SetCharacterEncodingTest.java │ │ │ ├── SetCharacterEncodingUnsupportedEncodingExceptionTest.java │ │ │ ├── doHeadTest.java │ │ │ ├── getServletContextTest.java │ │ │ └── servlet_jsh_httpservletrequest_web.xml │ │ │ ├── httpservletrequest1 │ │ │ ├── HttpServletRequest1Tests.java │ │ │ └── servlet_jsh_httpservletrequest1_web.xml │ │ │ ├── httpservletrequest30 │ │ │ ├── HttpServletRequest30Tests.java │ │ │ ├── LoginTestServlet.java │ │ │ └── servlet_jsh_httpservletrequest30_web.xml │ │ │ ├── httpservletrequest31 │ │ │ ├── HttpServletRequest31Tests.java │ │ │ └── servlet_jsh_httpservletrequest31_web.xml │ │ │ ├── httpservletrequest40 │ │ │ ├── DispatchServlet.java │ │ │ ├── ForwardFilter.java │ │ │ ├── ForwardServlet.java │ │ │ ├── HttpServletRequest40Tests.java │ │ │ ├── IncludeServlet.java │ │ │ ├── NamedForwardServlet.java │ │ │ ├── NamedIncludeServlet.java │ │ │ ├── TestServlet.java │ │ │ ├── TrailerTestServlet.java │ │ │ ├── Utilities.java │ │ │ └── servlet_jsh_httpservletrequest40_web.xml │ │ │ ├── httpservletrequestwrapper │ │ │ ├── HttpServletRequestWrapperTests.java │ │ │ ├── SetCharacterEncodingTest.java │ │ │ ├── SetCharacterEncodingTestWrapper.java │ │ │ ├── SetCharacterEncodingUnsupportedEncodingExceptionTest.java │ │ │ ├── SetCharacterEncodingUnsupportedEncodingExceptionTestWrapper.java │ │ │ ├── TCKHttpSessionIDListener.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_HSReqWrapper_web.xml │ │ │ ├── httpservletresponse │ │ │ ├── GetContentTypeNullTestServlet.java │ │ │ ├── HttpServletResponseTests.java │ │ │ ├── RedirectedTestServlet.java │ │ │ ├── ServletErrorPage.java │ │ │ ├── SetCharacterEncodingTestServlet.java │ │ │ └── servlet_jsh_httpservletresponse_web.xml │ │ │ ├── httpservletresponse30 │ │ │ ├── HttpServletResponse30Tests.java │ │ │ └── servlet_jsh_httpservletresponse30_web.xml │ │ │ ├── httpservletresponse40 │ │ │ ├── HttpServletResponse40Tests.java │ │ │ ├── TrailerTestServlet.java │ │ │ ├── TrailerTestServlet2.java │ │ │ └── servlet_jsh_httpservletresponse40_web.xml │ │ │ ├── httpservletresponsewrapper │ │ │ ├── HttpServletResponseWrapperTests.java │ │ │ ├── RedirectedTestServlet.java │ │ │ ├── SetCharacterEncodingTestServlet.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_HSRespWrapper_web.xml │ │ │ ├── httpservletresponsewrapper30 │ │ │ ├── HttpServletResponseWrapper30Tests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_HSRespWrapper30_web.xml │ │ │ ├── httpsession │ │ │ ├── ExpireHttpSession.java │ │ │ ├── GetLastAccessedTime.java │ │ │ ├── HttpSessionTests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_httpsession_web.xml │ │ │ ├── httpsessionactivationlistener40 │ │ │ ├── HSActivationListener40.java │ │ │ ├── HttpSessionActivationListener40Tests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_httpsessionactivationlistener40_web.xml │ │ │ ├── httpsessionattributelistener │ │ │ ├── HSAttributeListener.java │ │ │ ├── HttpSessionAttributeListenerTests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_httpsessionattributelistener_web.xml │ │ │ ├── httpsessionattributelistener40 │ │ │ ├── HSAttributeListener40.java │ │ │ ├── HttpSessionAttributeListener40Tests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_httpsessionattributelistener40_web.xml │ │ │ ├── httpsessionbindingevent │ │ │ ├── HSBindingEvent.java │ │ │ ├── HttpSessionBindingEventTests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_httpsessionbindingevent_web.xml │ │ │ ├── httpsessionbindinglistener │ │ │ ├── HSBindingListener.java │ │ │ ├── HttpSessionBindingListenerTests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_httpsessionbindinglistener_web.xml │ │ │ ├── httpsessionbindinglistener40 │ │ │ ├── HSBindingListener40.java │ │ │ ├── HttpSessionBindingListener40Tests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_httpsessionbindinglistener40_web.xml │ │ │ ├── httpsessionevent │ │ │ ├── HSEvent.java │ │ │ ├── HttpSessionEventTests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_httpsessionevent_web.xml │ │ │ ├── httpsessionidlistener │ │ │ ├── HttpSessionIdListenerTests.java │ │ │ ├── TCKHttpSessionIDListener.java │ │ │ └── servlet_jsh_httpsessionidlistener_web.xml │ │ │ ├── httpsessionlistener │ │ │ ├── HSListener.java │ │ │ ├── HttpSessionListenerTests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_httpsessionlistener_web.xml │ │ │ ├── httpsessionlistener40 │ │ │ ├── HSListener40.java │ │ │ ├── HttpSessionListener40Tests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_httpsessionlistener40_web.xml │ │ │ ├── httpsessionx │ │ │ ├── ExpireHttpSession.java │ │ │ ├── GetNewSession.java │ │ │ ├── HttpSessionxTests.java │ │ │ ├── InvalidateHttpSession.java │ │ │ ├── SetMaxInterval.java │ │ │ ├── TestServlet.java │ │ │ ├── servlet_jsh_httpsessionx2_web.xml │ │ │ └── servlet_jsh_httpsessionx_web.xml │ │ │ ├── httpupgradehandler │ │ │ ├── HttpUpgradeHandlerTests.java │ │ │ ├── TCKHttpUpgradeHandler.java │ │ │ ├── TCKReadListener.java │ │ │ └── TestServlet.java │ │ │ ├── part │ │ │ ├── PartTests.java │ │ │ ├── TestServlet.java │ │ │ ├── test.txt │ │ │ └── test2.txt │ │ │ ├── part1 │ │ │ ├── Part1Tests.java │ │ │ └── TestServletWrapper.java │ │ │ ├── readlistener │ │ │ ├── ReadListenerTests.java │ │ │ ├── TestListener.java │ │ │ └── TestServlet.java │ │ │ ├── readlistener1 │ │ │ ├── ReadListener1Tests.java │ │ │ ├── TestListener.java │ │ │ └── TestServlet.java │ │ │ ├── servletcontext303 │ │ │ ├── ServletContext303Tests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_servletcontext303_web.xml │ │ │ ├── servletcontext304 │ │ │ ├── AddHttpSessionListenerClass.java │ │ │ ├── AddHttpSessionListenerString.java │ │ │ ├── CreateHttpSessionListener.java │ │ │ ├── ServletContext304Tests.java │ │ │ ├── TestListener.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_servletcontext304_web.xml │ │ │ ├── servletcontext305 │ │ │ ├── AddHttpSessionAttributeListenerClass.java │ │ │ ├── AddHttpSessionAttributeListenerString.java │ │ │ ├── CreateHttpSessionAttributeListener.java │ │ │ ├── ServletContext305Tests.java │ │ │ ├── TestListener.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_servletcontext305_web.xml │ │ │ ├── sessioncookieconfig │ │ │ ├── SessionCookieConfigTests.java │ │ │ ├── TestListener.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_jsh_sessioncookieconfig_web.xml │ │ │ └── writelistener │ │ │ ├── TestListener.java │ │ │ ├── TestServlet.java │ │ │ └── WriteListenerTests.java │ │ ├── common │ │ ├── client │ │ │ ├── AbstractTckTest.java │ │ │ ├── BaseTckTest.java │ │ │ └── handler │ │ │ │ ├── ALLOWHandler.java │ │ │ │ ├── ContentTypeHandler.java │ │ │ │ ├── DefaultHandler.java │ │ │ │ ├── Handler.java │ │ │ │ ├── HandlerFactory.java │ │ │ │ ├── LocationHandler.java │ │ │ │ ├── SetCookieHandler.java │ │ │ │ └── WWWAuthenticateHandler.java │ │ ├── request │ │ │ ├── Header.java │ │ │ ├── HttpExchange.java │ │ │ ├── HttpRequestClient.java │ │ │ ├── HttpResponse.java │ │ │ ├── RequestClient.java │ │ │ ├── SecBasicClient.java │ │ │ ├── SecformClient.java │ │ │ ├── TestCase.java │ │ │ ├── ValidationFactory.java │ │ │ ├── ValidationStrategy.java │ │ │ └── WebTestCase.java │ │ ├── response │ │ │ ├── HttpResponseClient.java │ │ │ ├── HttpResponseTestServlet.java │ │ │ ├── ResponseClient.java │ │ │ ├── ResponseTestServlet.java │ │ │ ├── ResponseTests.java │ │ │ └── validation │ │ │ │ └── WebValidatorBase.java │ │ ├── servlets │ │ │ ├── CommonServlets.java │ │ │ ├── GenericCheckTestResultServlet.java │ │ │ ├── GenericTCKServlet.java │ │ │ ├── HttpCheckTestResultServlet.java │ │ │ ├── HttpRequestTestServlet.java │ │ │ ├── HttpTCKServlet.java │ │ │ ├── RequestTestServlet.java │ │ │ └── RequestTests.java │ │ └── util │ │ │ ├── Data.java │ │ │ ├── ServletTestUtil.java │ │ │ ├── StaticLog.java │ │ │ └── TCKLoadableExtension.java │ │ ├── compat │ │ └── LeadingSlash │ │ │ ├── WithLeadingSlash │ │ │ ├── WithLeadingSlashTestServlet.java │ │ │ ├── WithLeadingSlashTests.java │ │ │ └── servlet_compat_LeadingSlash_With_web.xml │ │ │ └── WithoutLeadingSlash │ │ │ ├── WithoutLeadingSlashTestServlet.java │ │ │ ├── WithoutLeadingSlashTests.java │ │ │ └── servlet_compat_LeadingSlash_Without_web.xml │ │ ├── pluggability │ │ ├── aordering │ │ │ ├── AorderingTests.java │ │ │ └── servlet_spec_aordering_web.xml │ │ ├── aordering1 │ │ │ ├── Aordering1Tests.java │ │ │ └── servlet_spec_aordering1_web.xml │ │ ├── aordering2 │ │ │ ├── Aordering2Tests.java │ │ │ └── servlet_spec_aordering2_web.xml │ │ ├── aordering3 │ │ │ ├── Aordering3Tests.java │ │ │ └── servlet_spec_aordering3_web.xml │ │ ├── aordering4 │ │ │ ├── Aordering4Tests.java │ │ │ └── servlet_spec_aordering4_web.xml │ │ ├── api │ │ │ ├── jakarta_servlet │ │ │ │ ├── asynccontext │ │ │ │ │ ├── AsyncContextTests.java │ │ │ │ │ └── servlet_plu_asynccontext_web-fragment.xml │ │ │ │ ├── asyncevent │ │ │ │ │ ├── AsyncEventTests.java │ │ │ │ │ └── servlet_plu_asyncevent_web-fragment.xml │ │ │ │ ├── dispatchertype │ │ │ │ │ ├── DispatcherTypeTests.java │ │ │ │ │ └── servlet_plu_dispatchertype_web-fragment.xml │ │ │ │ ├── dofilter │ │ │ │ │ ├── DoFilterTests.java │ │ │ │ │ └── servlet_plu_dofilter_web-fragment.xml │ │ │ │ ├── filter │ │ │ │ │ ├── FilterTests.java │ │ │ │ │ └── servlet_plu_filter_web-fragment.xml │ │ │ │ ├── filterchain │ │ │ │ │ ├── FilterChainTests.java │ │ │ │ │ └── servlet_plu_filterchain_web-fragment.xml │ │ │ │ ├── filterconfig │ │ │ │ │ ├── FilterConfigTests.java │ │ │ │ │ └── servlet_plu_filterconfig_web-fragment.xml │ │ │ │ ├── filterrequestdispatcher │ │ │ │ │ ├── FilterRequestDispatcherTests.java │ │ │ │ │ └── servlet_plu_filterrequestdispatcher_web-fragment.xml │ │ │ │ ├── genericservlet │ │ │ │ │ ├── GenericServletTests.java │ │ │ │ │ └── servlet_plu_genericservlet_web-fragment.xml │ │ │ │ ├── registration │ │ │ │ │ ├── RegistrationTests.java │ │ │ │ │ └── servlet_plu_registration_web-fragment.xml │ │ │ │ ├── requestdispatcher │ │ │ │ │ ├── RequestDispatcherTests.java │ │ │ │ │ └── servlet_plu_requestdispatcher_web-fragment.xml │ │ │ │ ├── scattributeevent │ │ │ │ │ ├── ScAttributeEventTests.java │ │ │ │ │ └── servlet_plu_scattributeevent_web-fragment.xml │ │ │ │ ├── scattributelistener │ │ │ │ │ ├── ScAttributeListenerTests.java │ │ │ │ │ └── servlet_plu_scattributelistener_web-fragment.xml │ │ │ │ ├── scevent │ │ │ │ │ ├── ScEventTests.java │ │ │ │ │ └── servlet_plu_scevent_web-fragment.xml │ │ │ │ ├── sclistener │ │ │ │ │ ├── ScListenerTests.java │ │ │ │ │ └── servlet_plu_sclistener_web-fragment.xml │ │ │ │ ├── servlet │ │ │ │ │ ├── ServletTests.java │ │ │ │ │ └── servlet_plu_servlet_web-fragment.xml │ │ │ │ ├── servletconfig │ │ │ │ │ ├── ServletConfigTests.java │ │ │ │ │ └── servlet_plu_servletconfig_web-fragment.xml │ │ │ │ ├── servletcontext │ │ │ │ │ ├── ServletContextTests.java │ │ │ │ │ └── servlet_plu_servletcontext_web-fragment.xml │ │ │ │ ├── servletcontext30 │ │ │ │ │ ├── ServletContext30Tests.java │ │ │ │ │ ├── servlet_plu_servletcontext30_web-fragment.xml │ │ │ │ │ └── web.xml │ │ │ │ ├── servletexception │ │ │ │ │ ├── ServletExceptionTests.java │ │ │ │ │ └── servlet_plu_servletexception_web-fragment.xml │ │ │ │ ├── servletinputstream │ │ │ │ │ ├── ServletInputStreamTests.java │ │ │ │ │ └── servlet_plu_servletinputstream_web-fragment.xml │ │ │ │ ├── servletoutputstream │ │ │ │ │ ├── ServletOutputStreamTests.java │ │ │ │ │ └── servlet_plu_servletoutputstream_web-fragment.xml │ │ │ │ ├── servletrequest │ │ │ │ │ ├── ServletRequestTests.java │ │ │ │ │ └── servlet_plu_servletrequest_web-fragment.xml │ │ │ │ ├── servletrequest1 │ │ │ │ │ ├── ServletRequest1Tests.java │ │ │ │ │ └── servlet_plu_servletrequest1_web-fragment.xml │ │ │ │ ├── servletrequest30 │ │ │ │ │ ├── ServletRequest30Tests.java │ │ │ │ │ └── servlet_plu_servletrequest30_web-fragment.xml │ │ │ │ ├── servletrequestwrapper │ │ │ │ │ ├── ServletRequestWrapperTests.java │ │ │ │ │ └── servlet_plu_servletrequestwrapper_web-fragment.xml │ │ │ │ ├── servletrequestwrapper30 │ │ │ │ │ ├── ServletRequestWrapper30Tests.java │ │ │ │ │ └── servlet_plu_servletrequestwrapper30_web-fragment.xml │ │ │ │ ├── servletrequestwrapper30x │ │ │ │ │ ├── ServletRequestWrapper30xTests.java │ │ │ │ │ └── servlet_plu_servletrequestwrapper30x_web-fragment.xml │ │ │ │ ├── servletresponse │ │ │ │ │ ├── ServletResponseTests.java │ │ │ │ │ └── servlet_plu_servletresponse_web-fragment.xml │ │ │ │ ├── servletresponsewrapper │ │ │ │ │ ├── ServletResponseWrapperTests.java │ │ │ │ │ └── servlet_plu_servletresponsewrapper_web-fragment.xml │ │ │ │ ├── servletresponsewrapper30 │ │ │ │ │ ├── ServletResponseWrapper30Tests.java │ │ │ │ │ └── servlet_plu_servletresponsewrapper30_web-fragment.xml │ │ │ │ ├── sessiontrackingmode │ │ │ │ │ ├── SessionTrackingModeTests.java │ │ │ │ │ └── servlet_plu_sessiontrackingmode_web-fragment.xml │ │ │ │ ├── srattributeevent │ │ │ │ │ ├── SrAttributeEventTests.java │ │ │ │ │ └── servlet_plu_srattributeevent_web-fragment.xml │ │ │ │ ├── srattributelistener │ │ │ │ │ ├── SrAttributeListenerTests.java │ │ │ │ │ └── servlet_plu_srattributelistener_web-fragment.xml │ │ │ │ ├── srevent │ │ │ │ │ ├── SrEventTests.java │ │ │ │ │ └── servlet_plu_srevent_web-fragment.xml │ │ │ │ ├── srlistener │ │ │ │ │ ├── SrListenerTests.java │ │ │ │ │ └── servlet_plu_srlistener_web-fragment.xml │ │ │ │ └── unavailableexception │ │ │ │ │ ├── UnAvailableExceptionTests.java │ │ │ │ │ └── servlet_plu_unavailableexception_web-fragment.xml │ │ │ └── jakarta_servlet_http │ │ │ │ ├── cookie │ │ │ │ ├── CookieTests.java │ │ │ │ └── servlet_pluh_cookie_web-fragment.xml │ │ │ │ ├── httpservlet │ │ │ │ ├── HttpServletTests.java │ │ │ │ └── servlet_pluh_httpservlet_web-fragment.xml │ │ │ │ ├── httpservletrequest │ │ │ │ ├── HttpServletRequestTests.java │ │ │ │ ├── servlet_pluh_httpservletrequest_web-fragment.xml │ │ │ │ └── servlet_pluh_httpservletrequest_web.war.sun-web.xml │ │ │ │ ├── httpservletrequest30 │ │ │ │ ├── HttpServletRequest30Tests.java │ │ │ │ └── servlet_pluh_httpservletrequest30_web-fragment.xml │ │ │ │ ├── httpservletrequestwrapper │ │ │ │ ├── HttpServletRequestWrapperTests.java │ │ │ │ ├── servlet_pluh_HSReqWrapper_web-fragment.xml │ │ │ │ └── servlet_pluh_HSReqWrapper_web.war.sun-web.xml │ │ │ │ ├── httpservletresponse │ │ │ │ ├── HttpServletResponseTests.java │ │ │ │ └── servlet_pluh_httpservletresponse_web-fragment.xml │ │ │ │ ├── httpservletresponse30 │ │ │ │ ├── HttpServletResponse30Tests.java │ │ │ │ └── servlet_pluh_httpservletresponse30_web-fragment.xml │ │ │ │ ├── httpservletresponsewrapper │ │ │ │ ├── HttpServletResponseWrapperTests.java │ │ │ │ └── servlet_pluh_HSRespWrapper_web-fragment.xml │ │ │ │ ├── httpservletresponsewrapper30 │ │ │ │ ├── HttpServletResponseWrapper30Tests.java │ │ │ │ └── servlet_pluh_HSRespWrapper30_web-fragment.xml │ │ │ │ ├── httpsession │ │ │ │ ├── HttpSessionTests.java │ │ │ │ └── servlet_pluh_httpsession_web-fragment.xml │ │ │ │ ├── httpsessionattributelistener │ │ │ │ ├── HttpSessionAttributeListenerTests.java │ │ │ │ └── servlet_pluh_httpsessionattributelistener_web-fragment.xml │ │ │ │ ├── httpsessionbindingevent │ │ │ │ ├── HttpSessionBindingEventTests.java │ │ │ │ └── servlet_pluh_httpsessionbindingevent_web-fragment.xml │ │ │ │ ├── httpsessionbindinglistener │ │ │ │ ├── HttpSessionBindingListenerTests.java │ │ │ │ └── servlet_pluh_httpsessionbindinglistener_web-fragment.xml │ │ │ │ ├── httpsessionevent │ │ │ │ ├── HttpSessionEventTests.java │ │ │ │ └── servlet_pluh_httpsessionevent_web-fragment.xml │ │ │ │ ├── httpsessionlistener │ │ │ │ ├── HttpSessionListenerTests.java │ │ │ │ └── servlet_pluh_httpsessionlistener_web-fragment.xml │ │ │ │ └── sessioncookieconfig │ │ │ │ ├── SessionCookieConfigTests.java │ │ │ │ └── servlet_pluh_sessioncookieconfig_web-fragment.xml │ │ ├── common │ │ │ ├── CommonArchives.java │ │ │ ├── RequestListener.java │ │ │ ├── RequestListener1.java │ │ │ ├── RequestListener2.java │ │ │ ├── RequestListener3.java │ │ │ ├── RequestListener4.java │ │ │ ├── RequestListener5.java │ │ │ ├── RequestListener6.java │ │ │ ├── RequestListener7.java │ │ │ ├── TestServlet1.java │ │ │ ├── TestServlet2.java │ │ │ ├── TestServlet3.java │ │ │ ├── TestServlet4.java │ │ │ ├── web-fragment_1.xml │ │ │ ├── web-fragment_2.xml │ │ │ ├── web-fragment_3.xml │ │ │ ├── web-fragment_4.xml │ │ │ ├── web-fragment_5.xml │ │ │ ├── web-fragment_6.xml │ │ │ └── web-fragment_7.xml │ │ └── fragment │ │ │ ├── FragmentTests.java │ │ │ ├── TestFilter.java │ │ │ ├── TestFilter1.java │ │ │ ├── TestFilter2.java │ │ │ ├── TestFilter3.java │ │ │ ├── TestServlet1.java │ │ │ ├── TestServlet2.java │ │ │ ├── TestServlet3.java │ │ │ ├── TestServlet4.java │ │ │ ├── TestServlet5.java │ │ │ ├── servlet_spec_fragment_web-fragment.xml │ │ │ ├── servlet_spec_fragment_web-fragment_1.xml │ │ │ ├── servlet_spec_fragment_web-fragment_2.xml │ │ │ ├── servlet_spec_fragment_web-fragment_3.xml │ │ │ └── servlet_spec_fragment_web.xml │ │ ├── signature │ │ ├── PackageList.java │ │ ├── ServletSigTest.java │ │ ├── SigTest.java │ │ ├── SigTestData.java │ │ ├── SigTestDriver.java │ │ ├── SigTestResult.java │ │ ├── SignatureTestDriver.java │ │ └── SignatureTestDriverFactory.java │ │ └── spec │ │ ├── annotationservlet │ │ ├── webfilter │ │ │ ├── Servlet1.java │ │ │ ├── TestFilter1.java │ │ │ ├── TestFilter2.java │ │ │ ├── TestServlet.java │ │ │ ├── WebFilterTests.java │ │ │ └── servlet_annotationservlet_webfilter_web.xml │ │ ├── weblistener │ │ │ ├── ContextListener.java │ │ │ ├── HSAttributeListener.java │ │ │ ├── HSListener.java │ │ │ ├── HttpTestServlet.java │ │ │ ├── SCAttributeListener.java │ │ │ ├── SRAttributeListener.java │ │ │ ├── SRListener.java │ │ │ ├── TestServlet.java │ │ │ ├── WebListenerTests.java │ │ │ └── servlet_annotationservlet_weblistener_web.xml │ │ ├── webservlet │ │ │ ├── Servlet1.java │ │ │ ├── Servlet2.java │ │ │ ├── Servlet3.java │ │ │ ├── Servlet4.java │ │ │ ├── Servlet5.java │ │ │ └── WebServletTests.java │ │ ├── webservletapi │ │ │ ├── TestListener.java │ │ │ └── WebServletApiTests.java │ │ └── webservletdd │ │ │ ├── WebServletddTests.java │ │ │ └── servlet_annotationservlet_webservletdd_web.xml │ │ ├── async │ │ ├── AsyncTests.java │ │ ├── Filter10.java │ │ ├── Filter4.java │ │ ├── Filter5.java │ │ ├── Filter6.java │ │ ├── Filter7.java │ │ ├── Filter8.java │ │ ├── Filter9.java │ │ ├── Servlet1.java │ │ ├── Servlet10.java │ │ ├── Servlet2.java │ │ ├── Servlet3.java │ │ ├── Servlet4.java │ │ ├── Servlet5.java │ │ ├── Servlet6.java │ │ ├── Servlet7.java │ │ ├── Servlet8.java │ │ ├── Servlet9.java │ │ ├── TestServlet.java │ │ └── servlet_spec_async_web.xml │ │ ├── defaultcontextpath │ │ ├── DefaultContextPathTests.java │ │ ├── TestServlet.java │ │ └── servlet_spec_defaultcontextpath_web.xml │ │ ├── defaultmapping │ │ ├── DefaultMappingTests.java │ │ ├── TestServlet6.java │ │ └── servlet_spec_defaultmapping_web.xml │ │ ├── dir_struct │ │ ├── ClassFileTestServlet.java │ │ ├── DirStructTests.java │ │ ├── JarFileTestServlet.java │ │ └── servlet_spec_dirstruct_web.xml │ │ ├── errorpage │ │ ├── ErrorPageTests.java │ │ ├── SecondServletErrorPage.java │ │ ├── ServletErrorPage.java │ │ ├── TestException.java │ │ ├── TestServlet.java │ │ ├── WrappedException.java │ │ └── servlet_spec_errorpage_web.xml │ │ ├── errorpage1 │ │ ├── ErrorPage1Tests.java │ │ ├── TestServlet.java │ │ ├── TestServletException.java │ │ └── servlet_spec_errorpage1_web.xml │ │ ├── httpservletresponse │ │ ├── HttpServletResponseTests.java │ │ ├── HttpTestServlet.java │ │ ├── RedirectedTestServlet.java │ │ └── servlet_spec_httpservletresponse_web.xml │ │ ├── i18n │ │ └── encoding │ │ │ ├── EncodingTests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_spec_i18n_encoding_web.xml │ │ ├── listenerorder │ │ ├── ListenerOrderTests.java │ │ ├── ServletRequestListener1.java │ │ ├── ServletRequestListener2.java │ │ ├── ServletRequestListener3.java │ │ ├── TestServlet.java │ │ └── servlet_spec_listenerorder_web.xml │ │ ├── multifiltermapping │ │ ├── ErrorPage.java │ │ ├── MultiFilterMappingTests.java │ │ ├── TestServlet.java │ │ ├── TestServlet6.java │ │ ├── TestServlet7.java │ │ ├── Test_ErrorFilter.java │ │ ├── Test_ForwardFilter.java │ │ ├── Test_IncludeFilter.java │ │ ├── Test_RequestFilter.java │ │ └── servlet_spec_multifiltermapping_web.xml │ │ ├── pluggability │ │ ├── common │ │ │ ├── RequestListener.java │ │ │ ├── RequestListener1.java │ │ │ ├── RequestListener2.java │ │ │ ├── RequestListener3.java │ │ │ ├── RequestListener4.java │ │ │ ├── RequestListener5.java │ │ │ ├── RequestListener6.java │ │ │ ├── RequestListener7.java │ │ │ ├── TestServlet1.java │ │ │ ├── TestServlet2.java │ │ │ ├── TestServlet3.java │ │ │ ├── TestServlet4.java │ │ │ ├── web-fragment_1.xml │ │ │ ├── web-fragment_2.xml │ │ │ ├── web-fragment_3.xml │ │ │ ├── web-fragment_4.xml │ │ │ ├── web-fragment_5.xml │ │ │ ├── web-fragment_6.xml │ │ │ └── web-fragment_7.xml │ │ └── ordering │ │ │ ├── PluggabilityOrderingTests.java │ │ │ ├── servlet_spec_ordering1_web.xml │ │ │ ├── web-fragment_1.xml │ │ │ ├── web-fragment_2.xml │ │ │ └── web-fragment_3.xml │ │ ├── protocols │ │ └── http │ │ │ ├── ProtocolsHttpTests.java │ │ │ ├── TestServlet.java │ │ │ └── servlet_spec_protocols_http_web.xml │ │ ├── rdspecialchar │ │ ├── IncludedServlet.java │ │ ├── RdSpecialCharTests.java │ │ ├── TestServlet.java │ │ └── servlet_spec_rdspecialchar_web.xml │ │ ├── requestdispatcher │ │ ├── ForwardedServlet.java │ │ ├── HttpTestServlet.java │ │ ├── IncludedServlet.java │ │ ├── MultiForwardedServlet.java │ │ ├── RequestDispatcherTests.java │ │ ├── TestServlet.java │ │ └── servlet_spec_requestdispatcher_web.xml │ │ ├── requestmap │ │ ├── RequestMapTests.java │ │ ├── TestServlet1.java │ │ ├── TestServlet2.java │ │ ├── TestServlet3.java │ │ ├── TestServlet4.java │ │ ├── TestServlet5.java │ │ └── servlet_js_requestmap_web.xml │ │ ├── security │ │ ├── annotations │ │ │ ├── AnnotationsTests.java │ │ │ ├── DenyAllServlet.java │ │ │ ├── GuestPageTestServlet.java │ │ │ ├── PartialDDServlet.java │ │ │ ├── ServletSecTestServlet.java │ │ │ ├── UnProtectedTestServlet.java │ │ │ ├── servlet_sec_annotations.ear.sun-application.xml │ │ │ ├── servlet_sec_annotations_web.war.sun-web.xml │ │ │ └── servlet_sec_annotations_web.xml │ │ ├── clientcert │ │ │ ├── ClientCertTests.java │ │ │ ├── ServletSecTestServlet.java │ │ │ ├── clientcert.ear.sun-application.xml │ │ │ ├── clientcert_web.war.sun-web.xml │ │ │ └── clientcert_web.xml │ │ ├── clientcertanno │ │ │ ├── ClientCertAnnoTests.java │ │ │ ├── ServletSecTestServlet.java │ │ │ ├── clientcertanno.ear.sun-application.xml │ │ │ ├── clientcertanno_web.war.sun-web.xml │ │ │ └── clientcertanno_web.xml │ │ ├── denyUncovered │ │ │ ├── AllMethodsAllowedAnno.java │ │ │ ├── DenyUncoveredTests.java │ │ │ ├── ExcludeAuthConstraint.java │ │ │ ├── PartialDDServlet.java │ │ │ ├── TestServlet.java │ │ │ ├── servlet_sec_denyUncovered.ear.sun-application.xml │ │ │ ├── servlet_sec_denyUncovered_web.war.sun-web.xml │ │ │ └── servlet_sec_denyUncovered_web.xml │ │ ├── metadatacomplete │ │ │ ├── DenyAllServlet.java │ │ │ ├── GuestPageTestServlet.java │ │ │ ├── MetaDataCompleteTests.java │ │ │ ├── ServletSecTestServlet.java │ │ │ ├── UnProtectedTestServlet.java │ │ │ ├── servlet_sec_metadatacomplete.ear.sun-application.xml │ │ │ ├── servlet_sec_metadatacomplete_web.war.sun-web.xml │ │ │ └── servlet_sec_metadatacomplete_web.xml │ │ ├── secbasic │ │ │ ├── GuestPageAnnoTestServlet.java │ │ │ ├── GuestPageTestServlet.java │ │ │ ├── README │ │ │ ├── RoleReverseAnnoTestServlet.java │ │ │ ├── RoleReverseTestServlet.java │ │ │ ├── SecBasicTests.java │ │ │ ├── ServletSecAnnoTestServlet.java │ │ │ ├── ServletSecTestServlet.java │ │ │ ├── UnProtectedAnnoTestServlet.java │ │ │ ├── UnProtectedTestServlet.java │ │ │ ├── servlet_sec_secbasic.ear.sun-application.xml │ │ │ ├── servlet_sec_secbasic_web.war.sun-web.xml │ │ │ └── servlet_sec_secbasic_web.xml │ │ └── secform │ │ │ ├── ControlServlet.java │ │ │ ├── ForwardedServlet.java │ │ │ ├── GuestPageAnnoTestServlet.java │ │ │ ├── GuestPageTestServlet.java │ │ │ ├── IncludedServlet.java │ │ │ ├── OneTestServlet.java │ │ │ ├── README │ │ │ ├── RoleReverseAnnoTestServlet.java │ │ │ ├── RoleReverseTestServlet.java │ │ │ ├── SampleTestServlet.java │ │ │ ├── SecFormTests.java │ │ │ ├── ServletProgrammaticAuthen.java │ │ │ ├── ServletProgrammaticLogin.java │ │ │ ├── ServletProgrammaticLogout.java │ │ │ ├── ServletSecAnnoTestServlet.java │ │ │ ├── ServletSecTestServlet.java │ │ │ ├── TwoTestServlet.java │ │ │ ├── UnProtectedAnnoTestServlet.java │ │ │ ├── UnProtectedTestServlet.java │ │ │ ├── allRolesTestServlet.java │ │ │ ├── servlet_sec_secform.ear.sun-application.xml │ │ │ ├── servlet_sec_secform_web.war.sun-web.xml │ │ │ └── servlet_sec_secform_web.xml │ │ ├── serverpush │ │ ├── ServerPushTests.java │ │ ├── TestServlet.java │ │ ├── TestServlet2.java │ │ ├── TestServlet3.java │ │ ├── TestServlet4.java │ │ ├── TestServlet5.java │ │ ├── TestServlet6.java │ │ ├── TestServlet7.java │ │ ├── servlet_spec_serverpush_web.war.sun-web.xml │ │ └── servlet_spec_serverpush_web.xml │ │ ├── servletcontext │ │ ├── ServletContextTests.java │ │ ├── TestServlet.java │ │ └── servlet_spec_servletcontext_web.xml │ │ ├── servletmapping │ │ ├── ServletMappingTests.java │ │ ├── TestServlet1.java │ │ ├── TestServlet2.java │ │ ├── TestServlet4.java │ │ ├── TestServlet5.java │ │ └── servlet_js_servletmapping_web.xml │ │ ├── servletresponse │ │ ├── HttpTestServlet.java │ │ ├── TestServlet.java │ │ ├── servletResponseTests.java │ │ └── servlet_spec_servletresponse_web.xml │ │ ├── srlistener │ │ ├── ForwardedServlet.java │ │ ├── IncludedServlet.java │ │ ├── SRListener.java │ │ ├── SecondForwardedServlet.java │ │ ├── SecondIncludedServlet.java │ │ ├── SrListenerTests.java │ │ ├── TestServlet.java │ │ └── servlet_spec_srlistener_web.xml │ │ ├── webapps │ │ └── accesswebinf │ │ │ ├── AccessWebinfTests.java │ │ │ └── servlet_spec_webapps_accesswebinf_web.xml │ │ └── welcomefiles │ │ ├── WelcomeFilesTests.java │ │ └── servlet_js_welcomefiles_web.xml │ └── resources │ ├── META-INF │ └── services │ │ └── org.jboss.arquillian.core.spi.LoadableExtension │ ├── certificates │ ├── README │ ├── clientcert.jks │ ├── clientcert.p12 │ └── cts_cert │ └── servlet │ └── tck │ └── signature │ ├── jakarta.servlet.sig_6.2 │ ├── sig-test-pkg-list.txt │ └── sig-test.map └── tck-util ├── pom.xml └── src └── main ├── java └── servlet │ └── tck │ └── util │ ├── TestUtil.java │ └── WebUtil.java └── resources ├── api ├── jakarta_servlet │ ├── filterrequestdispatcher │ │ ├── dummy.html │ │ └── dummyJSP.jsp │ └── servletcontext40 │ │ └── addJspFile.jsp └── jakarta_servlet_http │ └── httpsession │ └── index.html ├── compat └── LeadingSlash │ ├── WithLeadingSlash │ └── WithLeadingSlashTest.gf │ └── WithoutLeadingSlash │ └── WithoutLeadingSlashTest.gf └── spec ├── crosscontext └── JSPAccessServlet.jsp ├── errorpage └── HTMLErrorPage.html ├── security └── secform │ ├── error.jsp │ └── login.jsp ├── serverpush └── index.html ├── webapps └── accesswebinf │ └── test.html └── welcomefiles ├── catalog └── default.jsp ├── default.jsp ├── foo ├── default.jsp ├── index.html └── order.jsp └── index.html /.github/ISSUE_TEMPLATE/tck_challenge.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: TCK Challenge 3 | about: Create a TCK Challenge 4 | title: '' 5 | labels: 'challenge' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Challenged tests** 11 | List the challenged tests with the fully qualified classnames and then the test methods, e.g. 12 | servlet.tck.api.jakarta_servlet.asynccontext#dispatchZeroArgTest() 13 | 14 | **TCK Version** 15 | Specify the version of the TCK, e.g. Jakarta Servlet 6.1.x 16 | 17 | **Description** 18 | A clear and concise description of why you think the tests are wrong. 19 | 20 | **Additional context** 21 | Add any other context about the challenge here. 22 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: "maven" 4 | directory: "/" 5 | target-branch: "master" 6 | schedule: 7 | interval: "weekly" 8 | - package-ecosystem: "github-actions" 9 | directory: "/" 10 | target-branch: "master" 11 | schedule: 12 | interval: "weekly" 13 | - package-ecosystem: "maven" 14 | directory: "/" 15 | target-branch: "6.1.x" 16 | schedule: 17 | interval: "weekly" 18 | - package-ecosystem: "github-actions" 19 | directory: "/" 20 | target-branch: "6.1.x" 21 | schedule: 22 | interval: "weekly" 23 | -------------------------------------------------------------------------------- /.github/workflows/maven.yml: -------------------------------------------------------------------------------- 1 | name: Java CI 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | 8 | runs-on: ubuntu-latest 9 | 10 | steps: 11 | - uses: actions/checkout@v4 12 | - name: Set up JDK 17 13 | uses: actions/setup-java@v4 14 | with: 15 | java-version: 17 16 | distribution: temurin 17 | cache: 'maven' 18 | - name: Set up Maven 19 | run: 20 | mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.2.0:wrapper "-Dmaven=3.9.4" 21 | - name: Build with Maven 22 | run: ./mvnw -B verify -Dvalidate-format 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.ipr 2 | *.iml 3 | *.iws 4 | *.swp 5 | *~ 6 | target/ 7 | .idea 8 | nbactions.xml 9 | .classpath 10 | .project 11 | .settings/ 12 | downloads/ 13 | .DS_Store 14 | /target-test/ 15 | -------------------------------------------------------------------------------- /.mvn/extensions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.apache.maven.extensions 4 | maven-build-cache-extension 5 | 1.2.0 6 | 7 | 8 | -------------------------------------------------------------------------------- /.mvn/jvm.config: -------------------------------------------------------------------------------- 1 | --add-opens java.base/sun.nio.ch=ALL-UNNAMED 2 | 3 | -------------------------------------------------------------------------------- /.mvn/maven-build-cache-config.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | XXMM 5 | true 6 | 7 | 8 | 9 | 10 | 11 | *.{java,xml,properties,mod,adoc,html,jsp} 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | install 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Jakarta Servlet 2 | 3 | This repository contains the code for Jakarta Servlet. 4 | 5 | [Online JavaDoc](https://javadoc.io/doc/jakarta.servlet/jakarta.servlet-api/) 6 | 7 | About Jakarta Servlet 8 | --------------------- 9 | Jakarta Servlet defines a server-side API for handling HTTP requests and responses. 10 | 11 | Building 12 | -------- 13 | Prerequisites: 14 | 15 | * JDK 17+ 16 | * Maven 3.9.0+ 17 | 18 | Run the build: 19 | 20 | `mvn install` 21 | 22 | The build runs copyright check and generates the jar, sources-jar and javadoc-jar by default. 23 | The API jar is built in /api/target. 24 | 25 | ## TCk Challenges 26 | 27 | All test challenges for Jakarta Servlet must be resolved by Active Resolution. 28 | Please see the TCK Users guide for more details. 29 | -------------------------------------------------------------------------------- /api/etc/config/copyright-eclipse.txt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) YYYY Contributors to the Eclipse Foundation 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | -------------------------------------------------------------------------------- /api/etc/config/copyright-exclude: -------------------------------------------------------------------------------- 1 | .dtd 2 | .png 3 | .xsd 4 | ee4j-eclipse-formatting.xml 5 | speclicense.html 6 | /etc/config/copyright-exclude 7 | /etc/config/copyright-eclipse.txt 8 | /etc/config/copyright-oracle.txt 9 | -------------------------------------------------------------------------------- /api/etc/config/copyright-oracle.txt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) YYYY Oracle and/or its affiliates and others. 3 | * All rights reserved. 4 | * 5 | * This program and the accompanying materials are made available under the 6 | * terms of the Eclipse Public License v. 2.0, which is available at 7 | * http://www.eclipse.org/legal/epl-2.0. 8 | * 9 | * This Source Code may also be made available under the following Secondary 10 | * Licenses when the conditions for such availability set forth in the 11 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | * version 2 with the GNU Classpath Exception, which is available at 13 | * https://www.gnu.org/software/classpath/license.html. 14 | * 15 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | */ 17 | 18 | -------------------------------------------------------------------------------- /api/src/main/java/jakarta/servlet/DispatcherType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 2020 Oracle and/or its affiliates and others. 3 | * All rights reserved. 4 | * 5 | * This program and the accompanying materials are made available under the 6 | * terms of the Eclipse Public License v. 2.0, which is available at 7 | * http://www.eclipse.org/legal/epl-2.0. 8 | * 9 | * This Source Code may also be made available under the following Secondary 10 | * Licenses when the conditions for such availability set forth in the 11 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | * version 2 with the GNU Classpath Exception, which is available at 13 | * https://www.gnu.org/software/classpath/license.html. 14 | * 15 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | */ 17 | 18 | package jakarta.servlet; 19 | 20 | /** 21 | * Enumeration of filter dispatcher types. 22 | * 23 | * @since Servlet 3.0 24 | */ 25 | public enum DispatcherType { 26 | FORWARD, INCLUDE, REQUEST, ASYNC, ERROR 27 | } 28 | -------------------------------------------------------------------------------- /api/src/main/java/jakarta/servlet/LocalStrings.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 1997, 2020 Oracle and/or its affiliates and others. 3 | # All rights reserved. 4 | # Copyright 2004 The Apache Software Foundation 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | # Default localized string information 20 | # Localized for Locale en_US 21 | 22 | err.not_iso8859_1=Not an ISO 8859-1 character: {0} 23 | err.servlet_config_not_initialized=ServletConfig has not been initialized 24 | value.true=true 25 | value.false=false 26 | -------------------------------------------------------------------------------- /api/src/main/java/jakarta/servlet/LocalStrings_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/api/src/main/java/jakarta/servlet/LocalStrings_fr.properties -------------------------------------------------------------------------------- /api/src/main/java/jakarta/servlet/LocalStrings_ja.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 1997, 2020 Oracle and/or its affiliates and others. 3 | # All rights reserved. 4 | # Copyright 2004 The Apache Software Foundation 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | # Default localized string information 20 | # Localized for Locale ja_JP 21 | 22 | err.not_iso8859_1=ISO 8859-1 \u306e\u6587\u5b57\u3067\u306f\u3042\u308a\u307e\u305b\u3093: {0} 23 | value.true=true 24 | value.false=false 25 | -------------------------------------------------------------------------------- /api/src/main/java/jakarta/servlet/SessionTrackingMode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 2020 Oracle and/or its affiliates and others. 3 | * All rights reserved. 4 | * 5 | * This program and the accompanying materials are made available under the 6 | * terms of the Eclipse Public License v. 2.0, which is available at 7 | * http://www.eclipse.org/legal/epl-2.0. 8 | * 9 | * This Source Code may also be made available under the following Secondary 10 | * Licenses when the conditions for such availability set forth in the 11 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | * version 2 with the GNU Classpath Exception, which is available at 13 | * https://www.gnu.org/software/classpath/license.html. 14 | * 15 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | */ 17 | 18 | package jakarta.servlet; 19 | 20 | /** 21 | * Enumeration of session tracking modes. 22 | * 23 | * @since Servlet 3.0 24 | */ 25 | public enum SessionTrackingMode { 26 | COOKIE, URL, SSL 27 | } 28 | -------------------------------------------------------------------------------- /api/src/main/java/jakarta/servlet/annotation/package.html: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | 24 | The jakarta.servlet.annotation package contains a number of annotations that allow users to use annotations to declare servlets, filters, listeners and specify the metadata for the declared component. @since Servlet 3.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /api/src/main/java/jakarta/servlet/descriptor/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | 23 | 24 | Provides programmatic access to a web application's configuration information that was aggregated from the 25 | web.xml 26 | and 27 | web-fragment.xml 28 | descriptors. @since Servlet 3.0 29 | 30 | 31 | -------------------------------------------------------------------------------- /api/src/main/java/jakarta/servlet/http/HttpUpgradeHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 2023 Oracle and/or its affiliates and others. 3 | * All rights reserved. 4 | * 5 | * This program and the accompanying materials are made available under the 6 | * terms of the Eclipse Public License v. 2.0, which is available at 7 | * http://www.eclipse.org/legal/epl-2.0. 8 | * 9 | * This Source Code may also be made available under the following Secondary 10 | * Licenses when the conditions for such availability set forth in the 11 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | * version 2 with the GNU Classpath Exception, which is available at 13 | * https://www.gnu.org/software/classpath/license.html. 14 | * 15 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | */ 17 | 18 | package jakarta.servlet.http; 19 | 20 | /** 21 | * This interface encapsulates the upgrade protocol processing. A HttpUpgradeHandler implementation would allow the 22 | * servlet container to communicate with it. 23 | * 24 | * @since Servlet 3.1 25 | */ 26 | public interface HttpUpgradeHandler { 27 | /** 28 | * It is called once the HTTP Upgrade process has been completed and the upgraded connection is ready to start using the 29 | * new protocol. 30 | * 31 | * @param wc the WebConnection object associated to this upgrade request 32 | */ 33 | void init(WebConnection wc); 34 | 35 | /** 36 | * It is called when the client is disconnected. 37 | */ 38 | void destroy(); 39 | } 40 | -------------------------------------------------------------------------------- /api/src/main/java/jakarta/servlet/http/LocalStrings_es.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 1997, 2023 Oracle and/or its affiliates and others. 3 | # All rights reserved. 4 | # Copyright 2004 The Apache Software Foundation 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | # Default localized string information 20 | # Localized para Locale es_ES 21 | 22 | err.cookie_name_is_token=El Nombre de Cookie {0} es una palabra reservada 23 | err.io.short_read=Lectura Corta 24 | 25 | http.method_not_implemented=El Metodo {0} no esta definido en la especificacion RFC 2068 y no es soportado por la API Servlet 26 | 27 | http.method_get_not_supported=El Metodo HTTP GET no es soportado por esta URL 28 | http.method_patch_not_supported=El Metodo HTTP PATCH no es soportado por esta URL 29 | http.method_post_not_supported=El Metodo HTTP POST no es soportado por esta URL 30 | http.method_put_not_supported=El Metodo HTTP PUT no es soportado por esta URL 31 | http.method_delete_not_supported=El Metodo HTTP DELETE no es soportado por esta URL 32 | -------------------------------------------------------------------------------- /api/src/main/java/jakarta/servlet/http/package.html: -------------------------------------------------------------------------------- 1 | 20 | 21 | 22 | 23 | 24 | 25 | The jakarta.servlet.http package contains a number of classes and interfaces that describe and define the contracts between a servlet class running under the HTTP protocol and the runtime environment provided for an instance of such a class by a conforming servlet container. 26 | 27 | 28 | -------------------------------------------------------------------------------- /api/src/main/java/jakarta/servlet/package.html: -------------------------------------------------------------------------------- 1 | 20 | 21 | 22 | 23 | 24 | 25 |

The jakarta.servlet package contains a number of classes and interfaces that describe and define the contracts between a servlet class and the runtime environment provided for an instance of such a class by a conforming servlet container. For version 4.0.1 and earlier, these classes and interfaces are described by the Java Servlet API Specification. For version 5.0.0 and later they are described by the Jakarta Servlet Specification.

26 | 27 | 28 | -------------------------------------------------------------------------------- /api/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2023 Contributors to the Eclipse Foundation 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | module jakarta.servlet { 17 | exports jakarta.servlet; 18 | exports jakarta.servlet.annotation; 19 | exports jakarta.servlet.descriptor; 20 | exports jakarta.servlet.http; 21 | 22 | opens jakarta.servlet.resources; 23 | } 24 | -------------------------------------------------------------------------------- /api/src/main/javadoc/doc-files/expert-draft-bg-blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/api/src/main/javadoc/doc-files/expert-draft-bg-blank.png -------------------------------------------------------------------------------- /api/src/main/javadoc/doc-files/expert-draft-bg-non-blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/api/src/main/javadoc/doc-files/expert-draft-bg-non-blank.png -------------------------------------------------------------------------------- /api/src/main/javadoc/doc-files/expert-draft-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/api/src/main/javadoc/doc-files/expert-draft-bg.png -------------------------------------------------------------------------------- /copyright-exclude: -------------------------------------------------------------------------------- 1 | copyright-exclude 2 | LICENSE 3 | CONTRIBUTING.md 4 | src/main/javadoc/doc-files/expert-draft-bg-blank.graffle 5 | src/main/javadoc/doc-files/expert-draft-bg-blank.png 6 | src/main/javadoc/doc-files/expert-draft-bg-non-blank.graffle 7 | src/main/javadoc/doc-files/expert-draft-bg-non-blank.png 8 | src/main/javadoc/doc-files/expert-draft-bg.png 9 | src/main/javadoc/doc-files/speclicense.html 10 | -------------------------------------------------------------------------------- /exclude.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /spec/README.md: -------------------------------------------------------------------------------- 1 | Jakarta Servlet Specification 2 | ============================= 3 | 4 | This project generates the Jakarta Servlet Specification. 5 | 6 | Building 7 | -------- 8 | 9 | Prerequisites: 10 | 11 | * JDK8+ 12 | * Maven 3.0.3+ 13 | 14 | Run the full build: 15 | 16 | `mvn install` 17 | 18 | Locate the html files: 19 | - `target/generated-docs/servlet-spec-.html` 20 | 21 | Locate the PDF files: 22 | - `target/generated-docs/servlet-spec-.pdf` 23 | -------------------------------------------------------------------------------- /spec/assembly.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | spec 22 | 23 | zip 24 | 25 | servlet-spec 26 | 27 | 28 | target/generated-docs 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /spec/src/main/asciidoc/images/jakarta_ee_logo_schooner_color_stacked_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/spec/src/main/asciidoc/images/jakarta_ee_logo_schooner_color_stacked_default.png -------------------------------------------------------------------------------- /spec/src/main/asciidoc/images/state-transition.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/spec/src/main/asciidoc/images/state-transition.png -------------------------------------------------------------------------------- /spec/src/main/asciidoc/servlet-spec.adoc: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2017, 2020 Contributors to the Eclipse Foundation 3 | // 4 | 5 | = Jakarta Servlet Specification 6 | :authors: Jakarta Servlet Team, https://projects.eclipse.org/projects/ee4j.servlet 7 | :email: https://dev.eclipse.org/mailman/listinfo/servlet-dev 8 | :version-label!: 9 | :doctype: book 10 | :license: Eclipse Foundation Specification License v1.0 11 | :source-highlighter: coderay 12 | :toc: left 13 | :toclevels: 4 14 | :sectnumlevels: 4 15 | :sectanchors: 16 | ifdef::backend-pdf[] 17 | :media: prepress 18 | :pagenums: 19 | :numbered: 20 | :sectnums: 21 | :title-logo-image: image:jakarta_ee_logo_schooner_color_stacked_default.png[pdfwidth=4.25in,align=right] 22 | endif::[] 23 | 24 | // == License 25 | :sectnums!: 26 | include::license-efsl.adoc[] 27 | 28 | // == Body 29 | :sectnums: 30 | include::servlet-spec-body.adoc[] 31 | -------------------------------------------------------------------------------- /tck/tck-docs/ServletTCK6.2-ReleaseNotes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/tck/tck-docs/ServletTCK6.2-ReleaseNotes.html -------------------------------------------------------------------------------- /tck/tck-docs/TCK-Exclude-List.txt: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2024 Contributors to the Eclipse Foundation 3 | # 4 | # This program and the accompanying materials are made available under the 5 | # terms of the Eclipse Public License v. 2.0, which is available at 6 | # http://www.eclipse.org/legal/epl-2.0. 7 | # 8 | # This Source Code may also be made available under the following Secondary 9 | # Licenses when the conditions for such availability set forth in the 10 | # Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | # version 2 with the GNU Classpath Exception, which is available at 12 | # https://www.gnu.org/software/classpath/license.html. 13 | # 14 | # SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | # 16 | 17 | # This file lists the excluded tests from Jakarta Servlet TCK. 18 | # This is intended only for documentation purpose and is not used to exclude any tests. 19 | # The tests are excluded from the test source using @Disabled tag in JUnit framework. 20 | # 21 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/assets/README.md: -------------------------------------------------------------------------------- 1 | # About 2 | 3 | The {{site.title}} project contains the [AsciiDoc](http://asciidoc.org/) 4 | source code for the ... 5 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/assets/img/eclipse_foundation_logo_tiny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/tck/tck-docs/userguide/src/main/jbake/assets/img/eclipse_foundation_logo_tiny.png -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/config.adoc: -------------------------------------------------------------------------------- 1 | type=page 2 | status=published 3 | title=Setup and Configuration 4 | next=using.html 5 | prev=install.html 6 | ~~~~~~ 7 | include::attributes.conf[] 8 | Setup and Configuration 9 | ======================= 10 | 11 | [[GBFVV]] 12 | 13 | 14 | 15 | [[setup-and-configuration]] 16 | 4 Setup and Configuration 17 | ------------------------- 18 | 19 | 20 | [NOTE] 21 | ==== 22 | The Jakarta EE Specification process provides for any number of compatible implementations. 23 | As additional implementations become available, refer to project or product documentation from 24 | those vendors for specific TCK setup and operational guidance. 25 | 26 | ==== 27 | 28 | This chapter describes how to set up the {TechnologyShortName} TCK and 29 | JavaTest harness software. Before proceeding with the instructions in 30 | this chapter, be sure to install all required software, as described in 31 | link:install.html#GBFTP[Chapter 3, "Installation."] 32 | 33 | After completing the instructions in this chapter, proceed to 34 | link:using.html#GBFWO[Chapter 5, "Executing Tests,"] for instructions on 35 | running the {TechnologyShortName} TCK. 36 | 37 | include::config.inc[] 38 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/debug-tips.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/tck/tck-docs/userguide/src/main/jbake/content/debug-tips.inc -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/install-server-vi.inc: -------------------------------------------------------------------------------- 1 | . Install a Web server on which the {TechnologyShortName} TCK test 2 | applications can be published for testing the VI. 3 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/install-server.inc: -------------------------------------------------------------------------------- 1 | . Install the Jakarta EE {JakartaEEVersion} CI software, for example {TechnologyRI} (which hosts the servlet Web container used 2 | for running the {TechnologyShortName} TCK with the 3 | {TechnologyShortName} {TechnologyVersion} CI), if it is not already 4 | installed. + 5 | . Download and install the Servlet Web container with the 6 | {TechnologyShortName} {TechnologyVersion} CI used for running the 7 | {TechnologyShortName} TCK {TechnologyVersion}. For example you could use {TechnologyRI}. 8 | This software may be obtained from {TechnologyRIURL}. 9 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/intro.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/tck/tck-docs/userguide/src/main/jbake/content/intro.inc -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/packages.inc: -------------------------------------------------------------------------------- 1 | ** `jakarta.servlet` 2 | 3 | ** `jakarta.servlet.annotation` 4 | 5 | ** `jakarta.servlet.descriptor` 6 | 7 | ** `jakarta.servlet.http` 8 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/platforms.inc: -------------------------------------------------------------------------------- 1 | * Debian GNU/Linux 10 2 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/rebuild.adoc: -------------------------------------------------------------------------------- 1 | type=page 2 | status=published 3 | title=Appendix B: Rebuild Rules 4 | prev=faq.html 5 | ~~~~~~ 6 | include::attributes.conf[] 7 | 8 | Appendix B: Rebuild Rules 9 | ========================= 10 | 11 | 12 | ifdef::rebuild[] 13 | include::rebuild.inc[] 14 | endif::rebuild[] 15 | ifndef::rebuild[] 16 | 17 | <<< 18 | Appendix B is not used for the {TechnologyShortName} TCK. 19 | 20 | endif::rebuild[] 21 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/rebuild.inc: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////// 2 | NOTE TO WRITERS: 3 | The following sections should be customized for the technology. 4 | This text was originally from the JAX-RS TCK. Most references 5 | to JAX-RS have been parameterized to serve as a simple starting 6 | point for customization. There are still many details that will 7 | need to be changed or removed. 8 | /////////////////////////////////////////////////////////////////////// 9 | 10 | [[GCLIZ]] 11 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/req-software.inc: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////// 2 | NOTE TO WRITERS: 3 | This is a list of software required in addition to the TCK and the CI. 4 | For many Jakarta EE APIs, the Jakarta EE CI will be required, as described below. 5 | For standalone technologies, no other software may be required, and the 6 | below line can be removed. 7 | 8 | This is used in intro.adoc in section 1.3 and install.adoc in section 3.2. 9 | /////////////////////////////////////////////////////////////////////// 10 | 11 | * Jakarta EE {JakartaEEVersion} CI (for example {TechnologyRI}, from {TechnologyRIURL}) or, at a minimum, a Web server with a Servlet 12 | container 13 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/rules.inc: -------------------------------------------------------------------------------- 1 | *{techID}10* Each Container must make technically accessible all Java SE 2 | Runtime interfaces and functionality, as defined by the Specifications, 3 | to programs running in the Container, except only as specifically 4 | exempted by these Rules. 5 | 6 | *{techID}10.1* Containers may impose security constraints, as defined by 7 | the Specifications. 8 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/tck-packages.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/tck/tck-docs/userguide/src/main/jbake/content/tck-packages.inc -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/title.adoc: -------------------------------------------------------------------------------- 1 | type=page 2 | status=published 3 | title=TCK User's Guide for Technology Implementors 4 | next=preface.html 5 | prev=toc.html 6 | ~~~~~~ 7 | include::attributes.conf[] 8 | 9 | TCK User's Guide for {TechnologyFullName}, Release {TechnologyVersion} for Jakarta EE 10 | ===================================================================================== 11 | 12 | [[eclipse-foundation]] 13 | Eclipse Foundation 14 | ------------------ 15 | 16 | Technology Compatibility Kit User's Guide for {TechnologyFullName} 17 | 18 | Release {TechnologyVersion} for Jakarta EE 19 | 20 | {ReleaseDate} 21 | 22 | [[sthref1]] 23 | 24 | ''''' 25 | 26 | Technology Compatibility Kit User's Guide for {TechnologyFullName}, 27 | Release {TechnologyVersion} for Jakarta EE 28 | 29 | Copyright © {CopyrightDates} Oracle and/or its affiliates and others. All rights reserved. 30 | 31 | This program and the accompanying materials are made available under 32 | the terms of the Eclipse Public License v. 2.0, which is available at 33 | http://www.eclipse.org/legal/epl-2.0. 34 | 35 | SPDX-License-Identifier: EPL-2.0 36 | 37 | Oracle and Java are registered trademarks of Oracle and/or its 38 | affiliates. Other names may be trademarks of their respective owners. 39 | 40 | include::title.inc[] 41 | 42 | 43 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/title.inc: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////// 2 | NOTE TO WRITERS: 3 | This is included at the tail end of the Title page. 4 | The following section should be customized for the technology. 5 | This is provided to allow each technology to customize legacy acronym names 6 | that are used in this TCK. 7 | Be sure to customize LegacyAcronym in attributes.conf 8 | Add additional lines as needed for acronyms found in your TCK user guide. 9 | /////////////////////////////////////////////////////////////////////// 10 | 11 | References in this document to {LegacyAcronym} refer to the {TechnologyFullName} unless otherwise noted. 12 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/using-examples.inc: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////// 2 | NOTE TO WRITERS: 3 | These CLI examples can be customized as necessary. 4 | /////////////////////////////////////////////////////////////////////// 5 | 6 | Start the Junit tests using the following command: 7 | 8 | -- 9 | [source,oac_no_warn] 10 | ---- 11 | mvn verify 12 | ---- 13 | -- 14 | 15 | 16 | [[GCMCU]] 17 | 18 | Example 5-1 {TechnologyShortName} TCK Signature Tests 19 | 20 | To run the {TechnologyShortName} TCK signature tests, the 21 | sigtest-maven-plugin should be used. 22 | 23 | The system properties sigTestClasspath & jimage.dir need to be set to run the signature 24 | tests as JUnit. 25 | 26 | [[GCMBV]] 27 | 28 | 29 | Example 5-2 Single Test Directory 30 | 31 | To run a single test directory, enter the following commands: 32 | 33 | [source,subs="attributes"] 34 | ---- 35 | mvn verify -Dit.test={singleTestDirectoryExample}.** 36 | ---- 37 | 38 | [[GCMCA]] 39 | 40 | 41 | Example 5-3 Subset of Test Directories 42 | 43 | To run a subset of test directories, enter the following commands: 44 | 45 | [source,subs="attributes"] 46 | ---- 47 | mvn verify -Dit.test={subsetTestDirectoryExample}.** 48 | ---- 49 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/content/using.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/tck/tck-docs/userguide/src/main/jbake/content/using.inc -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/jbake.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved. 3 | # 4 | # This program and the accompanying materials are made available under the 5 | # terms of the Eclipse Public License v. 2.0, which is available at 6 | # http://www.eclipse.org/legal/epl-2.0. 7 | # 8 | # This Source Code may also be made available under the following Secondary 9 | # Licenses when the conditions for such availability set forth in the 10 | # Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | # version 2 with the GNU Classpath Exception, which is available at 12 | # https://www.gnu.org/software/classpath/license.html. 13 | # 14 | # SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | # 16 | 17 | site.host=http://jbake.org 18 | render.tags=false 19 | render.sitemap=false 20 | render.archive=false 21 | render.feed=false 22 | render.index=false 23 | asciidoctor.option.safe=0 24 | asciidoctor.attributes.export=true -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/templates/footer.ftl: -------------------------------------------------------------------------------- 1 | <#-- a footer template fragment included in the page template --> 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | <#if content.prev??> 12 | 18 | 19 | 20 | <#if content.next??> 21 | 27 | 28 | 29 | 35 | 36 |
13 | 14 | 15 | Previous 16 | 17 | 22 | 23 | 24 | Next 25 | 26 | 30 | 31 | 32 | Contents 33 | 34 |
37 | 38 | 39 | Eclipse Foundation Logo  40 | Copyright © 2017, 2021 Oracle and/or its affiliates. All rights reserved. 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/templates/menu.ftl: -------------------------------------------------------------------------------- 1 | <#-- a menu bar template fragment included in the page template --> -------------------------------------------------------------------------------- /tck/tck-docs/userguide/src/main/jbake/templates/page.ftl: -------------------------------------------------------------------------------- 1 | <#-- a top level page layout template --> 2 | 3 | <#include "header.ftl"> 4 | <#include "menu.ftl"> 5 | 6 | ${content.body} 7 | 8 | <#include "footer.ftl"> -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/common/sharedfiles/HSessionListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.common.sharedfiles; 21 | 22 | import servlet.tck.common.util.StaticLog; 23 | 24 | import jakarta.servlet.http.HttpSessionEvent; 25 | import jakarta.servlet.http.HttpSessionListener; 26 | 27 | public final class HSessionListener implements HttpSessionListener { 28 | 29 | public void sessionCreated(HttpSessionEvent arg0) { 30 | StaticLog.add("HSessionListener created."); 31 | } 32 | 33 | public void sessionDestroyed(HttpSessionEvent arg0) { 34 | StaticLog.add("HSessionListener destroyed."); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/common/sharedfiles/SCListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.common.sharedfiles; 21 | 22 | import servlet.tck.common.util.StaticLog; 23 | 24 | import jakarta.servlet.ServletContextEvent; 25 | import jakarta.servlet.ServletContextListener; 26 | 27 | public final class SCListener implements ServletContextListener { 28 | 29 | public void contextInitialized(ServletContextEvent sce) { 30 | StaticLog.add("SCListener_ContextInitialized."); 31 | } 32 | 33 | public void contextDestroyed(ServletContextEvent sce) { 34 | StaticLog.add("SCListener_ContextDestroyed."); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/common/sharedfiles/SRListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.common.sharedfiles; 21 | 22 | import servlet.tck.common.util.StaticLog; 23 | 24 | import jakarta.servlet.ServletRequestEvent; 25 | import jakarta.servlet.ServletRequestListener; 26 | 27 | public final class SRListener implements ServletRequestListener { 28 | 29 | public void requestDestroyed(ServletRequestEvent event) { 30 | StaticLog.add("SRListenerDestroyed."); 31 | } 32 | 33 | public void requestInitialized(ServletRequestEvent event) { 34 | StaticLog.add("SRListenerInitialized."); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/asynccontext/RequestWrapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id:$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.asynccontext; 21 | 22 | import jakarta.servlet.ServletRequest; 23 | import jakarta.servlet.ServletRequestWrapper; 24 | 25 | public class RequestWrapper extends ServletRequestWrapper { 26 | 27 | protected ServletRequest origRequest = null; 28 | 29 | public RequestWrapper(ServletRequest request) { 30 | super(request); 31 | origRequest = request; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/asynccontext/ResponseWrapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id:$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.asynccontext; 21 | 22 | import jakarta.servlet.ServletResponse; 23 | import jakarta.servlet.ServletResponseWrapper; 24 | 25 | public class ResponseWrapper extends ServletResponseWrapper { 26 | 27 | protected ServletResponse origResponse = null; 28 | 29 | public ResponseWrapper(ServletResponse response) { 30 | super(response); 31 | response.setContentType("text/plain"); 32 | origResponse = response; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/dofilter/CTSResponseWrapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.api.jakarta_servlet.dofilter; 22 | 23 | import java.io.PrintWriter; 24 | 25 | import jakarta.servlet.ServletResponse; 26 | import jakarta.servlet.ServletResponseWrapper; 27 | 28 | public class CTSResponseWrapper extends ServletResponseWrapper { 29 | 30 | public CTSResponseWrapper(ServletResponse response) 31 | throws java.io.IOException { 32 | super(response); 33 | PrintWriter pw = response.getWriter(); 34 | pw.write("CTSResponseWrapper"); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/requestdispatcher/ForwardedServlet2.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.api.jakarta_servlet.requestdispatcher; 22 | 23 | import java.io.IOException; 24 | 25 | import jakarta.servlet.GenericServlet; 26 | import jakarta.servlet.ServletException; 27 | import jakarta.servlet.ServletRequest; 28 | import jakarta.servlet.ServletResponse; 29 | 30 | public class ForwardedServlet2 extends GenericServlet { 31 | 32 | public void service(ServletRequest request, ServletResponse response) 33 | throws ServletException, IOException { 34 | throw new ServletException("Content from ForwardedServlet2"); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/requestdispatcher/ForwardedServlet3.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.api.jakarta_servlet.requestdispatcher; 22 | 23 | import java.io.IOException; 24 | 25 | import jakarta.servlet.GenericServlet; 26 | import jakarta.servlet.ServletException; 27 | import jakarta.servlet.ServletRequest; 28 | import jakarta.servlet.ServletResponse; 29 | 30 | public class ForwardedServlet3 extends GenericServlet { 31 | 32 | public void service(ServletRequest request, ServletResponse response) 33 | throws ServletException, IOException { 34 | throw new IOException("Content from ForwardedServlet3"); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addfilter/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.addfilter; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addfilter/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | 2 | servlet.tck.api.jakarta_servlet.scinitializer.addfilter.TCKServletContainerInitializer 3 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addfilter1/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.addfilter1; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addfilter1/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.addfilter1.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addlistener/SCListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.addlistener; 21 | 22 | import jakarta.servlet.ServletContextEvent; 23 | import jakarta.servlet.ServletContextListener; 24 | 25 | public class SCListener implements ServletContextListener { 26 | 27 | public void contextDestroyed(ServletContextEvent event) { 28 | System.out.print("SCListener Destroyed."); 29 | } 30 | 31 | public void contextInitialized(ServletContextEvent event) { 32 | System.out.print("SCListener Initialized."); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addlistener/SRListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.addlistener; 21 | 22 | import jakarta.servlet.ServletRequestEvent; 23 | import jakarta.servlet.ServletRequestListener; 24 | 25 | public final class SRListener implements ServletRequestListener { 26 | 27 | // Public Methods 28 | public void requestDestroyed(ServletRequestEvent event) { 29 | System.out.print("in requestDestroyed method of CreateSRListener"); 30 | } 31 | 32 | public void requestInitialized(ServletRequestEvent event) { 33 | System.out.print("CreateSRListener_INVOKED"); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addlistener/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.addlistener; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addlistener/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.addlistener.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addlistener1/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.addlistener1; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addlistener1/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.addlistener1.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addservlet/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.addservlet; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addservlet/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.addservlet.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addservlet1/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.addservlet1; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/addservlet1/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.addservlet1.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/createfilter/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.createfilter; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/createfilter/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.createfilter.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/createlistener/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.createlistener; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/createlistener/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.createlistener.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/createservlet/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.createservlet; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/createservlet/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.createservlet.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getclassloader/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.getclassloader; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getclassloader/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.getclassloader.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getdefaultsessiontrackingmodes/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.getdefaultsessiontrackingmodes; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getdefaultsessiontrackingmodes/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.getdefaultsessiontrackingmodes.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/geteffectivemajorversion/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.geteffectivemajorversion; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/geteffectivemajorversion/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.geteffectivemajorversion.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/geteffectiveminorversion/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.geteffectiveminorversion; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/geteffectiveminorversion/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.geteffectiveminorversion.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/geteffectivesessiontrackingmodes/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.geteffectivesessiontrackingmodes; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/geteffectivesessiontrackingmodes/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.geteffectivesessiontrackingmodes.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getfilterregistration/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.getfilterregistration; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getfilterregistration/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.getfilterregistration.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getfilterregistrations/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.getfilterregistrations; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getfilterregistrations/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.getfilterregistrations.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getservletregistration/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.getservletregistration; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getservletregistration/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.getservletregistration.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getservletregistrations/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.getservletregistrations; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getservletregistrations/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.getservletregistrations.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getsessioncookieconfig/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.getsessioncookieconfig; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/getsessioncookieconfig/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.getsessioncookieconfig.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/setinitparameter/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.setinitparameter; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/setinitparameter/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.setinitparameter.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/setsessiontrackingmodes/TCKServletContainerInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.scinitializer.setsessiontrackingmodes; 21 | 22 | import java.util.Set; 23 | 24 | import jakarta.servlet.ServletContainerInitializer; 25 | import jakarta.servlet.ServletContext; 26 | import jakarta.servlet.ServletException; 27 | 28 | public class TCKServletContainerInitializer 29 | implements ServletContainerInitializer { 30 | 31 | public void onStartup(Set> arg0, ServletContext context) 32 | throws ServletException { 33 | context.addListener( 34 | TestListener.class); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/scinitializer/setsessiontrackingmodes/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | servlet.tck.api.jakarta_servlet.scinitializer.setsessiontrackingmodes.TCKServletContainerInitializer 2 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletcontext30/AddSCListenerClass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.servletcontext30; 21 | 22 | import servlet.tck.common.util.StaticLog; 23 | 24 | import jakarta.servlet.ServletContextEvent; 25 | import jakarta.servlet.ServletContextListener; 26 | 27 | public class AddSCListenerClass implements ServletContextListener { 28 | 29 | public void contextDestroyed(ServletContextEvent event) { 30 | StaticLog.add("AddSCListenerClass Destroyed."); 31 | } 32 | 33 | public void contextInitialized(ServletContextEvent event) { 34 | StaticLog.add("AddSCListenerClass Initialized."); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletcontext30/AddSCListenerString.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.servletcontext30; 21 | 22 | import servlet.tck.common.util.StaticLog; 23 | 24 | import jakarta.servlet.ServletContextEvent; 25 | import jakarta.servlet.ServletContextListener; 26 | 27 | public class AddSCListenerString implements ServletContextListener { 28 | 29 | public void contextDestroyed(ServletContextEvent event) { 30 | StaticLog.add("AddSCListenerString Destroyed."); 31 | } 32 | 33 | public void contextInitialized(ServletContextEvent event) { 34 | StaticLog.add("AddSCListenerString Initialized."); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletcontext30/BadListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.api.jakarta_servlet.servletcontext30; 22 | 23 | import jakarta.servlet.ServletException; 24 | import jakarta.servlet.ServletRequestEvent; 25 | import jakarta.servlet.ServletRequestListener; 26 | 27 | public final class BadListener implements ServletRequestListener { 28 | 29 | // Non-zero argument constructor 30 | public BadListener(String x) throws ServletException { 31 | throw new ServletException("Negative Test for createListener"); 32 | } 33 | 34 | // Public Methods 35 | public void requestDestroyed(ServletRequestEvent event) { 36 | // do nothing 37 | } 38 | 39 | public void requestInitialized(ServletRequestEvent event) { 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletcontext30/CreateSCListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.servletcontext30; 21 | 22 | import servlet.tck.common.util.StaticLog; 23 | 24 | import jakarta.servlet.ServletContextEvent; 25 | import jakarta.servlet.ServletContextListener; 26 | 27 | public class CreateSCListener implements ServletContextListener { 28 | 29 | public void contextDestroyed(ServletContextEvent event) { 30 | StaticLog.add("CreateSCListener Destroyed."); 31 | } 32 | 33 | public void contextInitialized(ServletContextEvent event) { 34 | StaticLog.add("CreateSCListener Initialized."); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletcontext301/AddGenericEventListenerClass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.servletcontext301; 21 | 22 | import java.util.EventListener; 23 | 24 | import servlet.tck.common.util.StaticLog; 25 | 26 | import jakarta.servlet.ServletRequestEvent; 27 | 28 | public final class AddGenericEventListenerClass implements EventListener { 29 | 30 | public void listenerDestroyed(ServletRequestEvent event) { 31 | StaticLog.add("AddGenericEventListenerClass_Destroyed."); 32 | } 33 | 34 | public void listenerInitialized(ServletRequestEvent event) { 35 | StaticLog.add("AddGenericEventListenerClass_Initialized."); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletcontext304/CreateGenericEventListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.servletcontext304; 21 | 22 | import java.util.EventListener; 23 | 24 | import servlet.tck.common.util.StaticLog; 25 | 26 | import jakarta.servlet.ServletRequestEvent; 27 | 28 | public final class CreateGenericEventListener implements EventListener { 29 | 30 | public void listenerDestroyed(ServletRequestEvent event) { 31 | StaticLog.add("CreateGenericEventListener_Destroyed."); 32 | } 33 | 34 | public void listenerInitialized(ServletRequestEvent event) { 35 | StaticLog.add("CreateGenericEventListener_Initialized."); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletcontext305/AddSCListenerClass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.servletcontext305; 21 | 22 | import servlet.tck.common.util.StaticLog; 23 | 24 | import jakarta.servlet.ServletContextEvent; 25 | import jakarta.servlet.ServletContextListener; 26 | 27 | public class AddSCListenerClass implements ServletContextListener { 28 | 29 | public void contextDestroyed(ServletContextEvent event) { 30 | StaticLog.add("AddSCListenerClass Destroyed."); 31 | } 32 | 33 | public void contextInitialized(ServletContextEvent event) { 34 | StaticLog.add("AddSCListenerClass Initialized."); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletcontext305/AddSCListenerString.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.servletcontext305; 21 | 22 | import servlet.tck.common.util.StaticLog; 23 | 24 | import jakarta.servlet.ServletContextEvent; 25 | import jakarta.servlet.ServletContextListener; 26 | 27 | public class AddSCListenerString implements ServletContextListener { 28 | 29 | public void contextDestroyed(ServletContextEvent event) { 30 | StaticLog.add("AddSCListenerString Destroyed."); 31 | } 32 | 33 | public void contextInitialized(ServletContextEvent event) { 34 | StaticLog.add("AddSCListenerString Initialized."); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletcontext305/CreateSCListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet.servletcontext305; 21 | 22 | import servlet.tck.common.util.StaticLog; 23 | 24 | import jakarta.servlet.ServletContextEvent; 25 | import jakarta.servlet.ServletContextListener; 26 | 27 | public class CreateSCListener implements ServletContextListener { 28 | 29 | public void contextDestroyed(ServletContextEvent event) { 30 | StaticLog.add("CreateSCListener Destroyed."); 31 | } 32 | 33 | public void contextInitialized(ServletContextEvent event) { 34 | StaticLog.add("CreateSCListener Initialized."); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletcontext305/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | 2 | servlet.tck.api.jakarta_servlet.servletcontext305.TestContainerInitializer 3 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletcontext40/listener.tld: -------------------------------------------------------------------------------- 1 | 18 | 19 | 22 | 23 | This is for test purpose 24 | 1.2 25 | ListenerAdditionNegative 26 | 27 | 28 | servlet.tck.api.jakarta_servlet.servletcontext40.AddListener 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletrequestwrapper30x/TCKServletRequestWrapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | package servlet.tck.api.jakarta_servlet.servletrequestwrapper30x; 18 | 19 | import jakarta.servlet.ServletRequest; 20 | import jakarta.servlet.ServletRequestWrapper; 21 | 22 | public class TCKServletRequestWrapper extends ServletRequestWrapper { 23 | 24 | public TCKServletRequestWrapper(ServletRequest req) { 25 | super(req); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletrequestwrapper30x/TCKServletRequestsubWrapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | package servlet.tck.api.jakarta_servlet.servletrequestwrapper30x; 18 | 19 | import jakarta.servlet.ServletRequest; 20 | 21 | public class TCKServletRequestsubWrapper extends TCKServletRequestWrapper { 22 | 23 | public TCKServletRequestsubWrapper(ServletRequest req) { 24 | super(req); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletresponsewrapper30/TCKServletResponseWrapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | package servlet.tck.api.jakarta_servlet.servletresponsewrapper30; 18 | 19 | import jakarta.servlet.ServletResponse; 20 | import jakarta.servlet.ServletResponseWrapper; 21 | 22 | public class TCKServletResponseWrapper extends ServletResponseWrapper { 23 | 24 | public TCKServletResponseWrapper(ServletResponse res) { 25 | super(res); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet/servletresponsewrapper30/TCKServletResponsesubWrapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | package servlet.tck.api.jakarta_servlet.servletresponsewrapper30; 18 | 19 | import jakarta.servlet.ServletResponse; 20 | 21 | public class TCKServletResponsesubWrapper extends TCKServletResponseWrapper { 22 | 23 | public TCKServletResponsesubWrapper(ServletResponse res) { 24 | super(res); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/asynccontext/RequestWrapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id:$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet_http.asynccontext; 21 | 22 | import jakarta.servlet.http.HttpServletRequest; 23 | import jakarta.servlet.http.HttpServletRequestWrapper; 24 | 25 | public class RequestWrapper extends HttpServletRequestWrapper { 26 | 27 | protected HttpServletRequest origRequest = null; 28 | 29 | public RequestWrapper(HttpServletRequest request) { 30 | super(request); 31 | origRequest = request; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/asynccontext/ResponseWrapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id:$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet_http.asynccontext; 21 | 22 | import jakarta.servlet.http.HttpServletResponse; 23 | import jakarta.servlet.http.HttpServletResponseWrapper; 24 | 25 | public class ResponseWrapper extends HttpServletResponseWrapper { 26 | 27 | protected HttpServletResponse origResponse = null; 28 | 29 | public ResponseWrapper(HttpServletResponse response) { 30 | super(response); 31 | response.setContentType("text/plain"); 32 | origResponse = response; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/httpservletrequest/doHeadTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021 Contributors to the Eclipse Foundation. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | package servlet.tck.api.jakarta_servlet_http.httpservletrequest; 17 | 18 | import java.io.IOException; 19 | import java.io.PrintWriter; 20 | 21 | import jakarta.servlet.ServletException; 22 | import jakarta.servlet.http.HttpServletRequest; 23 | import jakarta.servlet.http.HttpServletResponse; 24 | 25 | import servlet.tck.common.servlets.HttpTCKServlet; 26 | 27 | public class doHeadTest extends HttpTCKServlet { 28 | 29 | private static final long serialVersionUID = 1L; 30 | 31 | @Override 32 | public void service(HttpServletRequest request, HttpServletResponse response) 33 | throws ServletException, IOException { 34 | PrintWriter pw = response.getWriter(); 35 | pw.print("This is the response body"); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/httpservletrequest1/servlet_jsh_httpservletrequest1_web.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | SerJaxSerHttpHttpSerRequest 22 | 23 | TestServlet 24 | servlet.tck.common.servlets.HttpRequestTestServlet 25 | 26 | 27 | TestServlet 28 | /TestServlet/* 29 | 30 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/httpservletrequest40/ForwardFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | package servlet.tck.api.jakarta_servlet_http.httpservletrequest40; 18 | 19 | import java.io.IOException; 20 | 21 | import jakarta.servlet.FilterChain; 22 | import jakarta.servlet.ServletException; 23 | import jakarta.servlet.http.HttpFilter; 24 | import jakarta.servlet.http.HttpServletRequest; 25 | import jakarta.servlet.http.HttpServletResponse; 26 | 27 | public class ForwardFilter extends HttpFilter { 28 | 29 | @Override 30 | protected void doFilter(HttpServletRequest req, HttpServletResponse res, 31 | FilterChain chain) throws IOException, ServletException { 32 | req.getRequestDispatcher("/default").forward(req, res); 33 | super.doFilter(req, res, chain); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/httpservletrequest40/ForwardServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | package servlet.tck.api.jakarta_servlet_http.httpservletrequest40; 18 | 19 | import java.io.IOException; 20 | 21 | import jakarta.servlet.RequestDispatcher; 22 | import jakarta.servlet.ServletException; 23 | import jakarta.servlet.http.HttpServlet; 24 | import jakarta.servlet.http.HttpServletRequest; 25 | import jakarta.servlet.http.HttpServletResponse; 26 | 27 | public class ForwardServlet extends HttpServlet { 28 | @Override 29 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) 30 | throws ServletException, IOException { 31 | RequestDispatcher rd = req.getRequestDispatcher("/a.ts"); 32 | rd.forward(req, resp); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/httpservletrequest40/IncludeServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | package servlet.tck.api.jakarta_servlet_http.httpservletrequest40; 18 | 19 | import java.io.IOException; 20 | 21 | import jakarta.servlet.ServletException; 22 | import jakarta.servlet.http.HttpServlet; 23 | import jakarta.servlet.http.HttpServletRequest; 24 | import jakarta.servlet.http.HttpServletResponse; 25 | 26 | public class IncludeServlet extends HttpServlet { 27 | @Override 28 | protected void doPost(HttpServletRequest req, HttpServletResponse resp) 29 | throws ServletException, IOException { 30 | req.getRequestDispatcher("/").include(req, resp); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/httpservletrequest40/NamedForwardServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | package servlet.tck.api.jakarta_servlet_http.httpservletrequest40; 18 | 19 | import java.io.IOException; 20 | 21 | import jakarta.servlet.ServletException; 22 | import jakarta.servlet.http.HttpServlet; 23 | import jakarta.servlet.http.HttpServletRequest; 24 | import jakarta.servlet.http.HttpServletResponse; 25 | 26 | public class NamedForwardServlet extends HttpServlet { 27 | 28 | @Override 29 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) 30 | throws ServletException, IOException { 31 | req.getServletContext().getNamedDispatcher("TestServlet").forward(req, 32 | resp); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/httpservletrequest40/NamedIncludeServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | package servlet.tck.api.jakarta_servlet_http.httpservletrequest40; 18 | 19 | import java.io.IOException; 20 | 21 | import jakarta.servlet.ServletException; 22 | import jakarta.servlet.http.HttpServlet; 23 | import jakarta.servlet.http.HttpServletRequest; 24 | import jakarta.servlet.http.HttpServletResponse; 25 | 26 | public class NamedIncludeServlet extends HttpServlet { 27 | 28 | @Override 29 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) 30 | throws ServletException, IOException { 31 | req.getServletContext().getNamedDispatcher("TestServlet").include(req, 32 | resp); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/httpservletrequest40/Utilities.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | package servlet.tck.api.jakarta_servlet_http.httpservletrequest40; 18 | 19 | import jakarta.servlet.http.HttpServletMapping; 20 | 21 | public class Utilities { 22 | 23 | public static String toString(HttpServletMapping mapping) { 24 | StringBuilder sb = new StringBuilder(); 25 | sb.append("matchValue=" + mapping.getMatchValue()) 26 | .append(", pattern=" + mapping.getPattern()) 27 | .append(", servletName=" + mapping.getServletName()) 28 | .append(", mappingMatch=" + mapping.getMappingMatch()); 29 | return sb.toString(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/httpsessionidlistener/TCKHttpSessionIDListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id:$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet_http.httpsessionidlistener; 21 | 22 | import jakarta.servlet.annotation.WebListener; 23 | import jakarta.servlet.http.HttpSession; 24 | import jakarta.servlet.http.HttpSessionEvent; 25 | import jakarta.servlet.http.HttpSessionIdListener; 26 | 27 | @WebListener 28 | public class TCKHttpSessionIDListener implements HttpSessionIdListener { 29 | 30 | public void sessionIdChanged(HttpSessionEvent event, String oldId) { 31 | HttpSession session = event.getSession(); 32 | String sessionId = session.getId(); 33 | 34 | session.setAttribute("OLD", oldId); 35 | session.setAttribute("NEW", sessionId); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/part/test.txt: -------------------------------------------------------------------------------- 1 | First line. 2 | Second line. 3 | Last line. 4 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/part/test2.txt: -------------------------------------------------------------------------------- 1 | First line. 2 | Second line. 3 | Third line. 4 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/servletcontext304/AddHttpSessionListenerClass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet_http.servletcontext304; 21 | 22 | import servlet.tck.common.util.StaticLog; 23 | 24 | import jakarta.servlet.http.HttpSessionEvent; 25 | import jakarta.servlet.http.HttpSessionListener; 26 | 27 | public final class AddHttpSessionListenerClass implements HttpSessionListener { 28 | 29 | public void sessionCreated(HttpSessionEvent event) { 30 | StaticLog.add("AddHttpSessionListenerClass Created;"); 31 | } 32 | 33 | public void sessionDestroyed(HttpSessionEvent arg0) { 34 | StaticLog.add("AddHttpSessionListenerClass Destroyed;"); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/servletcontext304/AddHttpSessionListenerString.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet_http.servletcontext304; 21 | 22 | import servlet.tck.common.util.StaticLog; 23 | 24 | import jakarta.servlet.http.HttpSessionEvent; 25 | import jakarta.servlet.http.HttpSessionListener; 26 | 27 | public final class AddHttpSessionListenerString implements HttpSessionListener { 28 | 29 | public void sessionCreated(HttpSessionEvent event) { 30 | StaticLog.add("AddHttpSessionListenerString Created;"); 31 | } 32 | 33 | public void sessionDestroyed(HttpSessionEvent arg0) { 34 | StaticLog.add("AddHttpSessionListenerString Destroyed;"); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/api/jakarta_servlet_http/servletcontext304/CreateHttpSessionListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.api.jakarta_servlet_http.servletcontext304; 21 | 22 | import servlet.tck.common.util.StaticLog; 23 | 24 | import jakarta.servlet.http.HttpSessionEvent; 25 | import jakarta.servlet.http.HttpSessionListener; 26 | 27 | public final class CreateHttpSessionListener implements HttpSessionListener { 28 | 29 | public void sessionCreated(HttpSessionEvent event) { 30 | StaticLog.add("CreateHttpSessionListener Created;"); 31 | } 32 | 33 | public void sessionDestroyed(HttpSessionEvent arg0) { 34 | StaticLog.add("CreateHttpSessionListener Destroyed;"); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/common/request/Header.java: -------------------------------------------------------------------------------- 1 | package servlet.tck.common.request; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class Header { 7 | 8 | private String name; 9 | 10 | private List values = new ArrayList<>(); 11 | 12 | 13 | public Header(String name, String value) { 14 | this.name = name; 15 | this.values.add(value); 16 | } 17 | 18 | public Header(String name, List values) { 19 | this.name = name; 20 | this.values = values; 21 | } 22 | 23 | public String getName() { 24 | return name; 25 | } 26 | 27 | public void setName(String name) { 28 | this.name = name; 29 | } 30 | 31 | public void setValues(List values) { 32 | this.values = values; 33 | } 34 | 35 | public List getValues() { 36 | return values; 37 | } 38 | 39 | public String getValue() { 40 | return String.join(",", values); 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return "Header{" 46 | + '\'' + name + '\'' + 47 | ":" + String.join(",",values) + 48 | '}'; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/common/request/ValidationStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2018 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.common.request; 21 | 22 | /** 23 | * A ValidationStrategy is used to compare a server response with a configured 24 | * test case. How this validation is performed is up to the concrete 25 | * implementation. 26 | */ 27 | public interface ValidationStrategy { 28 | boolean validate(WebTestCase testCase) throws Exception; 29 | } 30 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/common/util/TCKLoadableExtension.java: -------------------------------------------------------------------------------- 1 | package servlet.tck.common.util; 2 | 3 | import org.jboss.arquillian.container.spi.client.container.DeploymentException; 4 | import org.jboss.arquillian.core.api.annotation.Observes; 5 | import org.jboss.arquillian.core.spi.InvocationException; 6 | import org.jboss.arquillian.core.spi.LoadableExtension; 7 | import org.slf4j.Logger; 8 | import org.slf4j.LoggerFactory; 9 | 10 | /** 11 | * Class to load TCK Arquillian extension 12 | */ 13 | public class TCKLoadableExtension implements LoadableExtension { 14 | 15 | private static final Logger LOGGER = LoggerFactory.getLogger(TCKLoadableExtension.class); 16 | 17 | @Override 18 | public void register(ExtensionBuilder extensionBuilder) { 19 | extensionBuilder.observer(TCKDeploymentExceptionObserver.class); 20 | } 21 | 22 | 23 | public static class TCKDeploymentExceptionObserver { 24 | 25 | /** 26 | * this will fail the build when Arquillian deployment fail 27 | */ 28 | public void invoke(@Observes DeploymentException e) { 29 | LOGGER.error("Fail to deploy: " + e.getMessage(), e); 30 | } 31 | 32 | public void invoke(@Observes InvocationException e) { 33 | LOGGER.error("Fail to deploy: " + e.getMessage(), e); 34 | } 35 | 36 | } 37 | 38 | 39 | } 40 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/pluggability/api/jakarta_servlet/servletcontext30/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 25 | 26 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/pluggability/api/jakarta_servlet_http/httpservletrequest/servlet_pluh_httpservletrequest_web.war.sun-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | /servlet_pluh_httpservletrequest_web 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/pluggability/api/jakarta_servlet_http/httpservletrequestwrapper/servlet_pluh_HSReqWrapper_web.war.sun-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | /servlet_pluh_HSReqWrapper_web 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/pluggability/common/web-fragment_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 25 | Fragment2 26 | 27 | servlet.tck.pluggability.common.RequestListener2 28 | 29 | 30 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/pluggability/common/web-fragment_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 25 | Fragment3 26 | 27 | servlet.tck.pluggability.common.RequestListener3 28 | 29 | 30 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/pluggability/common/web-fragment_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 25 | Fragment4 26 | 27 | servlet.tck.pluggability.common.RequestListener4 28 | 29 | 30 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/pluggability/common/web-fragment_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 25 | Fragment5 26 | 27 | servlet.tck.pluggability.common.RequestListener5 28 | 29 | 30 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/pluggability/common/web-fragment_7.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 25 | 26 | TestServlet2 27 | servlet.tck.pluggability.common.TestServlet2 28 | 29 | msg3 30 | third 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/pluggability/fragment/TestServlet3.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.pluggability.fragment; 21 | 22 | import java.io.IOException; 23 | import java.io.PrintWriter; 24 | 25 | import jakarta.servlet.GenericServlet; 26 | import jakarta.servlet.ServletException; 27 | import jakarta.servlet.ServletRequest; 28 | import jakarta.servlet.ServletResponse; 29 | 30 | public class TestServlet3 extends GenericServlet { 31 | 32 | public void service(ServletRequest request, ServletResponse response) 33 | throws ServletException, IOException { 34 | PrintWriter pw = response.getWriter(); 35 | pw.println("TestServlet3 is invoked"); 36 | pw.append("msg1=" + getInitParameter("msg1")); 37 | pw.append("msg2=" + getInitParameter("msg2")); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/pluggability/fragment/TestServlet4.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.pluggability.fragment; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class TestServlet4 extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("TestServlet4 is invoked"); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/pluggability/fragment/TestServlet5.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.pluggability.fragment; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class TestServlet5 extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("TestServlet5 is invoked"); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/defaultmapping/TestServlet6.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.spec.defaultmapping; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class TestServlet6 extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("TestServlet6 is invoked"); 37 | pw.println("TestServlet6's URL: /"); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/errorpage/TestException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | package servlet.tck.spec.errorpage; 18 | 19 | /** 20 | * Generic exception class to use for testing error page assertions. 21 | */ 22 | 23 | public class TestException extends Exception { 24 | 25 | /** 26 | * Construct an exception with no associated message. 27 | */ 28 | public TestException() { 29 | super(); 30 | } 31 | 32 | /** 33 | * Construct an exception with the associated message. 34 | * 35 | * @param message 36 | * The associated message 37 | */ 38 | public TestException(String message) { 39 | super(message); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/errorpage1/TestServletException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | package servlet.tck.spec.errorpage1; 18 | 19 | import jakarta.servlet.ServletException; 20 | 21 | public class TestServletException extends ServletException { 22 | 23 | public TestServletException(String message) { 24 | super(message); 25 | } 26 | 27 | public TestServletException(String message, Throwable rootCause) { 28 | super(message, rootCause); 29 | } 30 | 31 | public TestServletException(Throwable rootCause) { 32 | super(rootCause); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/listenerorder/TestServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | package servlet.tck.spec.listenerorder; 21 | 22 | import java.io.IOException; 23 | import java.io.PrintWriter; 24 | 25 | import jakarta.servlet.GenericServlet; 26 | import jakarta.servlet.ServletException; 27 | import jakarta.servlet.ServletRequest; 28 | import jakarta.servlet.ServletResponse; 29 | 30 | public class TestServlet extends GenericServlet { 31 | 32 | public void service(ServletRequest request, ServletResponse response) 33 | throws ServletException, IOException { 34 | PrintWriter pw = response.getWriter(); 35 | pw.println("TestServlet is invoked"); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/multifiltermapping/ErrorPage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.spec.multifiltermapping; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class ErrorPage extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("from ErrorPage"); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/multifiltermapping/TestServlet6.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.spec.multifiltermapping; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class TestServlet6 extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("TestServlet6 is invoked"); 37 | pw.println("TestServlet6's URL: "); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/pluggability/common/web-fragment_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 25 | Fragment2 26 | 27 | servlet.tck.spec.pluggability.common.RequestListener2 28 | 29 | 30 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/pluggability/common/web-fragment_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 25 | Fragment3 26 | 27 | servlet.tck.spec.pluggability.common.RequestListener3 28 | 29 | 30 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/pluggability/common/web-fragment_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 25 | Fragment4 26 | 27 | servlet.tck.spec.pluggability.common.RequestListener4 28 | 29 | 30 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/pluggability/common/web-fragment_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 25 | Fragment5 26 | 27 | servlet.tck.spec.pluggability.common.RequestListener5 28 | 29 | 30 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/pluggability/common/web-fragment_7.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 25 | 26 | TestServlet2 27 | servlet.tck.spec.pluggability.common.TestServlet2 28 | 29 | msg3 30 | third 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/rdspecialchar/IncludedServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.spec.rdspecialchar; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class IncludedServlet extends GenericServlet { 32 | 33 | public void service(ServletRequest req, ServletResponse res) 34 | throws ServletException, IOException { 35 | PrintWriter out = res.getWriter(); 36 | out.println("Test PASSED"); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/requestmap/TestServlet1.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.spec.requestmap; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class TestServlet1 extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("TestServlet1 is invoked"); 37 | pw.println("TestServlet1's URL: /foo/bar/*"); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/requestmap/TestServlet2.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.spec.requestmap; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class TestServlet2 extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("TestServlet2 is invoked"); 37 | pw.println("TestServlet2's URL: /foo/baR/*"); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/requestmap/TestServlet3.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.spec.requestmap; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class TestServlet3 extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("TestServlet3 is invoked"); 37 | pw.println("TestServlet3's URL /TestServlet3"); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/requestmap/TestServlet4.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.spec.requestmap; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class TestServlet4 extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("TestServlet4 is invoked"); 37 | pw.println("TestServlet4's URL *.bop"); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/requestmap/TestServlet5.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.spec.requestmap; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class TestServlet5 extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("TestServlet5 is invoked"); 37 | pw.println("TestServlet5's URL: /foo/bar/TestServlet5"); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/security/clientcert/clientcert_web.war.sun-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | clientcert_web 23 | 24 | Administrator 25 | CN=CTS,OU=Java Software,O=Sun Microsystems Inc.,L=Burlington,ST=MA,C=US 26 | CN=CTS, OU=Java Software, O=Sun Microsystems Inc., L=Burlington, ST=MA, C=US 27 | 28 | 29 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/security/clientcertanno/clientcertanno_web.war.sun-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | clientcertanno_web 23 | 24 | Administrator 25 | CN=CTS,OU=Java Software,O=Sun Microsystems Inc.,L=Burlington,ST=MA,C=US 26 | CN=CTS, OU=Java Software, O=Sun Microsystems Inc., L=Burlington, ST=MA, C=US 27 | 28 | 29 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/security/clientcertanno/clientcertanno_web.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | clientcertanno 22 | 23 | 54 24 | 25 | 26 | CLIENT-CERT 27 | 28 | 29 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/security/secbasic/README: -------------------------------------------------------------------------------- 1 | The security tests for both JSP and servlet performs the same functionality. 2 | 3 | So the common code between JSP and servlet is kept under 4 | 5 | TS_HOME/src/com/sun/ts/tests/common/jspservletsec/secbasicClient.java 6 | TS_HOME/src/com/sun/ts/tests/common/jspservletsec/secformClient.java 7 | 8 | And they are extended and used under 9 | 10 | TS_HOME/src/com/sun/ts/tests/jsp/sec/secbasic/Client.java (JSP) 11 | TS_HOME/src/com/sun/ts/tests/servlet/sec/secbasic/Client.java (Servlet) 12 | 13 | TS_HOME/src/com/sun/ts/tests/jsp/sec/secform/Client.java (JSP) 14 | TS_HOME/src/com/sun/ts/tests/servlet/sec/secform/Client.java (Servlet) 15 | 16 | 17 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/security/secform/README: -------------------------------------------------------------------------------- 1 | The security tests for both JSP and servlet performs the same functionality. 2 | 3 | So the common code between JSP and servlet is kept under 4 | 5 | TS_HOME/com/sun/ts/tests/common/jspservletsec/secbasicClient.java 6 | TS_HOME/com/sun/ts/tests/common/jspservletsec/secformClient.java 7 | 8 | And they are extended and used under 9 | 10 | TS_HOME/com/sun/ts/tests/jsp/sec/secbasic/Client.java (JSP) 11 | TS_HOME/com/sun/ts/tests/servlet/sec/secbasic/Client.java (Servlet) 12 | 13 | TS_HOME/com/sun/ts/tests/jsp/sec/secform/Client.java (JSP) 14 | TS_HOME/com/sun/ts/tests/servlet/sec/secform/Client.java (Servlet) 15 | 16 | 17 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/serverpush/servlet_spec_serverpush_web.war.sun-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | /servlet_spec_serverpush_web 23 | 24 | Manager 25 | javajoe 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/servletmapping/TestServlet1.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.spec.servletmapping; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class TestServlet1 extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("TestServlet1 is invoked"); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/servletmapping/TestServlet2.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.spec.servletmapping; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class TestServlet2 extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("TestServlet2 is invoked"); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/servletmapping/TestServlet4.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.spec.servletmapping; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class TestServlet4 extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("TestServlet4 is invoked"); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/servletmapping/TestServlet5.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * This program and the accompanying materials are made available under the 5 | * terms of the Eclipse Public License v. 2.0, which is available at 6 | * http://www.eclipse.org/legal/epl-2.0. 7 | * 8 | * This Source Code may also be made available under the following Secondary 9 | * Licenses when the conditions for such availability set forth in the 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 11 | * version 2 with the GNU Classpath Exception, which is available at 12 | * https://www.gnu.org/software/classpath/license.html. 13 | * 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 15 | */ 16 | 17 | /* 18 | * $Id$ 19 | */ 20 | 21 | package servlet.tck.spec.servletmapping; 22 | 23 | import java.io.IOException; 24 | import java.io.PrintWriter; 25 | 26 | import jakarta.servlet.GenericServlet; 27 | import jakarta.servlet.ServletException; 28 | import jakarta.servlet.ServletRequest; 29 | import jakarta.servlet.ServletResponse; 30 | 31 | public class TestServlet5 extends GenericServlet { 32 | 33 | public void service(ServletRequest request, ServletResponse response) 34 | throws ServletException, IOException { 35 | PrintWriter pw = response.getWriter(); 36 | pw.println("TestServlet5 is invoked"); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/java/servlet/tck/spec/webapps/accesswebinf/servlet_spec_webapps_accesswebinf_web.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | SerSpecWebappsAccessWebInf 22 | 23 | 54 24 | 25 | 26 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension: -------------------------------------------------------------------------------- 1 | servlet.tck.common.util.TCKLoadableExtension -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/resources/certificates/README: -------------------------------------------------------------------------------- 1 | CTS Client certificate 2 | ---------------------- 3 | This directory contains CTS client certificate stored in different file formats. 4 | 5 | 1) cts_cert - This file is used for importing cts client cert 6 | into a truststore . 7 | 8 | 2) clientcert.jks - This file is used by the JSSE runtime 9 | to identify CTS client's identity 10 | 11 | 3) clientcert.p12 - This file contains cts client cert in pkcs12 format. 12 | 13 | 14 | Note: All 3 files in this directory contains the same certificate named "cts" 15 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/resources/certificates/clientcert.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/tck/tck-runtime/src/main/resources/certificates/clientcert.jks -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/resources/certificates/clientcert.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/tck/tck-runtime/src/main/resources/certificates/clientcert.p12 -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/resources/certificates/cts_cert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/servlet/4d06f5657eeb0b19b8e73c5542cbca711f3156af/tck/tck-runtime/src/main/resources/certificates/cts_cert -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/resources/servlet/tck/signature/sig-test-pkg-list.txt: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2018, 2020 Oracle and/or its affiliates and others. 3 | # All rights reserved. 4 | # 5 | # This program and the accompanying materials are made available under the 6 | # terms of the Eclipse Public License v. 2.0, which is available at 7 | # http://www.eclipse.org/legal/epl-2.0. 8 | # 9 | # This Source Code may also be made available under the following Secondary 10 | # Licenses when the conditions for such availability set forth in the 11 | # Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | # version 2 with the GNU Classpath Exception, which is available at 13 | # https://www.gnu.org/software/classpath/license.html. 14 | # 15 | # SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | # 17 | 18 | ## 19 | # This file contains a list of all the packages 20 | # contained in the signature files for this 21 | # deliverable. This file is used to exclude valid 22 | # sub-packages from being verified when their 23 | # parent package's signature is checked. 24 | ## 25 | 26 | jakarta.servlet 27 | jakarta.servlet.anotations 28 | jakarta.servlet.descriptor 29 | jakarta.servlet.http 30 | -------------------------------------------------------------------------------- /tck/tck-runtime/src/main/resources/servlet/tck/signature/sig-test.map: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2018, 2024 Oracle and/or its affiliates and others. 3 | # All rights reserved. 4 | # 5 | # This program and the accompanying materials are made available under the 6 | # terms of the Eclipse Public License v. 2.0, which is available at 7 | # http://www.eclipse.org/legal/epl-2.0. 8 | # 9 | # This Source Code may also be made available under the following Secondary 10 | # Licenses when the conditions for such availability set forth in the 11 | # Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | # version 2 with the GNU Classpath Exception, which is available at 13 | # https://www.gnu.org/software/classpath/license.html. 14 | # 15 | # SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | # 17 | 18 | ############################################################### 19 | # The signature test mapping file for the Servlet TCK. This 20 | # file should be formatted as a standard java properties file. 21 | # The name is the package name and the value is the version of 22 | # the package that should be tested by the signature tests. 23 | ############################################################### 24 | 25 | jakarta.servlet=6.2 26 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/api/jakarta_servlet/filterrequestdispatcher/dummy.html: -------------------------------------------------------------------------------- 1 | 2 | JSP with No Security Constraints 3 | 20 | 21 | 22 | Test FAILED from dummy html page 23 | 24 | 25 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/api/jakarta_servlet/filterrequestdispatcher/dummyJSP.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | 3 | Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved. 4 | 5 | This program and the accompanying materials are made available under the 6 | terms of the Eclipse Public License v. 2.0, which is available at 7 | http://www.eclipse.org/legal/epl-2.0. 8 | 9 | This Source Code may also be made available under the following Secondary 10 | Licenses when the conditions for such availability set forth in the 11 | Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | version 2 with the GNU Classpath Exception, which is available at 13 | https://www.gnu.org/software/classpath/license.html. 14 | 15 | SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | 17 | --%> 18 | 19 | 20 | checkApplication Test 21 | 22 | <% 23 | out.println("Test FAILED from dummyJSP"); 24 | %> 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/api/jakarta_servlet/servletcontext40/addJspFile.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | 3 | Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. 4 | 5 | This program and the accompanying materials are made available under the 6 | terms of the Eclipse Public License v. 2.0, which is available at 7 | http://www.eclipse.org/legal/epl-2.0. 8 | 9 | This Source Code may also be made available under the following Secondary 10 | Licenses when the conditions for such availability set forth in the 11 | Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | version 2 with the GNU Classpath Exception, which is available at 13 | https://www.gnu.org/software/classpath/license.html. 14 | 15 | SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | 17 | --%> 18 | 19 | <%="addJspFile is accessed"%> 20 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/api/jakarta_servlet_http/httpsession/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | index.html 22 | 23 | 24 | INDEX from index.html 25 | 26 | 27 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/compat/LeadingSlash/WithLeadingSlash/WithLeadingSlashTest.gf: -------------------------------------------------------------------------------- 1 | WithLeadingSlashTest test PASSED 2 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/compat/LeadingSlash/WithoutLeadingSlash/WithoutLeadingSlashTest.gf: -------------------------------------------------------------------------------- 1 | WithoutLeadingSlashTest test PASSED 2 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/spec/errorpage/HTMLErrorPage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | HTML Error Page 22 | 23 | 24 | Error page mechanism invoked. 25 | 26 | 27 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/spec/security/secform/error.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | 3 | Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved. 4 | 5 | This program and the accompanying materials are made available under the 6 | terms of the Eclipse Public License v. 2.0, which is available at 7 | http://www.eclipse.org/legal/epl-2.0. 8 | 9 | This Source Code may also be made available under the following Secondary 10 | Licenses when the conditions for such availability set forth in the 11 | Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | version 2 with the GNU Classpath Exception, which is available at 13 | https://www.gnu.org/software/classpath/license.html. 14 | 15 | SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | 17 | --%> 18 | 19 | <%@ page language="java" %> 20 | 21 | A simple Error Page 22 | 23 |

A simple Error Page

24 |
25 | You could not be authenticated with the information provided.
26 | Please check your Username and Password. 27 |
28 | <% 29 | if ( request.getUserPrincipal() == null ) 30 | out.println("The user principal is: " + request.getUserPrincipal() + "
"); 31 | else 32 | out.println("The user principal is: " + request.getUserPrincipal().getName() + "
"); 33 | %> 34 |
35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/spec/security/secform/login.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | 3 | Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved. 4 | 5 | This program and the accompanying materials are made available under the 6 | terms of the Eclipse Public License v. 2.0, which is available at 7 | http://www.eclipse.org/legal/epl-2.0. 8 | 9 | This Source Code may also be made available under the following Secondary 10 | Licenses when the conditions for such availability set forth in the 11 | Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | version 2 with the GNU Classpath Exception, which is available at 13 | https://www.gnu.org/software/classpath/license.html. 14 | 15 | SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | 17 | --%> 18 | 19 | <%@ page language="java" import="javax.naming.*" %> 20 | 21 | A JSP Login Page 22 |

Login Page

23 |
24 | <% 25 | out.println("Please Login \n"); 26 | %> 27 |
28 |
29 |
30 | UserName:
31 | Password:
32 |
33 | 34 | 35 |
36 | 37 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/spec/serverpush/index.html: -------------------------------------------------------------------------------- 1 | 18 | 19 | INDEX from index.html 20 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/spec/webapps/accesswebinf/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | test 22 | 23 | 24 | test html page. 25 | 26 | 27 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/spec/welcomefiles/catalog/default.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | 3 | Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved. 4 | 5 | This program and the accompanying materials are made available under the 6 | terms of the Eclipse Public License v. 2.0, which is available at 7 | http://www.eclipse.org/legal/epl-2.0. 8 | 9 | This Source Code may also be made available under the following Secondary 10 | Licenses when the conditions for such availability set forth in the 11 | Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | version 2 with the GNU Classpath Exception, which is available at 13 | https://www.gnu.org/software/classpath/license.html. 14 | 15 | SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | 17 | --%> 18 | 19 | <%@ page language="java" %> 20 | 21 | 22 | <% 23 | out.println("HELLO from catalog/default.jsp" + "
"); 24 | %> 25 |
26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/spec/welcomefiles/default.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | 3 | Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved. 4 | 5 | This program and the accompanying materials are made available under the 6 | terms of the Eclipse Public License v. 2.0, which is available at 7 | http://www.eclipse.org/legal/epl-2.0. 8 | 9 | This Source Code may also be made available under the following Secondary 10 | Licenses when the conditions for such availability set forth in the 11 | Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | version 2 with the GNU Classpath Exception, which is available at 13 | https://www.gnu.org/software/classpath/license.html. 14 | 15 | SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | 17 | --%> 18 | 19 | <%@ page language="java" %> 20 | 21 | 22 | <% 23 | out.println("HELLO from default.jsp" + "
"); 24 | %> 25 |
26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/spec/welcomefiles/foo/default.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | 3 | Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved. 4 | 5 | This program and the accompanying materials are made available under the 6 | terms of the Eclipse Public License v. 2.0, which is available at 7 | http://www.eclipse.org/legal/epl-2.0. 8 | 9 | This Source Code may also be made available under the following Secondary 10 | Licenses when the conditions for such availability set forth in the 11 | Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | version 2 with the GNU Classpath Exception, which is available at 13 | https://www.gnu.org/software/classpath/license.html. 14 | 15 | SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | 17 | --%> 18 | 19 | <%@ page language="java" %> 20 | 21 | 22 | <% 23 | out.println("HELLO from foo/default.jsp" + "
"); 24 | %> 25 |
26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/spec/welcomefiles/foo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | index.html 22 | 23 | 24 | INDEX from foo/index.html 25 | 26 | 27 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/spec/welcomefiles/foo/order.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | 3 | Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved. 4 | 5 | This program and the accompanying materials are made available under the 6 | terms of the Eclipse Public License v. 2.0, which is available at 7 | http://www.eclipse.org/legal/epl-2.0. 8 | 9 | This Source Code may also be made available under the following Secondary 10 | Licenses when the conditions for such availability set forth in the 11 | Eclipse Public License v. 2.0 are satisfied: GNU General Public License, 12 | version 2 with the GNU Classpath Exception, which is available at 13 | https://www.gnu.org/software/classpath/license.html. 14 | 15 | SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 16 | 17 | --%> 18 | 19 | <%@ page language="java" %> 20 | 21 | 22 | <% 23 | out.println("HELLO from foo/order.jsp" + "
"); 24 | %> 25 |
26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tck/tck-util/src/main/resources/spec/welcomefiles/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | index.html 22 | 23 | 24 | INDEX from index.html 25 | 26 | 27 | --------------------------------------------------------------------------------