├── .github └── workflows │ ├── ISSUE_TEMPLATE │ └── tck_challenge.md │ └── maven-package.yml ├── .gitignore ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── CONTRIBUTING.md ├── Jenkinsfile ├── LICENSE.md ├── NOTICE.md ├── README.md ├── etc ├── bin │ └── fixEmptySpacesAtEOL.sh └── config │ ├── checkstyle.xml │ └── copyright-exclude ├── examples ├── LICENSE.md ├── pom.xml └── src │ └── main │ └── java │ └── jaxrs │ └── examples │ ├── async │ ├── AsyncEventResource.java │ ├── LongRunningAsyncOperationResource.java │ ├── SimpleAsyncEventResource.java │ └── package-info.java │ ├── bootstrap │ ├── BasicJavaSeBootstrapExample.java │ ├── ClientAuthenticationJavaSeBootstrapExample.java │ ├── ExplicitJavaSeBootstrapExample.java │ ├── ExternalConfigJavaSeBootstrapExample.java │ ├── HelloWorld.java │ ├── HttpsJavaSeBootstrapExample.java │ ├── NativeJavaSeBootstrapExample.java │ ├── PropertyProviderJavaSeBootstrapExample.java │ ├── TlsJavaSeBootstrapExample.java │ └── package-info.java │ ├── client │ ├── BasicExamples.java │ ├── cache │ │ ├── CacheEntry.java │ │ ├── CacheEntryLocator.java │ │ ├── CacheExample.java │ │ ├── CacheResponseFilter.java │ │ ├── CachingFeature.java │ │ └── package-info.java │ ├── custom │ │ ├── ThrottledClient.java │ │ └── package-info.java │ ├── encoding │ │ ├── GzipExample.java │ │ └── package-info.java │ ├── links │ │ ├── LinkUsageExample.java │ │ └── package-info.java │ ├── package-info.java │ ├── spec │ │ ├── SpecExamples.java │ │ └── package-info.java │ ├── validator │ │ ├── NotNull.java │ │ ├── Pattern.java │ │ ├── ValidatorExample.java │ │ └── package-info.java │ └── webdav │ │ ├── WebDavAsyncInvoker.java │ │ ├── WebDavClient.java │ │ ├── WebDavClientTest.java │ │ ├── WebDavSyncInvoker.java │ │ ├── WebDavTarget.java │ │ ├── WebDavTargetedBuilder.java │ │ └── package-info.java │ ├── filter │ ├── caching │ │ ├── ServerCachingFilter.java │ │ └── package-info.java │ ├── compression │ │ ├── GzipEntityInterceptor.java │ │ ├── Gzipped.java │ │ ├── MyResourceClass.java │ │ └── package-info.java │ ├── logging │ │ ├── DynamicLoggingFilterFeature.java │ │ ├── Logged.java │ │ ├── LoggingFilter.java │ │ ├── MyResourceClass.java │ │ └── package-info.java │ └── post │ │ ├── PostMethodOverrideFilter.java │ │ └── package-info.java │ ├── link │ ├── LinkExamples.java │ ├── ResourceExample.java │ ├── clusterservice │ │ ├── ClientTest.java │ │ ├── Cluster.java │ │ ├── ClusterResource.java │ │ ├── Machine.java │ │ ├── MachineResource.java │ │ ├── Model.java │ │ └── package-info.java │ └── package-info.java │ ├── multipart │ ├── MultipartClient.java │ ├── MultipartResource.java │ └── package-info.java │ ├── rc │ ├── FooResource.java │ ├── FruitsResource.java │ └── package-info.java │ └── sse │ ├── ItemStoreResource.java │ ├── ServerSentEventsResource.java │ ├── SseClient.java │ └── package-info.java ├── jaxrs-api ├── .gitignore ├── pom.xml └── src │ ├── main │ ├── java │ │ ├── jakarta │ │ │ └── ws │ │ │ │ └── rs │ │ │ │ ├── ApplicationPath.java │ │ │ │ ├── BadRequestException.java │ │ │ │ ├── BeanParam.java │ │ │ │ ├── ClientErrorException.java │ │ │ │ ├── ConstrainedTo.java │ │ │ │ ├── Consumes.java │ │ │ │ ├── CookieParam.java │ │ │ │ ├── DELETE.java │ │ │ │ ├── DefaultValue.java │ │ │ │ ├── Encoded.java │ │ │ │ ├── ForbiddenException.java │ │ │ │ ├── FormParam.java │ │ │ │ ├── GET.java │ │ │ │ ├── HEAD.java │ │ │ │ ├── HeaderParam.java │ │ │ │ ├── HttpMethod.java │ │ │ │ ├── InternalServerErrorException.java │ │ │ │ ├── MatrixParam.java │ │ │ │ ├── NameBinding.java │ │ │ │ ├── NotAcceptableException.java │ │ │ │ ├── NotAllowedException.java │ │ │ │ ├── NotAuthorizedException.java │ │ │ │ ├── NotFoundException.java │ │ │ │ ├── NotSupportedException.java │ │ │ │ ├── OPTIONS.java │ │ │ │ ├── PATCH.java │ │ │ │ ├── POST.java │ │ │ │ ├── PUT.java │ │ │ │ ├── Path.java │ │ │ │ ├── PathParam.java │ │ │ │ ├── Priorities.java │ │ │ │ ├── ProcessingException.java │ │ │ │ ├── Produces.java │ │ │ │ ├── QueryParam.java │ │ │ │ ├── RedirectionException.java │ │ │ │ ├── RuntimeType.java │ │ │ │ ├── SeBootstrap.java │ │ │ │ ├── ServerErrorException.java │ │ │ │ ├── ServiceUnavailableException.java │ │ │ │ ├── WebApplicationException.java │ │ │ │ ├── client │ │ │ │ ├── AsyncInvoker.java │ │ │ │ ├── Client.java │ │ │ │ ├── ClientBuilder.java │ │ │ │ ├── ClientRequestContext.java │ │ │ │ ├── ClientRequestFilter.java │ │ │ │ ├── ClientResponseContext.java │ │ │ │ ├── ClientResponseFilter.java │ │ │ │ ├── CompletionStageRxInvoker.java │ │ │ │ ├── Entity.java │ │ │ │ ├── FactoryFinder.java │ │ │ │ ├── Invocation.java │ │ │ │ ├── InvocationCallback.java │ │ │ │ ├── ResponseProcessingException.java │ │ │ │ ├── RxInvoker.java │ │ │ │ ├── RxInvokerProvider.java │ │ │ │ ├── SyncInvoker.java │ │ │ │ ├── WebTarget.java │ │ │ │ └── package-info.java │ │ │ │ ├── container │ │ │ │ ├── AsyncResponse.java │ │ │ │ ├── CompletionCallback.java │ │ │ │ ├── ConnectionCallback.java │ │ │ │ ├── ContainerRequestContext.java │ │ │ │ ├── ContainerRequestFilter.java │ │ │ │ ├── ContainerResponseContext.java │ │ │ │ ├── ContainerResponseFilter.java │ │ │ │ ├── DynamicFeature.java │ │ │ │ ├── PreMatching.java │ │ │ │ ├── ResourceContext.java │ │ │ │ ├── ResourceInfo.java │ │ │ │ ├── Suspended.java │ │ │ │ ├── TimeoutHandler.java │ │ │ │ └── package-info.java │ │ │ │ ├── core │ │ │ │ ├── AbstractMultivaluedMap.java │ │ │ │ ├── Application.java │ │ │ │ ├── CacheControl.java │ │ │ │ ├── Configurable.java │ │ │ │ ├── Configuration.java │ │ │ │ ├── Context.java │ │ │ │ ├── Cookie.java │ │ │ │ ├── EntityPart.java │ │ │ │ ├── EntityTag.java │ │ │ │ ├── Feature.java │ │ │ │ ├── FeatureContext.java │ │ │ │ ├── Form.java │ │ │ │ ├── GenericEntity.java │ │ │ │ ├── GenericType.java │ │ │ │ ├── HttpHeaders.java │ │ │ │ ├── Link.java │ │ │ │ ├── MediaType.java │ │ │ │ ├── MultivaluedHashMap.java │ │ │ │ ├── MultivaluedMap.java │ │ │ │ ├── NewCookie.java │ │ │ │ ├── NoContentException.java │ │ │ │ ├── PathSegment.java │ │ │ │ ├── Request.java │ │ │ │ ├── Response.java │ │ │ │ ├── SecurityContext.java │ │ │ │ ├── StreamingOutput.java │ │ │ │ ├── UriBuilder.java │ │ │ │ ├── UriBuilderException.java │ │ │ │ ├── UriInfo.java │ │ │ │ ├── Variant.java │ │ │ │ └── package-info.java │ │ │ │ ├── ext │ │ │ │ ├── ContextResolver.java │ │ │ │ ├── ExceptionMapper.java │ │ │ │ ├── FactoryFinder.java │ │ │ │ ├── InterceptorContext.java │ │ │ │ ├── MessageBodyReader.java │ │ │ │ ├── MessageBodyWriter.java │ │ │ │ ├── ParamConverter.java │ │ │ │ ├── ParamConverterProvider.java │ │ │ │ ├── Provider.java │ │ │ │ ├── Providers.java │ │ │ │ ├── ReaderInterceptor.java │ │ │ │ ├── ReaderInterceptorContext.java │ │ │ │ ├── RuntimeDelegate.java │ │ │ │ ├── WriterInterceptor.java │ │ │ │ ├── WriterInterceptorContext.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ └── sse │ │ │ │ ├── FactoryFinder.java │ │ │ │ ├── InboundSseEvent.java │ │ │ │ ├── OutboundSseEvent.java │ │ │ │ ├── Sse.java │ │ │ │ ├── SseBroadcaster.java │ │ │ │ ├── SseEvent.java │ │ │ │ ├── SseEventSink.java │ │ │ │ ├── SseEventSource.java │ │ │ │ └── package-info.java │ │ └── module-info.java │ └── javadoc │ │ ├── overview.html │ │ └── resources │ │ └── EFSL.html │ └── test │ └── java │ └── jakarta │ └── ws │ └── rs │ ├── SeBootstrapTest.java │ ├── SerializationTest.java │ ├── core │ ├── AbstractMultivaluedMapTest.java │ ├── BaseDelegateTest.java │ ├── CacheControlTest.java │ ├── CookieTest.java │ ├── EntityTagTest.java │ ├── FormTest.java │ ├── GenericEntityTest.java │ ├── GenericTypeTest.java │ ├── MediaTypeTest.java │ ├── MultivaluedHashMapTest.java │ ├── NewCookieBuilderTest.java │ ├── NewCookieTest.java │ ├── RxClientTest.java │ └── VariantTest.java │ └── ext │ └── RuntimeDelegateTest.java ├── jaxrs-spec ├── README.md ├── pom.xml └── src │ ├── main │ └── asciidoc │ │ ├── chapters │ │ ├── appendix │ │ │ ├── _annotation_table.adoc │ │ │ ├── _bibliography.adoc │ │ │ ├── _change-log.adoc │ │ │ ├── _changes-since-1.0-release.adoc │ │ │ ├── _changes-since-1.1-release.adoc │ │ │ ├── _changes-since-2.0-early-draft-second-edition.adoc │ │ │ ├── _changes-since-2.0-early-draft-third-edition.adoc │ │ │ ├── _changes-since-2.0-early-draft.adoc │ │ │ ├── _changes-since-2.0-final-release.adoc │ │ │ ├── _changes-since-2.0-proposed-final-draft.adoc │ │ │ ├── _changes-since-2.0-public-review-draft.adoc │ │ │ ├── _changes-since-2.1-early-draft.adoc │ │ │ ├── _changes-since-2.1-public-review.adoc │ │ │ ├── _changes-since-2.1-release.adoc │ │ │ ├── _changes-since-3.0-release.adoc │ │ │ ├── _changes-since-3.1-release.adoc │ │ │ ├── _changes-since-proposed-final-draft.adoc │ │ │ ├── _changes-since-public-review-draft.adoc │ │ │ ├── _headersupport.adoc │ │ │ └── _processing_pipeline.adoc │ │ ├── applications │ │ │ ├── _applications.adoc │ │ │ ├── _config.adoc │ │ │ ├── _publication.adoc │ │ │ └── _verification.adoc │ │ ├── asynchronous_processing │ │ │ ├── _async_ejbs.adoc │ │ │ ├── _asynchronous_processing.adoc │ │ │ ├── _client_api_async.adoc │ │ │ ├── _introduction_async.adoc │ │ │ └── _server_api.adoc │ │ ├── client_api │ │ │ ├── _bootstrapping-a-client-instance.adoc │ │ │ ├── _client-targets.adoc │ │ │ ├── _client_api.adoc │ │ │ ├── _client_exceptions.adoc │ │ │ ├── _configurable_types.adoc │ │ │ ├── _executor_services.adoc │ │ │ ├── _invocations.adoc │ │ │ ├── _reactive_clients.adoc │ │ │ ├── _resource_access.adoc │ │ │ └── _typed-entities.adoc │ │ ├── context │ │ │ ├── _concurrency.adoc │ │ │ ├── _context.adoc │ │ │ └── _contexttypes.adoc │ │ ├── environment │ │ │ ├── _environment.adoc │ │ │ ├── _javaee.adoc │ │ │ ├── _other.adoc │ │ │ └── _servlet_container.adoc │ │ ├── filters_and_interceptors │ │ │ ├── _binding.adoc │ │ │ ├── _entity_interceptors.adoc │ │ │ ├── _exceptions_filters_and_interceptors.adoc │ │ │ ├── _filters.adoc │ │ │ ├── _filters_and_interceptors.adoc │ │ │ ├── _introduction_filters.adoc │ │ │ ├── _lifecycle.adoc │ │ │ └── _priorities.adoc │ │ ├── introduction │ │ │ ├── _acks.adoc │ │ │ ├── _conventions.adoc │ │ │ ├── _goals.adoc │ │ │ ├── _introduction.adoc │ │ │ ├── _non_goals.adoc │ │ │ ├── _project_team.adoc │ │ │ ├── _status.adoc │ │ │ └── _terminology.adoc │ │ ├── license │ │ │ └── _license-efsl.adoc │ │ ├── providers │ │ │ ├── _contextprovider.adoc │ │ │ ├── _entity_providers.adoc │ │ │ ├── _exceptionmapper.adoc │ │ │ ├── _exceptions_providers.adoc │ │ │ ├── _lifecycle_and_environment.adoc │ │ │ └── _providers.adoc │ │ ├── resources │ │ │ ├── _annotationinheritance.adoc │ │ │ ├── _declaring_method_capabilities.adoc │ │ │ ├── _determine_response_type.adoc │ │ │ ├── _mapping_requests_to_java_methods.adoc │ │ │ ├── _resource-classes.adoc │ │ │ ├── _resource_field.adoc │ │ │ ├── _resource_method.adoc │ │ │ ├── _resources.adoc │ │ │ └── _uritemplates.adoc │ │ ├── runtimedelegate │ │ │ ├── _rdconfig.adoc │ │ │ └── _runtimedelegate.adoc │ │ ├── sse │ │ │ ├── _sse.adoc │ │ │ ├── _sse_broadcasting.adoc │ │ │ ├── _sse_client_api.adoc │ │ │ ├── _sse_environment.adoc │ │ │ ├── _sse_introduction.adoc │ │ │ ├── _sse_pipeline.adoc │ │ │ └── _sse_server_api.adoc │ │ └── validation │ │ │ ├── _annotation_inheritance.adoc │ │ │ ├── _annotations_and_validators.adoc │ │ │ ├── _constraint_annotations.adoc │ │ │ ├── _default_validation_mode.adoc │ │ │ ├── _entity_validation.adoc │ │ │ ├── _validation.adoc │ │ │ └── _validation_and_error_reporting.adoc │ │ ├── images │ │ ├── jakarta_ee_logo_schooner_color_stacked_default.png │ │ ├── pipeline_client.png │ │ └── pipeline_server.png │ │ └── spec.adoc │ └── theme │ └── jakartaee-theme.yml ├── jaxrs-tck ├── docs │ ├── JAXRSTCK4.0-ReleaseNotes.html │ ├── TCK-Exclude-List.txt │ ├── assertions │ │ ├── JAXRSJavadocAssertions_3.0.0.html │ │ ├── JAXRSJavadocAssertions_3.0.0.xml │ │ ├── JAXRSJavadocAssertions_3.1.0.html │ │ ├── JAXRSJavadocAssertions_3.1.0.xml │ │ ├── JAXRSJavadocAssertions_4.0.0.html │ │ ├── JAXRSJavadocAssertions_4.0.0.xml │ │ ├── JAXRSSpecAssertions_3.0.0.html │ │ ├── JAXRSSpecAssertions_3.0.0.xml │ │ ├── JAXRSSpecAssertions_3.1.0.html │ │ ├── JAXRSSpecAssertions_3.1.0.xml │ │ ├── JAXRSSpecAssertions_4.0.0.html │ │ └── JAXRSSpecAssertions_4.0.0.xml │ ├── index.html │ └── userguide │ │ ├── README.md │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ └── jbake │ │ │ ├── assets │ │ │ ├── README.md │ │ │ ├── _config.yml │ │ │ ├── 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 │ │ │ ├── using-examples.inc │ │ │ ├── using.adoc │ │ │ └── using.inc │ │ │ ├── jbake.properties │ │ │ └── templates │ │ │ ├── footer.ftl │ │ │ ├── header.ftl │ │ │ ├── menu.ftl │ │ │ └── page.ftl │ │ └── theme │ │ └── jakartaee-theme.yml ├── pom.xml └── src │ ├── main │ ├── assembly │ │ └── assembly.xml │ ├── java │ │ └── ee │ │ │ └── jakarta │ │ │ └── tck │ │ │ └── ws │ │ │ └── rs │ │ │ ├── api │ │ │ ├── client │ │ │ │ ├── client │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── clientbuilder │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── clientrequestcontext │ │ │ │ │ ├── ContextProvider.java │ │ │ │ │ ├── GetPropertyNamesIsImmutableProvider.java │ │ │ │ │ ├── GetPropertyNamesProvider.java │ │ │ │ │ ├── GetSetPropertyProvider.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── RemovePropertyProvider.java │ │ │ │ │ └── SetEntityProvider.java │ │ │ │ ├── clientresponsecontext │ │ │ │ │ ├── ContextProvider.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── NullStringBeanHeaderDelegate.java │ │ │ │ │ └── NullStringBeanRuntimeDelegate.java │ │ │ │ ├── entity │ │ │ │ │ ├── AnnotatedClass.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ └── SerializableClass.java │ │ │ │ ├── invocation │ │ │ │ │ ├── GenericTypeResponse.java │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── invocationcallback │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── responseprocessingexception │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ └── webtarget │ │ │ │ │ └── JAXRSClientIT.java │ │ │ └── rs │ │ │ │ ├── badrequestexception │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── bindingpriority │ │ │ │ ├── ContextProvider.java │ │ │ │ ├── HigherPriorityProvider.java │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ └── LowerPriorityProvider.java │ │ │ │ ├── clienterrorexception │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── core │ │ │ │ ├── abstractmultivaluedmap │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── cachecontrol │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── configurable │ │ │ │ │ ├── Assertable.java │ │ │ │ │ ├── CallableProvider.java │ │ │ │ │ ├── ConfigurableObject.java │ │ │ │ │ ├── FeatureReturningFalse.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Registrar.java │ │ │ │ │ └── SingleCheckAssertable.java │ │ │ │ ├── configuration │ │ │ │ │ ├── CallableProvider1.java │ │ │ │ │ ├── CallableProvider2.java │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── cookie │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── entitytag │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── form │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── genericentity │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── generictype │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── link │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── ResourceWithProduces.java │ │ │ │ ├── linkbuilder │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ └── Resource.java │ │ │ │ ├── mediatype │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── multivaluedhashmap │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── multivaluedmap │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── newcookie │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── nocontentexception │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── responsebuilder │ │ │ │ │ └── BuilderClientIT.java │ │ │ │ ├── responseclient │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ └── VerificationResult.java │ │ │ │ ├── responsestatustype │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── uribuilder │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── TestPath.java │ │ │ │ │ └── TestPathBad.java │ │ │ │ ├── variant │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ └── variantlistbuilder │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── ext │ │ │ │ ├── interceptor │ │ │ │ │ ├── ContextOperation.java │ │ │ │ │ ├── InputStreamReaderProvider.java │ │ │ │ │ ├── InterceptorBodyOne.java │ │ │ │ │ ├── InterceptorBodyTwo.java │ │ │ │ │ ├── InterceptorCallbackMethods.java │ │ │ │ │ ├── TemplateInterceptorBody.java │ │ │ │ │ └── reader │ │ │ │ │ │ ├── ReaderClient.java │ │ │ │ │ │ ├── TemplateReaderInterceptor.java │ │ │ │ │ │ ├── interceptorcontext │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ ├── ReaderInterceptorOne.java │ │ │ │ │ │ └── ReaderInterceptorTwo.java │ │ │ │ │ │ └── readerinterceptorcontext │ │ │ │ │ │ ├── ContextOperation.java │ │ │ │ │ │ ├── ExceptionThrowingStringBean.java │ │ │ │ │ │ ├── ExceptionThrowingStringBeanEntityProvider.java │ │ │ │ │ │ ├── InterceptorOneBody.java │ │ │ │ │ │ ├── InterceptorTwoBody.java │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ ├── ReaderInterceptorOne.java │ │ │ │ │ │ └── ReaderInterceptorTwo.java │ │ │ │ └── runtimedelegate │ │ │ │ │ ├── JAXRSDelegateClient.java │ │ │ │ │ ├── TckRuntimeDelegate.java │ │ │ │ │ ├── create │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ └── Resource.java │ │ │ │ │ └── setinstance │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── forbiddenexception │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── internalservererrorexception │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── notacceptableexception │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── notallowedexception │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── notauthorizedexception │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── notfoundexception │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── notsupportedexception │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── processingexception │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── redirectexception │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── runtimetype │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── servererrorexception │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── serviceunavailableexception │ │ │ │ └── JAXRSClientIT.java │ │ │ │ └── webapplicationexceptiontest │ │ │ │ └── JAXRSClientIT.java │ │ │ ├── common │ │ │ ├── AbstractMessageBodyRW.java │ │ │ ├── JAXRSCommonClient.java │ │ │ ├── Version.java │ │ │ ├── client │ │ │ │ ├── ApacheRequestAdapter.java │ │ │ │ ├── ApacheResponseAdapter.java │ │ │ │ ├── JaxrsCommonClient.java │ │ │ │ ├── JaxrsWebTestCase.java │ │ │ │ ├── JdkLoggingFilter.java │ │ │ │ └── TextCaser.java │ │ │ ├── impl │ │ │ │ ├── JaxbKeyValueBean.java │ │ │ │ ├── ReplacingOutputStream.java │ │ │ │ ├── SecurityContextImpl.java │ │ │ │ ├── SinglevaluedMap.java │ │ │ │ ├── StringDataSource.java │ │ │ │ ├── StringSource.java │ │ │ │ ├── StringStreamingOutput.java │ │ │ │ └── TRACE.java │ │ │ ├── matchers │ │ │ │ └── IsThrowingMatcher.java │ │ │ ├── provider │ │ │ │ ├── PrintingErrorHandler.java │ │ │ │ ├── StringBean.java │ │ │ │ ├── StringBeanEntityProvider.java │ │ │ │ ├── StringBeanHeaderDelegate.java │ │ │ │ ├── StringBeanParamConverter.java │ │ │ │ ├── StringBeanParamConverterProvider.java │ │ │ │ ├── StringBeanRuntimeDelegate.java │ │ │ │ └── StringBeanWithAnnotation.java │ │ │ ├── util │ │ │ │ ├── Data.java │ │ │ │ ├── Holder.java │ │ │ │ ├── JaxrsUtil.java │ │ │ │ └── LinkedHolder.java │ │ │ └── webclient │ │ │ │ ├── Goldenfile.java │ │ │ │ ├── TestCase.java │ │ │ │ ├── TestFailureException.java │ │ │ │ ├── Util.java │ │ │ │ ├── WebTestCase.java │ │ │ │ ├── handler │ │ │ │ ├── ALLOWHandler.java │ │ │ │ ├── ContentTypeHandler.java │ │ │ │ ├── DefaultHandler.java │ │ │ │ ├── Handler.java │ │ │ │ ├── HandlerFactory.java │ │ │ │ ├── LocationHandler.java │ │ │ │ ├── SetCookieHandler.java │ │ │ │ └── WWWAuthenticateHandler.java │ │ │ │ ├── http │ │ │ │ ├── HttpRequest.java │ │ │ │ ├── HttpResponse.java │ │ │ │ └── MethodFactory.java │ │ │ │ └── validation │ │ │ │ ├── CheckOneOfStatusesTokenizedValidator.java │ │ │ │ ├── TokenizedValidator.java │ │ │ │ ├── ValidationFactory.java │ │ │ │ ├── ValidationStrategy.java │ │ │ │ └── WebValidatorBase.java │ │ │ ├── ee │ │ │ ├── resource │ │ │ │ ├── java2entity │ │ │ │ │ ├── CollectionWriter.java │ │ │ │ │ ├── IncorrectCollectionWriter.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── readme.txt │ │ │ │ └── webappexception │ │ │ │ │ ├── defaultmapper │ │ │ │ │ ├── DefaultExceptionMapperIT.java │ │ │ │ │ ├── OverriddenDefaultExceptionMapper.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ │ ├── mapper │ │ │ │ │ ├── DirectResponseUsageResource.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── ResponseWithNoEntityUsesMapperResource.java │ │ │ │ │ ├── RuntimeExceptionMapper.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ └── WebAppExceptionMapper.java │ │ │ │ │ └── nomapper │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ └── rs │ │ │ │ ├── Constants.java │ │ │ │ ├── JaxrsParamClient.java │ │ │ │ ├── ParamEntityPrototype.java │ │ │ │ ├── ParamEntityThrowingExceptionGivenByName.java │ │ │ │ ├── ParamEntityThrowingWebApplicationException.java │ │ │ │ ├── ParamEntityWithConstructor.java │ │ │ │ ├── ParamEntityWithFromString.java │ │ │ │ ├── ParamEntityWithValueOf.java │ │ │ │ ├── ParamTest.java │ │ │ │ ├── RuntimeExceptionMapper.java │ │ │ │ ├── WebApplicationExceptionMapper.java │ │ │ │ ├── beanparam │ │ │ │ ├── BeanParamCommonClient.java │ │ │ │ ├── bean │ │ │ │ │ ├── BeanParamEntity.java │ │ │ │ │ └── InnerBeanParamEntity.java │ │ │ │ ├── cookie │ │ │ │ │ ├── bean │ │ │ │ │ │ ├── CookieBeanParamEntity.java │ │ │ │ │ │ └── InnerCookieBeanParamEntity.java │ │ │ │ │ └── plain │ │ │ │ │ │ ├── AppConfig.java │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ └── Resource.java │ │ │ │ ├── form │ │ │ │ │ ├── bean │ │ │ │ │ │ ├── FormBeanParamEntity.java │ │ │ │ │ │ └── InnerFormBeanParamEntity.java │ │ │ │ │ └── plain │ │ │ │ │ │ ├── AppConfig.java │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ └── Resource.java │ │ │ │ ├── header │ │ │ │ │ ├── bean │ │ │ │ │ │ ├── HeaderBeanParamEntity.java │ │ │ │ │ │ └── InnerHeaderBeanParamEntity.java │ │ │ │ │ └── plain │ │ │ │ │ │ ├── AppConfig.java │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ └── Resource.java │ │ │ │ ├── matrix │ │ │ │ │ ├── bean │ │ │ │ │ │ ├── InnerMatrixBeanParamEntity.java │ │ │ │ │ │ └── MatrixBeanParamEntity.java │ │ │ │ │ └── plain │ │ │ │ │ │ ├── AppConfig.java │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ └── Resource.java │ │ │ │ ├── path │ │ │ │ │ ├── bean │ │ │ │ │ │ ├── InnerPathBeanParamEntity.java │ │ │ │ │ │ └── PathBeanParamEntity.java │ │ │ │ │ └── plain │ │ │ │ │ │ ├── AppConfig.java │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ └── Resource.java │ │ │ │ ├── plain │ │ │ │ │ ├── AppConfig.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ └── Resource.java │ │ │ │ └── query │ │ │ │ │ ├── bean │ │ │ │ │ ├── InnerQueryBeanParamEntity.java │ │ │ │ │ └── QueryBeanParamEntity.java │ │ │ │ │ └── plain │ │ │ │ │ ├── AppConfig.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ └── Resource.java │ │ │ │ ├── client │ │ │ │ ├── asyncinvoker │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── clientrequestcontext │ │ │ │ │ ├── ContextProvider.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── invocationbuilder │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ └── syncinvoker │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── constrainedto │ │ │ │ ├── ClientSideReader.java │ │ │ │ ├── ClientSideWriter.java │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── Resource.java │ │ │ │ ├── ServerSideReader.java │ │ │ │ ├── ServerSideWriter.java │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── container │ │ │ │ ├── requestcontext │ │ │ │ │ ├── ContextOperation.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── RequestFilter.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── SecondRequestFilter.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ ├── TemplateFilter.java │ │ │ │ │ ├── illegalstate │ │ │ │ │ │ ├── ContextOperation.java │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ ├── RequestFilter.java │ │ │ │ │ │ ├── RequestTemplateFilter.java │ │ │ │ │ │ ├── Resource.java │ │ │ │ │ │ ├── ResponseFilter.java │ │ │ │ │ │ ├── ResponseTemplateFilter.java │ │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ │ └── TemplateFilter.java │ │ │ │ │ └── security │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ ├── RequestFilter.java │ │ │ │ │ │ ├── Resource.java │ │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── resourceinfo │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ └── responsecontext │ │ │ │ │ ├── ContextOperation.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── ResponseFilter.java │ │ │ │ │ ├── SecondResponseFilter.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ └── TemplateFilter.java │ │ │ │ ├── cookieparam │ │ │ │ ├── CookieParamTest.java │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── TSAppConfig.java │ │ │ │ ├── locator │ │ │ │ │ ├── JAXRSLocatorClientIT.java │ │ │ │ │ ├── LocatorResource.java │ │ │ │ │ ├── MiddleResource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ └── sub │ │ │ │ │ ├── CookieSubResource.java │ │ │ │ │ ├── JAXRSSubClientIT.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── core │ │ │ │ ├── application │ │ │ │ │ ├── ApplicationHolderSingleton.java │ │ │ │ │ ├── ApplicationServlet.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── configurable │ │ │ │ │ ├── FirstFilter.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── SecondFilter.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── configuration │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── headers │ │ │ │ │ ├── HttpHeadersTest.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── request │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── RequestTest.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── response │ │ │ │ │ ├── AnnotatedClass.java │ │ │ │ │ ├── CorruptedInputStream.java │ │ │ │ │ ├── DateReaderWriter.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── ResponseTest.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── responsebuilder │ │ │ │ │ ├── AnnotatedClass.java │ │ │ │ │ ├── DateClientReaderWriter.java │ │ │ │ │ ├── DateContainerReaderWriter.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── securitycontext │ │ │ │ │ ├── JAXRSClient.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ ├── TestServlet.java │ │ │ │ │ ├── basic │ │ │ │ │ │ └── JAXRSBasicClientIT.java │ │ │ │ │ └── common.xml │ │ │ │ └── uriinfo │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ └── URIInfoTest.java │ │ │ │ ├── delete │ │ │ │ ├── HttpMethodDeleteTest.java │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── ext │ │ │ │ ├── contextresolver │ │ │ │ │ ├── EnumContextResolver.java │ │ │ │ │ ├── EnumProvider.java │ │ │ │ │ └── TextPlainEnumContextResolver.java │ │ │ │ ├── exceptionmapper │ │ │ │ │ ├── AnyExceptionExceptionMapper.java │ │ │ │ │ └── IOExceptionExceptionMapper.java │ │ │ │ ├── interceptor │ │ │ │ │ ├── clientwriter │ │ │ │ │ │ ├── WriterClient.java │ │ │ │ │ │ ├── interceptorcontext │ │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ │ ├── Resource.java │ │ │ │ │ │ │ └── TSAppConfig.java │ │ │ │ │ │ └── writerinterceptorcontext │ │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ │ ├── Resource.java │ │ │ │ │ │ │ └── TSAppConfig.java │ │ │ │ │ ├── containerreader │ │ │ │ │ │ ├── ReaderClient.java │ │ │ │ │ │ ├── interceptorcontext │ │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ │ ├── Resource.java │ │ │ │ │ │ │ └── TSAppConfig.java │ │ │ │ │ │ └── readerinterceptorcontext │ │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ │ ├── Resource.java │ │ │ │ │ │ │ └── TSAppConfig.java │ │ │ │ │ ├── containerwriter │ │ │ │ │ │ ├── WriterClient.java │ │ │ │ │ │ ├── interceptorcontext │ │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ │ ├── Resource.java │ │ │ │ │ │ │ └── TSAppConfig.java │ │ │ │ │ │ └── writerinterceptorcontext │ │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ │ ├── Resource.java │ │ │ │ │ │ │ └── TSAppConfig.java │ │ │ │ │ └── writer │ │ │ │ │ │ ├── TemplateWriterInterceptor.java │ │ │ │ │ │ ├── interceptorcontext │ │ │ │ │ │ ├── WriterInterceptorOne.java │ │ │ │ │ │ └── WriterInterceptorTwo.java │ │ │ │ │ │ └── writerinterceptorcontext │ │ │ │ │ │ ├── ContextOperation.java │ │ │ │ │ │ ├── InterceptorBodyOne.java │ │ │ │ │ │ ├── InterceptorBodyTwo.java │ │ │ │ │ │ ├── OnWriteExceptionThrowingStringBean.java │ │ │ │ │ │ ├── ProceedException.java │ │ │ │ │ │ ├── ProceedExceptionMapper.java │ │ │ │ │ │ ├── WriterInterceptorOne.java │ │ │ │ │ │ └── WriterInterceptorTwo.java │ │ │ │ ├── messagebodyreaderwriter │ │ │ │ │ ├── EntityAnnotation.java │ │ │ │ │ ├── EntityMessageReader.java │ │ │ │ │ ├── EntityMessageWriter.java │ │ │ │ │ └── ReadableWritableEntity.java │ │ │ │ ├── paramconverter │ │ │ │ │ ├── AtomicIntegerLazyParamConverter.java │ │ │ │ │ ├── AtomicIntegerLazyParamConverterProvider.java │ │ │ │ │ ├── DataSourceParamConverter.java │ │ │ │ │ ├── DataSourceParamConverterProvider.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Locator.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── StringBeanParamConverter.java │ │ │ │ │ ├── StringBeanParamConverterProvider.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── providers │ │ │ │ │ ├── JAXRSProvidersClientIT.java │ │ │ │ │ ├── ProvidersServlet.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ └── runtimedelegate │ │ │ │ │ └── common.xml │ │ │ │ ├── formparam │ │ │ │ ├── FormParamTest.java │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── TSAppConfig.java │ │ │ │ ├── locator │ │ │ │ │ ├── JAXRSLocatorClientIT.java │ │ │ │ │ ├── LocatorResource.java │ │ │ │ │ ├── MiddleResource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ └── sub │ │ │ │ │ ├── JAXRSSubClientIT.java │ │ │ │ │ ├── SubResource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── get │ │ │ │ ├── HttpMethodGetTest.java │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── RecursiveLocator.java │ │ │ │ ├── SubResource.java │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── head │ │ │ │ ├── HttpMethodHeadTest.java │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── headerparam │ │ │ │ ├── HeaderParamTest.java │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── TSAppConfig.java │ │ │ │ ├── locator │ │ │ │ │ ├── JAXRSLocatorClientIT.java │ │ │ │ │ ├── LocatorResource.java │ │ │ │ │ ├── MiddleResource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ └── sub │ │ │ │ │ ├── JAXRSSubClientIT.java │ │ │ │ │ ├── SubResource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── matrixparam │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── MatrixParamTest.java │ │ │ │ ├── TSAppConfig.java │ │ │ │ ├── locator │ │ │ │ │ ├── JAXRSLocatorClientIT.java │ │ │ │ │ ├── LocatorResource.java │ │ │ │ │ ├── MiddleResource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ └── sub │ │ │ │ │ ├── JAXRSSubClientIT.java │ │ │ │ │ ├── SubResource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── options │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── Resource.java │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── pathparam │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── PathParamTest.java │ │ │ │ ├── TSAppConfig.java │ │ │ │ ├── locator │ │ │ │ │ ├── JAXRSLocatorClientIT.java │ │ │ │ │ ├── LocatorResource.java │ │ │ │ │ ├── MiddleResource.java │ │ │ │ │ ├── PathSegmentImpl.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ └── sub │ │ │ │ │ ├── JAXRSSubClientIT.java │ │ │ │ │ ├── SubResource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── produceconsume │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── Resource.java │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── put │ │ │ │ ├── HttpMethodPutTest.java │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ └── TSAppConfig.java │ │ │ │ └── queryparam │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── QueryParamTest.java │ │ │ │ ├── TSAppConfig.java │ │ │ │ └── sub │ │ │ │ ├── JAXRSSubClientIT.java │ │ │ │ ├── SubResource.java │ │ │ │ └── TSAppConfig.java │ │ │ ├── jaxrs21 │ │ │ ├── api │ │ │ │ └── client │ │ │ │ │ └── invocationbuilder │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── TCKRxInvoker.java │ │ │ │ │ └── TCKRxInvokerProvider.java │ │ │ ├── ee │ │ │ │ ├── client │ │ │ │ │ ├── executor │ │ │ │ │ │ ├── ExecutorServiceChecker.java │ │ │ │ │ │ ├── async │ │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ │ └── TSAppConfig.java │ │ │ │ │ │ └── rx │ │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ │ └── TSAppConfig.java │ │ │ │ │ └── rxinvoker │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ ├── Resource.java │ │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── patch │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── server │ │ │ │ │ │ ├── AdaptiveHttpRequest.java │ │ │ │ │ │ ├── AdaptiveMethodFactory.java │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ ├── PatchMethod.java │ │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── priority │ │ │ │ │ ├── ExceptionMapperOne.java │ │ │ │ │ ├── ExceptionMapperThree.java │ │ │ │ │ ├── ExceptionMapperTwo.java │ │ │ │ │ ├── ExceptionResource.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── ParamConverterProviderAnother.java │ │ │ │ │ ├── ParamConverterProviderOne.java │ │ │ │ │ ├── ParamConverterProviderTwo.java │ │ │ │ │ ├── ParamConverterResource.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ └── TckPriorityException.java │ │ │ │ └── sse │ │ │ │ │ ├── OutboundSSEEventImpl.java │ │ │ │ │ ├── SSEEventImpl.java │ │ │ │ │ ├── SSEJAXRSClient.java │ │ │ │ │ ├── SSEMessage.java │ │ │ │ │ ├── ssebroadcaster │ │ │ │ │ ├── BroadcastResource.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ │ ├── sseeventsink │ │ │ │ │ ├── CloseResource.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── MBWCheckResource.java │ │ │ │ │ ├── StageCheckerResource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ │ └── sseeventsource │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── MediaTypeResource.java │ │ │ │ │ ├── RepeatedCasterResource.java │ │ │ │ │ ├── ServiceUnavailableResource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ └── spec │ │ │ │ ├── classsubresourcelocator │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── Resource.java │ │ │ │ ├── SubResource.java │ │ │ │ └── TSAppConfig.java │ │ │ │ └── completionstage │ │ │ │ ├── CompletionStageResource.java │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ └── TSAppConfig.java │ │ │ ├── jaxrs31 │ │ │ ├── ee │ │ │ │ └── multipart │ │ │ │ │ └── MultipartSupportIT.java │ │ │ └── spec │ │ │ │ └── extensions │ │ │ │ ├── DynamicFeatureResource.java │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── TSAppConfig.java │ │ │ │ ├── TckDynamicFeature.java │ │ │ │ └── TckFeature.java │ │ │ ├── jaxrs40 │ │ │ └── ee │ │ │ │ └── rs │ │ │ │ └── core │ │ │ │ └── uriinfo │ │ │ │ ├── TSAppConfig.java │ │ │ │ ├── UriInfo40ClientIT.java │ │ │ │ └── UriInfoTestResource.java │ │ │ ├── lib │ │ │ ├── deliverable │ │ │ │ ├── PropertyManagerInterface.java │ │ │ │ └── PropertyNotSetException.java │ │ │ ├── implementation │ │ │ │ └── sun │ │ │ │ │ ├── common │ │ │ │ │ └── SunRIURL.java │ │ │ │ │ └── jersey │ │ │ │ │ └── TSWebConfiguration.java │ │ │ ├── porting │ │ │ │ ├── TSURL.java │ │ │ │ └── TSURLInterface.java │ │ │ └── util │ │ │ │ ├── BASE64Decoder.java │ │ │ │ ├── BASE64Encoder.java │ │ │ │ ├── CEFormatException.java │ │ │ │ ├── CEStreamExhausted.java │ │ │ │ ├── CharacterDecoder.java │ │ │ │ ├── CharacterEncoder.java │ │ │ │ ├── RemoteLoggingInitException.java │ │ │ │ └── TestUtil.java │ │ │ ├── sebootstrap │ │ │ └── SeBootstrapIT.java │ │ │ ├── servlet3 │ │ │ └── rs │ │ │ │ ├── applicationpath │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── Resource.java │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── core │ │ │ │ └── streamingoutput │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── StreamOutputTest.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ └── ext │ │ │ │ └── paramconverter │ │ │ │ └── autodiscovery │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── Resource.java │ │ │ │ └── TSAppConfig.java │ │ │ ├── signaturetest │ │ │ ├── ApiCheckDriver.java │ │ │ ├── ApiCheckRecorder.java │ │ │ ├── PackageList.java │ │ │ ├── README │ │ │ ├── Recorder.java │ │ │ ├── RecorderFactory.java │ │ │ ├── SigTest.java │ │ │ ├── SigTestData.java │ │ │ ├── SigTestDriver.java │ │ │ ├── SigTestEE.java │ │ │ ├── SigTestRecorder.java │ │ │ ├── SigTestResult.java │ │ │ ├── SignatureTestDriver.java │ │ │ ├── SignatureTestDriverFactory.java │ │ │ └── jaxrs │ │ │ │ └── JAXRSSigTestIT.java │ │ │ ├── spec │ │ │ ├── client │ │ │ │ ├── exceptions │ │ │ │ │ └── ClientExceptionsIT.java │ │ │ │ ├── instance │ │ │ │ │ └── JAXRSClientIT.java │ │ │ │ ├── invocations │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── resource │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── typedentities │ │ │ │ │ ├── EntityMessageReader.java │ │ │ │ │ ├── EntityMessageWriter.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── typedentitieswithxmlbinding │ │ │ │ │ ├── EntityMessageReader.java │ │ │ │ │ ├── EntityMessageWriter.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ └── webtarget │ │ │ │ │ ├── IteratedList.java │ │ │ │ │ └── JAXRSClientIT.java │ │ │ ├── context │ │ │ │ ├── client │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ └── server │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── SingletonWithInjectables.java │ │ │ │ │ ├── StringBeanEntityProviderWithInjectables.java │ │ │ │ │ └── TSAppConfig.java │ │ │ ├── contextprovider │ │ │ │ └── JsonbContextProviderIT.java │ │ │ ├── filter │ │ │ │ ├── dynamicfeature │ │ │ │ │ ├── AbstractAddFilter.java │ │ │ │ │ ├── AbstractAddInterceptor.java │ │ │ │ │ ├── AddDynamicFeature.java │ │ │ │ │ ├── AddOneInterceptor.java │ │ │ │ │ ├── AddTenFilter.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── exception │ │ │ │ │ ├── AbstractAddFilter.java │ │ │ │ │ ├── AbstractAddInterceptor.java │ │ │ │ │ ├── AddOneFilter.java │ │ │ │ │ ├── AddOneInterceptor.java │ │ │ │ │ ├── AddTenGlobalFilter.java │ │ │ │ │ ├── AddTenGlobalInterceptor.java │ │ │ │ │ ├── ExceptionNameBinding.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── NeverUsedExceptionMapper.java │ │ │ │ │ ├── PostMatchingThrowingFilter.java │ │ │ │ │ ├── PreMatchingThrowingFilter.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── RuntimeExceptionMapper.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── globalbinding │ │ │ │ │ ├── AbstractAddFilter.java │ │ │ │ │ ├── AbstractAddInterceptor.java │ │ │ │ │ ├── AddOneInterceptor.java │ │ │ │ │ ├── AddTenFilter.java │ │ │ │ │ ├── GlobalNameBinding.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── interceptor │ │ │ │ │ ├── EntityReaderInterceptor.java │ │ │ │ │ ├── EntityWriterInterceptor.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── lastvalue │ │ │ │ │ ├── ArrayListEntityProvider.java │ │ │ │ │ ├── FirstReaderInterceptor.java │ │ │ │ │ ├── FirstWriterInterceptor.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── LinkedListEntityProvider.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── SecondReaderInterceptor.java │ │ │ │ │ ├── SecondWriterInterceptor.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ └── namebinding │ │ │ │ │ ├── AbstractAddInterceptor.java │ │ │ │ │ ├── AddOneInterceptor.java │ │ │ │ │ ├── AddTenInterceptor.java │ │ │ │ │ ├── AllMethodBindingResource.java │ │ │ │ │ ├── ComplementNameBinding.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── SingleNameBinding.java │ │ │ │ │ └── TSAppConfig.java │ │ │ ├── inheritance │ │ │ │ ├── ChildResource.java │ │ │ │ ├── ChildResource1.java │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── ParentResource.java │ │ │ │ ├── ParentResource1.java │ │ │ │ └── TSAppConfig.java │ │ │ ├── provider │ │ │ │ ├── exceptionmapper │ │ │ │ │ ├── ClientErrorExceptionMapper.java │ │ │ │ │ ├── ExceptionFromMappedException.java │ │ │ │ │ ├── ExceptionFromMappedExceptionMapper.java │ │ │ │ │ ├── FilterChainTestException.java │ │ │ │ │ ├── FilterChainTestExceptionMapper.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── PlainExceptionMapper.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── ResponseFilter.java │ │ │ │ │ ├── RuntimeExceptionMapper.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ ├── ThrowableMapper.java │ │ │ │ │ └── WebAppExceptionMapper.java │ │ │ │ ├── jaxbcontext │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── JaxbContextProvider.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── SomeJaxbContext.java │ │ │ │ │ ├── SomeMarshaller.java │ │ │ │ │ ├── SomeUnmarshaller.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ └── TckJaxbProvider.java │ │ │ │ ├── overridestandard │ │ │ │ │ ├── AbstractProvider.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ ├── TckBooleanProvider.java │ │ │ │ │ ├── TckByteArrayProvider.java │ │ │ │ │ ├── TckCharacterProvider.java │ │ │ │ │ ├── TckDataSourceProvider.java │ │ │ │ │ ├── TckFileProvider.java │ │ │ │ │ ├── TckInputStreamProvider.java │ │ │ │ │ ├── TckJaxbProvider.java │ │ │ │ │ ├── TckMapProvider.java │ │ │ │ │ ├── TckNumberProvider.java │ │ │ │ │ ├── TckReaderProvider.java │ │ │ │ │ ├── TckSourceProvider.java │ │ │ │ │ ├── TckStreamingOutputProvider.java │ │ │ │ │ └── TckStringProvider.java │ │ │ │ ├── reader │ │ │ │ │ ├── AbstractReader.java │ │ │ │ │ ├── AppJavaReader.java │ │ │ │ │ ├── AppOctetReader.java │ │ │ │ │ ├── EntityForReader.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ └── WildCardReader.java │ │ │ │ ├── sort │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ ├── TextPlainStringBeanEntityProvider.java │ │ │ │ │ └── TextWildCardStringBeanEntityProvider.java │ │ │ │ ├── standard │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── standardhaspriority │ │ │ │ │ ├── AbstractProvider.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── ProviderWalker.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ ├── TckBooleanProvider.java │ │ │ │ │ ├── TckCharacterProvider.java │ │ │ │ │ ├── TckJaxbProvider.java │ │ │ │ │ ├── TckMapProvider.java │ │ │ │ │ ├── TckNumberProvider.java │ │ │ │ │ └── TckUniversalProvider.java │ │ │ │ ├── standardnotnull │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── standardwithjaxrsclient │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── standardwithxmlbinding │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── visibility │ │ │ │ │ ├── DummyClass.java │ │ │ │ │ ├── DummyWriter.java │ │ │ │ │ ├── HolderClass.java │ │ │ │ │ ├── HolderResolver.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── StringReader.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ ├── VisibilityException.java │ │ │ │ │ └── VisibilityExceptionMapper.java │ │ │ │ └── writer │ │ │ │ │ ├── AppAnyEntityWriter.java │ │ │ │ │ ├── AppJavaEntityWriter.java │ │ │ │ │ ├── AppXmlObjectWriter.java │ │ │ │ │ ├── DefaultEntityWriter.java │ │ │ │ │ ├── EntityForWriter.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── OkResponse.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ ├── resource │ │ │ │ ├── annotationprecedence │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── ResourceInterface.java │ │ │ │ │ ├── SuperClass.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ └── subclass │ │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ │ ├── Resource.java │ │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── locator │ │ │ │ │ ├── EntityWriter.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── LocatorEntity.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ ├── SubResource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ │ ├── requestmatching │ │ │ │ │ ├── AnotherResourceLocator.java │ │ │ │ │ ├── AnotherSubResource.java │ │ │ │ │ ├── EmptyResource.java │ │ │ │ │ ├── ExceptionMatcher.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── LocatorResource.java │ │ │ │ │ ├── MainResource.java │ │ │ │ │ ├── MainResourceLocator.java │ │ │ │ │ ├── MainSubResource.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ └── YetAnotherSubresource.java │ │ │ │ ├── responsemediatype │ │ │ │ │ ├── ErrorResource.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── MediaResource.java │ │ │ │ │ ├── MediaWriter.java │ │ │ │ │ ├── NoMediaResource.java │ │ │ │ │ ├── StringWriter.java │ │ │ │ │ ├── TSAppConfig.java │ │ │ │ │ └── WeightResource.java │ │ │ │ └── valueofandfromstring │ │ │ │ │ ├── EnumWithFromStringAndValueOf.java │ │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ │ ├── ParamEntityWithFromStringAndValueOf.java │ │ │ │ │ ├── Resource.java │ │ │ │ │ └── TSAppConfig.java │ │ │ ├── resourceconstructor │ │ │ │ ├── CookieResource.java │ │ │ │ ├── HeaderResource.java │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── MatrixResource.java │ │ │ │ ├── PathResource.java │ │ │ │ ├── QueryResource.java │ │ │ │ ├── Resource.java │ │ │ │ └── TSAppConfig.java │ │ │ ├── returntype │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── ReturnTypeTest.java │ │ │ │ ├── TSAppConfig.java │ │ │ │ └── UUIDWriter.java │ │ │ └── template │ │ │ │ ├── JAXRSClientIT.java │ │ │ │ ├── TSAppConfig.java │ │ │ │ └── TemplateTest.java │ │ │ └── uribuilder │ │ │ └── UriBuilderIT.java │ └── resources │ │ ├── LICENSE_EFTL.md │ │ ├── LICENSE_EPL.md │ │ └── ee │ │ └── jakarta │ │ └── tck │ │ └── ws │ │ └── rs │ │ ├── ee │ │ ├── resource │ │ │ ├── java2entity │ │ │ │ └── web.xml.template │ │ │ └── webappexception │ │ │ │ ├── defaultmapper │ │ │ │ └── web.xml.template │ │ │ │ ├── mapper │ │ │ │ └── web.xml.template │ │ │ │ └── nomapper │ │ │ │ └── web.xml.template │ │ └── rs │ │ │ ├── beanparam │ │ │ ├── cookie │ │ │ │ └── plain │ │ │ │ │ └── web.xml.template │ │ │ ├── form │ │ │ │ └── plain │ │ │ │ │ └── web.xml.template │ │ │ ├── header │ │ │ │ └── plain │ │ │ │ │ └── web.xml.template │ │ │ ├── matrix │ │ │ │ └── plain │ │ │ │ │ └── web.xml.template │ │ │ ├── path │ │ │ │ └── plain │ │ │ │ │ └── web.xml.template │ │ │ ├── plain │ │ │ │ └── web.xml.template │ │ │ └── query │ │ │ │ └── plain │ │ │ │ └── web.xml.template │ │ │ ├── client │ │ │ ├── asyncinvoker │ │ │ │ └── web.xml.template │ │ │ ├── clientrequestcontext │ │ │ │ └── web.xml.template │ │ │ ├── invocationbuilder │ │ │ │ └── web.xml.template │ │ │ └── syncinvoker │ │ │ │ └── web.xml.template │ │ │ ├── constrainedto │ │ │ └── web.xml.template │ │ │ ├── container │ │ │ ├── requestcontext │ │ │ │ ├── illegalstate │ │ │ │ │ └── web.xml.template │ │ │ │ ├── security │ │ │ │ │ ├── jaxrs_ee_rs_container_requestcontext_security_web.war.sun-web.xml │ │ │ │ │ └── web.xml.template │ │ │ │ └── web.xml.template │ │ │ ├── resourceinfo │ │ │ │ └── web.xml.template │ │ │ └── responsecontext │ │ │ │ └── web.xml.template │ │ │ ├── cookieparam │ │ │ ├── locator │ │ │ │ └── web.xml.template │ │ │ ├── sub │ │ │ │ └── web.xml.template │ │ │ └── web.xml.template │ │ │ ├── core │ │ │ ├── application │ │ │ │ └── web.xml.template │ │ │ ├── configurable │ │ │ │ └── web.xml.template │ │ │ ├── configuration │ │ │ │ └── web.xml.template │ │ │ ├── headers │ │ │ │ └── web.xml.template │ │ │ ├── request │ │ │ │ └── web.xml.template │ │ │ ├── response │ │ │ │ └── web.xml.template │ │ │ ├── responsebuilder │ │ │ │ └── web.xml.template │ │ │ ├── securitycontext │ │ │ │ └── basic │ │ │ │ │ ├── jaxrs_ee_core_securitycontext_basic_web.war.sun-web.xml │ │ │ │ │ └── web.xml.template │ │ │ └── uriinfo │ │ │ │ └── web.xml.template │ │ │ ├── delete │ │ │ └── web.xml.template │ │ │ ├── ext │ │ │ ├── interceptor │ │ │ │ ├── clientwriter │ │ │ │ │ ├── interceptorcontext │ │ │ │ │ │ └── web.xml.template │ │ │ │ │ └── writerinterceptorcontext │ │ │ │ │ │ └── web.xml.template │ │ │ │ ├── containerreader │ │ │ │ │ ├── interceptorcontext │ │ │ │ │ │ └── web.xml.template │ │ │ │ │ └── readerinterceptorcontext │ │ │ │ │ │ └── web.xml.template │ │ │ │ └── containerwriter │ │ │ │ │ ├── interceptorcontext │ │ │ │ │ └── web.xml.template │ │ │ │ │ └── writerinterceptorcontext │ │ │ │ │ └── web.xml.template │ │ │ ├── paramconverter │ │ │ │ └── web.xml.template │ │ │ └── providers │ │ │ │ └── web.xml.template │ │ │ ├── formparam │ │ │ ├── locator │ │ │ │ └── web.xml.template │ │ │ ├── sub │ │ │ │ └── web.xml.template │ │ │ └── web.xml.template │ │ │ ├── get │ │ │ └── web.xml.template │ │ │ ├── head │ │ │ └── web.xml.template │ │ │ ├── headerparam │ │ │ ├── locator │ │ │ │ └── web.xml.template │ │ │ ├── sub │ │ │ │ └── web.xml.template │ │ │ └── web.xml.template │ │ │ ├── matrixparam │ │ │ ├── locator │ │ │ │ └── web.xml.template │ │ │ ├── sub │ │ │ │ └── web.xml.template │ │ │ └── web.xml.template │ │ │ ├── options │ │ │ └── web.xml.template │ │ │ ├── pathparam │ │ │ ├── locator │ │ │ │ └── web.xml.template │ │ │ ├── sub │ │ │ │ └── web.xml.template │ │ │ └── web.xml.template │ │ │ ├── produceconsume │ │ │ └── web.xml.template │ │ │ ├── put │ │ │ └── web.xml.template │ │ │ └── queryparam │ │ │ ├── sub │ │ │ └── web.xml.template │ │ │ └── web.xml.template │ │ ├── jaxrs21 │ │ └── ee │ │ │ ├── client │ │ │ └── rxinvoker │ │ │ │ └── web.xml.template │ │ │ └── sse │ │ │ ├── ssebroadcaster │ │ │ └── web.xml.template │ │ │ ├── sseeventsink │ │ │ └── web.xml.template │ │ │ └── sseeventsource │ │ │ └── web.xml.template │ │ ├── servlet3 │ │ └── rs │ │ │ ├── core │ │ │ └── streamingoutput │ │ │ │ └── web.xml.template │ │ │ └── ext │ │ │ └── paramconverter │ │ │ └── autodiscovery │ │ │ └── web.xml.template │ │ ├── signaturetest │ │ ├── jakarta.ws.rs.sig_4.0.0 │ │ ├── sig-test-pkg-list.txt │ │ └── sig-test.map │ │ └── spec │ │ ├── client │ │ ├── invocations │ │ │ └── web.xml.template │ │ ├── resource │ │ │ └── web.xml.template │ │ ├── typedentities │ │ │ └── web.xml.template │ │ └── typedentitieswithxmlbinding │ │ │ └── web.xml.template │ │ ├── context │ │ ├── client │ │ │ └── web.xml.template │ │ └── server │ │ │ └── web.xml.template │ │ ├── filter │ │ ├── dynamicfeature │ │ │ └── web.xml.template │ │ ├── exception │ │ │ └── web.xml.template │ │ ├── globalbinding │ │ │ └── web.xml.template │ │ ├── interceptor │ │ │ └── web.xml.template │ │ ├── lastvalue │ │ │ └── web.xml.template │ │ └── namebinding │ │ │ └── web.xml.template │ │ ├── inheritance │ │ └── web.xml.template │ │ ├── provider │ │ ├── exceptionmapper │ │ │ └── web.xml.template │ │ ├── jaxbcontext │ │ │ └── web.xml.template │ │ ├── overridestandard │ │ │ └── web.xml.template │ │ ├── reader │ │ │ └── web.xml.template │ │ ├── sort │ │ │ └── web.xml.template │ │ ├── standard │ │ │ └── web.xml.template │ │ ├── standardhaspriority │ │ │ └── web.xml.template │ │ ├── standardnotnull │ │ │ └── web.xml.template │ │ ├── standardwithjaxrsclient │ │ │ └── web.xml.template │ │ ├── standardwithxmlbinding │ │ │ └── web.xml.template │ │ ├── visibility │ │ │ └── web.xml.template │ │ └── writer │ │ │ └── web.xml.template │ │ ├── resource │ │ ├── annotationprecedence │ │ │ ├── subclass │ │ │ │ └── web.xml.template │ │ │ └── web.xml.template │ │ ├── locator │ │ │ └── web.xml.template │ │ ├── requestmatching │ │ │ └── web.xml.template │ │ ├── responsemediatype │ │ │ └── web.xml.template │ │ └── valueofandfromstring │ │ │ └── web.xml.template │ │ ├── resourceconstructor │ │ ├── beans.xml │ │ └── web.xml.template │ │ ├── returntype │ │ └── web.xml.template │ │ └── template │ │ └── web.xml.template │ └── test │ └── java │ └── ee │ └── jakarta │ └── tck │ └── ws │ └── rs │ └── common │ ├── matchers │ └── IsThrowingMatcherTest.java │ └── util │ └── JaxrsUtilTest.java ├── jersey-tck ├── README.md ├── j2ee.pass ├── javajoe.pass ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── glassfish │ │ └── jersey │ │ └── core │ │ └── tck │ │ ├── JerseyApplicationArchiveProcessor.java │ │ └── JerseyLoadableExtension.java │ └── resources │ ├── META-INF │ └── services │ │ └── org.jboss.arquillian.core.spi.LoadableExtension │ ├── jaxrs_ee_core_securitycontext_basic_web.war.sun-web.xml │ └── jaxrs_ee_rs_container_requestcontext_security_web.war.sun-web.xml ├── mvnw ├── mvnw.cmd └── pom.xml /.github/workflows/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 | **Challenged tests** 9 | List the challenged tests with the fully qualified classnames and then the test methods, e.g. 10 | ee.jakarta.tck.faces.test.javaee7.multiFieldValidation.Spec1IT#testFailingPreconditionsNotAfterAllInputComponents 11 | 12 | **TCK Version** 13 | Specify the version of the TCK, e.g. Jakarta Faces 4.0.x 14 | 15 | **Description** 16 | A clear and concise description of why you think the tests are wrong. 17 | 18 | **Additional context** 19 | Add any other context about the challenge here. 20 | -------------------------------------------------------------------------------- /.github/workflows/maven-package.yml: -------------------------------------------------------------------------------- 1 | 2 | name: Jakarta REST CI 3 | 4 | on: 5 | push: 6 | branches: [ main ] 7 | pull_request: 8 | branches: [ main ] 9 | 10 | jobs: 11 | build: 12 | 13 | runs-on: ubuntu-latest 14 | strategy: 15 | matrix: 16 | java: ['17', '21' ] 17 | 18 | steps: 19 | - uses: actions/checkout@v4 20 | - name: Set up JDK ${{ matrix.java }} 21 | uses: actions/setup-java@v4 22 | with: 23 | java-version: ${{ matrix.java }} 24 | distribution: 'temurin' 25 | - name: Build with Maven 26 | run: mvn -B -ntp clean verify -Djaxrs.all.build 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | .classpath 3 | .project 4 | .settings/ 5 | *.iml 6 | *nbactions.xml 7 | .vscode/ 8 | .idea 9 | nb-configuration.xml 10 | .DS_Store 11 | -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/rest/36de36005d52fc06fc050aa6def415abb255a539/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | wrapperVersion=3.3.1 18 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip 19 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.1/maven-wrapper-3.3.1.jar 20 | -------------------------------------------------------------------------------- /Jenkinsfile: -------------------------------------------------------------------------------- 1 | pipeline { 2 | agent any 3 | triggers { 4 | pollSCM('H H * * *') 5 | } 6 | tools { 7 | jdk 'openjdk-jdk11-latest' 8 | maven 'apache-maven-latest' 9 | } 10 | environment { 11 | MVN = 'mvn -B' 12 | } 13 | stages { 14 | stage('Nightly Build') { 15 | when { 16 | anyOf { 17 | branch 'master' 18 | } 19 | } 20 | steps { 21 | dir ('.') { 22 | sh "$MVN deploy" 23 | } 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /etc/bin/fixEmptySpacesAtEOL.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Copyright (c) 2010, 2017 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 | fileNamePattern=$1 19 | 20 | for fileName in `find . -name $fileNamePattern` 21 | do 22 | echo 'Replacing in '$fileName 23 | perl -pi -e "s/\s+\n$/\n/" $fileName 24 | done 25 | 26 | -------------------------------------------------------------------------------- /etc/config/copyright-exclude: -------------------------------------------------------------------------------- 1 | .apt 2 | .args 3 | .bundle 4 | .class 5 | .exe 6 | .gif 7 | .gitignore 8 | .ico 9 | .iml 10 | .ipr 11 | .iws 12 | .jar 13 | .jks 14 | .jpg 15 | .js 16 | .json 17 | .mm 18 | .ods 19 | .png 20 | .project 21 | .sql 22 | .svg 23 | .war 24 | .zip 25 | .dat 26 | /MANIFEST.MF 27 | /META-INF/services/ 28 | /README 29 | GenericEntity.java 30 | spec-license.html 31 | copyright-exclude 32 | 33 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/async/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Async examples. 3 | */ 4 | package jaxrs.examples.async; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/bootstrap/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Java SE bootstrap examples. 3 | * 4 | * 16 | * 17 | * 18 | * @author Markus KARG (markus@headcrashing.eu) 19 | * @since 3.1 20 | * @see jakarta.ws.rs.SeBootstrap 21 | */ 22 | package jaxrs.examples.bootstrap; 23 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/cache/CacheEntry.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2019 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 Distribution License v. 1.0, which is available at 6 | * http://www.eclipse.org/org/documents/edl-v10.php. 7 | * 8 | * SPDX-License-Identifier: BSD-3-Clause 9 | */ 10 | 11 | package jaxrs.examples.client.cache; 12 | 13 | import jakarta.ws.rs.core.MultivaluedMap; 14 | 15 | /** 16 | * @author Bill Burke 17 | * @author Marek Potociar 18 | */ 19 | public class CacheEntry { 20 | 21 | private int status; 22 | private MultivaluedMap headers; 23 | private byte[] body; 24 | 25 | public CacheEntry(int status, MultivaluedMap headers, byte[] body) { 26 | this.status = status; 27 | this.headers = headers; 28 | this.body = body; 29 | } 30 | 31 | public int getStatus() { 32 | return status; 33 | } 34 | 35 | public MultivaluedMap getHeaders() { 36 | return headers; 37 | } 38 | 39 | public byte[] getBody() { 40 | return body; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/cache/CacheExample.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2019 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 Distribution License v. 1.0, which is available at 6 | * http://www.eclipse.org/org/documents/edl-v10.php. 7 | * 8 | * SPDX-License-Identifier: BSD-3-Clause 9 | */ 10 | 11 | package jaxrs.examples.client.cache; 12 | 13 | import jakarta.ws.rs.client.Client; 14 | import jakarta.ws.rs.client.ClientBuilder; 15 | import jakarta.ws.rs.client.WebTarget; 16 | 17 | /** 18 | * @author Bill Burke 19 | * @author Marek Potociar 20 | */ 21 | public class CacheExample { 22 | 23 | public void cacheExample() { 24 | Client client = ClientBuilder.newClient(); 25 | client.register(CachingFeature.class); 26 | 27 | WebTarget resource = client.target("http://example.com/foo/bar.txt"); 28 | 29 | String text = resource.request("text/plain").get(String.class); 30 | String second = resource.request("text/plain").get(String.class); 31 | 32 | System.out.println(text); 33 | System.out.println(second); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/cache/CachingFeature.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2019 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 Distribution License v. 1.0, which is available at 6 | * http://www.eclipse.org/org/documents/edl-v10.php. 7 | * 8 | * SPDX-License-Identifier: BSD-3-Clause 9 | */ 10 | 11 | package jaxrs.examples.client.cache; 12 | 13 | import java.util.Map; 14 | import java.util.concurrent.ConcurrentHashMap; 15 | 16 | import jakarta.ws.rs.core.Feature; 17 | import jakarta.ws.rs.core.FeatureContext; 18 | 19 | /** 20 | * Example caching feature. 21 | * 22 | * @author Marek Potociar 23 | */ 24 | public class CachingFeature implements Feature { 25 | 26 | @Override 27 | public boolean configure(FeatureContext context) { 28 | final Map cacheStore = new ConcurrentHashMap(); 29 | context.register(new CacheEntryLocator(cacheStore)).register(new CacheResponseFilter(cacheStore)); 30 | 31 | return true; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/cache/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Client cache examples. 3 | */ 4 | package jaxrs.examples.client.cache; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/custom/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Client custom examples. 3 | */ 4 | package jaxrs.examples.client.custom; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/encoding/GzipExample.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2019 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 Distribution License v. 1.0, which is available at 6 | * http://www.eclipse.org/org/documents/edl-v10.php. 7 | * 8 | * SPDX-License-Identifier: BSD-3-Clause 9 | */ 10 | 11 | package jaxrs.examples.client.encoding; 12 | 13 | import jakarta.ws.rs.client.ClientBuilder; 14 | import jakarta.ws.rs.client.WebTarget; 15 | import static jakarta.ws.rs.client.Entity.text; 16 | 17 | import jaxrs.examples.filter.compression.GzipEntityInterceptor; 18 | 19 | /** 20 | * @author Bill Burke 21 | * @author Marek Potociar 22 | */ 23 | public class GzipExample { 24 | 25 | public void gzipExample() { 26 | WebTarget target = ClientBuilder.newClient().target("http://example.com/foo/bar.txt"); 27 | target.register(GzipEntityInterceptor.class); 28 | 29 | // getting a gzip encoded body 30 | String body = target.request("text/plain").get(String.class); 31 | 32 | // send a gzip encoded body 33 | target.request().header("Content-Encoding", "gzip").post(text(body)); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/encoding/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Client encoding examples. 3 | */ 4 | package jaxrs.examples.client.encoding; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/links/LinkUsageExample.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2019 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 Distribution License v. 1.0, which is available at 6 | * http://www.eclipse.org/org/documents/edl-v10.php. 7 | * 8 | * SPDX-License-Identifier: BSD-3-Clause 9 | */ 10 | 11 | package jaxrs.examples.client.links; 12 | 13 | import jakarta.ws.rs.client.Client; 14 | import jakarta.ws.rs.client.ClientBuilder; 15 | import jakarta.ws.rs.core.MediaType; 16 | import jakarta.ws.rs.core.Response; 17 | 18 | /** 19 | * @author Marek Potociar 20 | */ 21 | public class LinkUsageExample { 22 | 23 | public void testCLientSideLinks() { 24 | Client client = ClientBuilder.newClient(); 25 | 26 | Response current = client.target("http://examples.jax-rs-spec.com/current") 27 | .request(MediaType.APPLICATION_XML).get(); 28 | 29 | Response next = client.target(current.getLink("next")) 30 | .request(MediaType.APPLICATION_XML).get(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/links/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Client link examples. 3 | */ 4 | package jaxrs.examples.client.links; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Client examples. 3 | */ 4 | package jaxrs.examples.client; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/spec/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Client spec examples. 3 | */ 4 | package jaxrs.examples.client.spec; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/validator/NotNull.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2017 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 Distribution License v. 1.0, which is available at 6 | * http://www.eclipse.org/org/documents/edl-v10.php. 7 | * 8 | * SPDX-License-Identifier: BSD-3-Clause 9 | */ 10 | 11 | package jaxrs.examples.client.validator; 12 | 13 | import jakarta.enterprise.util.AnnotationLiteral; 14 | import jakarta.validation.Payload; 15 | 16 | /** 17 | * @author Santiago Pericas-Geertsen 18 | */ 19 | public class NotNull extends AnnotationLiteral 20 | implements jakarta.validation.constraints.NotNull { 21 | 22 | private static final long serialVersionUID = -5352564534866654470L; 23 | 24 | @Override 25 | public String message() { 26 | return "{jakarta.validation.constraints.NotNull.message}"; 27 | } 28 | 29 | @Override 30 | public Class[] groups() { 31 | return new Class[0]; 32 | } 33 | 34 | @Override 35 | public Class[] payload() { 36 | return (Class[]) new Class[0]; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/validator/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Client validator examples. 3 | */ 4 | package jaxrs.examples.client.validator; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/webdav/WebDavAsyncInvoker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2019 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 Distribution License v. 1.0, which is available at 6 | * http://www.eclipse.org/org/documents/edl-v10.php. 7 | * 8 | * SPDX-License-Identifier: BSD-3-Clause 9 | */ 10 | 11 | package jaxrs.examples.client.webdav; 12 | 13 | import java.util.concurrent.Future; 14 | 15 | import jakarta.ws.rs.client.AsyncInvoker; 16 | import jakarta.ws.rs.client.Entity; 17 | import jakarta.ws.rs.core.Response; 18 | 19 | /** 20 | * @author Marek Potociar 21 | */ 22 | public interface WebDavAsyncInvoker extends AsyncInvoker { 23 | 24 | public Future search(Entity entity); 25 | 26 | // other WebDAV method definitions go here 27 | } 28 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/webdav/WebDavSyncInvoker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2019 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 Distribution License v. 1.0, which is available at 6 | * http://www.eclipse.org/org/documents/edl-v10.php. 7 | * 8 | * SPDX-License-Identifier: BSD-3-Clause 9 | */ 10 | 11 | package jaxrs.examples.client.webdav; 12 | 13 | import jakarta.ws.rs.client.Entity; 14 | import jakarta.ws.rs.client.SyncInvoker; 15 | import jakarta.ws.rs.core.Response; 16 | 17 | /** 18 | * @author Marek Potociar 19 | */ 20 | public interface WebDavSyncInvoker extends SyncInvoker { 21 | 22 | public Response search(Entity entity); 23 | 24 | // other WebDAV method definitions go here 25 | } 26 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/client/webdav/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Client webdav examples. 3 | */ 4 | package jaxrs.examples.client.webdav; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/filter/caching/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Client caching filter examples. 3 | */ 4 | package jaxrs.examples.filter.caching; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/filter/compression/Gzipped.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2019 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 Distribution License v. 1.0, which is available at 6 | * http://www.eclipse.org/org/documents/edl-v10.php. 7 | * 8 | * SPDX-License-Identifier: BSD-3-Clause 9 | */ 10 | 11 | package jaxrs.examples.filter.compression; 12 | 13 | import java.lang.annotation.ElementType; 14 | import java.lang.annotation.Retention; 15 | import java.lang.annotation.RetentionPolicy; 16 | import java.lang.annotation.Target; 17 | 18 | import jakarta.ws.rs.NameBinding; 19 | 20 | /** 21 | * @author Santiago Pericas-Geertsen 22 | */ 23 | @NameBinding 24 | @Target({ ElementType.TYPE, ElementType.METHOD }) 25 | @Retention(value = RetentionPolicy.RUNTIME) 26 | public @interface Gzipped { 27 | } 28 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/filter/compression/MyResourceClass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2019 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 Distribution License v. 1.0, which is available at 6 | * http://www.eclipse.org/org/documents/edl-v10.php. 7 | * 8 | * SPDX-License-Identifier: BSD-3-Clause 9 | */ 10 | 11 | package jaxrs.examples.filter.compression; 12 | 13 | import jakarta.ws.rs.GET; 14 | import jakarta.ws.rs.Path; 15 | import jakarta.ws.rs.PathParam; 16 | import jakarta.ws.rs.Produces; 17 | 18 | /** 19 | * @author Santiago Pericas-Geertsen 20 | */ 21 | @Path("/") 22 | public class MyResourceClass { 23 | 24 | @Gzipped 25 | @GET 26 | @Produces("text/plain") 27 | @Path("{name}") 28 | public String hello(@PathParam("name") String name) { 29 | return "Hello " + name; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/filter/compression/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Client compression examples. 3 | */ 4 | package jaxrs.examples.filter.compression; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/filter/logging/Logged.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2019 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 Distribution License v. 1.0, which is available at 6 | * http://www.eclipse.org/org/documents/edl-v10.php. 7 | * 8 | * SPDX-License-Identifier: BSD-3-Clause 9 | */ 10 | 11 | package jaxrs.examples.filter.logging; 12 | 13 | import java.lang.annotation.ElementType; 14 | import java.lang.annotation.Retention; 15 | import java.lang.annotation.RetentionPolicy; 16 | import java.lang.annotation.Target; 17 | 18 | import jakarta.ws.rs.NameBinding; 19 | 20 | /** 21 | * @author Santiago Pericas-Geertsen 22 | */ 23 | @NameBinding 24 | @Target({ ElementType.TYPE, ElementType.METHOD }) 25 | @Retention(value = RetentionPolicy.RUNTIME) 26 | public @interface Logged { 27 | } 28 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/filter/logging/MyResourceClass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2019 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 Distribution License v. 1.0, which is available at 6 | * http://www.eclipse.org/org/documents/edl-v10.php. 7 | * 8 | * SPDX-License-Identifier: BSD-3-Clause 9 | */ 10 | 11 | package jaxrs.examples.filter.logging; 12 | 13 | import jakarta.ws.rs.GET; 14 | import jakarta.ws.rs.Path; 15 | import jakarta.ws.rs.PathParam; 16 | import jakarta.ws.rs.Produces; 17 | 18 | /** 19 | * @author Santiago Pericas-Geertsen 20 | */ 21 | @Path("/") 22 | public class MyResourceClass { 23 | 24 | @Logged 25 | @GET 26 | @Produces("text/plain") 27 | @Path("{name}") 28 | public String hello(@PathParam("name") String name) { 29 | return "Hello " + name; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/filter/logging/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Logging examples. 3 | */ 4 | package jaxrs.examples.filter.logging; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/filter/post/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * POST filtering examples. 3 | */ 4 | package jaxrs.examples.filter.post; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/link/clusterservice/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Link service example. 3 | */ 4 | package jaxrs.examples.link.clusterservice; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/link/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Link examples. 3 | */ 4 | package jaxrs.examples.link; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/multipart/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Async examples. 3 | */ 4 | package jaxrs.examples.multipart; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/rc/FooResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2019 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 Distribution License v. 1.0, which is available at 6 | * http://www.eclipse.org/org/documents/edl-v10.php. 7 | * 8 | * SPDX-License-Identifier: BSD-3-Clause 9 | */ 10 | 11 | package jaxrs.examples.rc; 12 | 13 | import jakarta.ws.rs.GET; 14 | import jakarta.ws.rs.Path; 15 | import jakarta.ws.rs.PathParam; 16 | import jakarta.ws.rs.container.ResourceContext; 17 | import jakarta.ws.rs.core.Context; 18 | 19 | /** 20 | * Example of using resource context to get a resource instance for a class. 21 | * 22 | * @author Marek Potociar (marek.potociar at oracle.com) 23 | */ 24 | @Path("foo/{fooId}") 25 | public class FooResource { 26 | static class BarResource { 27 | @PathParam("fooId") 28 | private String fooId; 29 | 30 | @GET 31 | public String getIt() { 32 | return String.format("Got it from %s!", fooId); 33 | } 34 | } 35 | 36 | @Path("bar") 37 | public BarResource getBar(@Context ResourceContext rc) { 38 | return rc.getResource(BarResource.class); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/rc/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Resource context examples. 3 | */ 4 | package jaxrs.examples.rc; 5 | -------------------------------------------------------------------------------- /examples/src/main/java/jaxrs/examples/sse/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * SSE examples. 3 | */ 4 | package jaxrs.examples.sse; 5 | -------------------------------------------------------------------------------- /jaxrs-api/.gitignore: -------------------------------------------------------------------------------- 1 | .checkstyle 2 | -------------------------------------------------------------------------------- /jaxrs-api/src/main/java/jakarta/ws/rs/RuntimeType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2019 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 jakarta.ws.rs; 18 | 19 | /** 20 | * Enumeration of JAX-RS runtime types. 21 | * 22 | * @author Marek Potociar 23 | * @since 2.0 24 | */ 25 | public enum RuntimeType { 26 | /** 27 | * JAX-RS client run-time. 28 | */ 29 | CLIENT, 30 | /** 31 | * JAX-RS server run-time. 32 | */ 33 | SERVER 34 | } 35 | -------------------------------------------------------------------------------- /jaxrs-api/src/main/java/jakarta/ws/rs/container/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2019 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 | * Container-specific JAX-RS API. 19 | */ 20 | package jakarta.ws.rs.container; 21 | -------------------------------------------------------------------------------- /jaxrs-api/src/main/java/jakarta/ws/rs/core/FeatureContext.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2019 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 jakarta.ws.rs.core; 18 | 19 | /** 20 | * A configurable context passed to {@link Feature} and {@link jakarta.ws.rs.container.DynamicFeature} instances by JAX-RS 21 | * runtime during the phase of their configuration. 22 | * 23 | * @author Marek Potociar (marek.potociar at oracle.com) 24 | */ 25 | public interface FeatureContext extends Configurable { 26 | } 27 | -------------------------------------------------------------------------------- /jaxrs-api/src/main/java/jakarta/ws/rs/core/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 2019 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 | * Low-level interfaces and annotations used to create RESTful service resources. 19 | */ 20 | package jakarta.ws.rs.core; 21 | -------------------------------------------------------------------------------- /jaxrs-api/src/main/java/jakarta/ws/rs/ext/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 2019 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 | * APIs that provide extensions to the types supported by the JAX-RS API. 19 | */ 20 | package jakarta.ws.rs.ext; 21 | -------------------------------------------------------------------------------- /jaxrs-api/src/main/java/jakarta/ws/rs/sse/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017 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 | * Server-Sent Events related API. 19 | * 20 | * This package provides support for providing event streams from the server and also for processing then on the client 21 | * side. 22 | */ 23 | package jakarta.ws.rs.sse; 24 | -------------------------------------------------------------------------------- /jaxrs-api/src/test/java/jakarta/ws/rs/core/BaseDelegateTest.java: -------------------------------------------------------------------------------- 1 | 2 | package jakarta.ws.rs.core; 3 | 4 | import jakarta.ws.rs.ext.RuntimeDelegate; 5 | import org.junit.jupiter.api.AfterAll; 6 | import org.junit.jupiter.api.BeforeAll; 7 | import org.mockito.Mockito; 8 | 9 | import static org.mockito.Mockito.mock; 10 | 11 | /** 12 | * Base class to set a delegate stub before tests are executed. 13 | * 14 | * @author Santiago Pericas-Geertsen 15 | */ 16 | public class BaseDelegateTest { 17 | 18 | @BeforeAll 19 | public static void setUp() { 20 | RuntimeDelegate.setInstance(mock(RuntimeDelegate.class, Mockito.RETURNS_DEEP_STUBS)); 21 | } 22 | 23 | @AfterAll 24 | public static void tearDown() { 25 | RuntimeDelegate.setInstance(null); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /jaxrs-api/src/test/java/jakarta/ws/rs/ext/RuntimeDelegateTest.java: -------------------------------------------------------------------------------- 1 | package jakarta.ws.rs.ext; 2 | 3 | import static org.junit.jupiter.api.Assertions.assertEquals; 4 | import static org.junit.jupiter.api.Assertions.fail; 5 | 6 | import org.junit.jupiter.api.Test; 7 | 8 | /** 9 | * {@link jakarta.ws.rs.ext.RuntimeDelegate} unit tests. 10 | * 11 | * @author Niklas Mehner 12 | */ 13 | public class RuntimeDelegateTest { 14 | 15 | @Test 16 | public void testGetInstanceFailsIfNoImplementationAvailable() { 17 | try { 18 | RuntimeDelegate.getInstance(); 19 | fail(); 20 | } catch (RuntimeException e) { 21 | assertEquals( 22 | "java.lang.ClassNotFoundException: Provider for jakarta.ws.rs.ext.RuntimeDelegate cannot be found", 23 | e.getMessage()); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /jaxrs-spec/README.md: -------------------------------------------------------------------------------- 1 | Jakarta RESTful Web Services Specification 2 | ========================================== 3 | 4 | This project generates the Jakarta RESTful Web Services Specification. 5 | 6 | Building 7 | -------- 8 | 9 | Prerequisites: 10 | 11 | * JDK 17+ 12 | * Maven 3.6.3+ 13 | 14 | Run the full build: 15 | 16 | `mvn install` 17 | 18 | Locate the html files: 19 | - target/generated-docs/spec.html 20 | 21 | Locate the PDF files: 22 | - target/generated-docs/spec.pdf 23 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/appendix/_changes-since-1.0-release.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[changes-since-1.0-release]] 12 | === Changes Since 1.0 Release 13 | 14 | * <>: New requirements for Servlet 3 containers. 15 | * <>: Requirements for Java EE 6 containers. 16 | * <>: Requirements on standard entity 17 | providers when presented with an empty message entity. 18 | * <>: Add closeness of generic type as 19 | secondary sort key. 20 | * <>: Default to application/octet-stream if 21 | a request does not contain a content-type header. 22 | * <>: Add support for static fromString method. 23 | * <>: Clarify annotation inheritance. 24 | * <>: Fix typo. 25 | * <>: Additional considerations related to 26 | filters consuming request bodies. 27 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/appendix/_changes-since-2.0-final-release.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[changes-since-2.0-final-release]] 12 | === Changes Since 2.0 Final Release 13 | 14 | * <>: Clarified exception handling for all 5 steps 15 | used to convert a string to a Param. Allowed the combination of 16 | `List`, `Set`, or `SortedSet` and `ParamConverter`. 17 | * <>: Defined client and server media types. 18 | * <>: New section introducing support for 19 | reactive clients. 20 | * <>: New chapter describing the Server-Sent Events API. 21 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/appendix/_changes-since-2.1-early-draft.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[changes-since-2.1-early-draft]] 12 | === Changes Since 2.1 Early Draft 13 | 14 | * Chapter <>: API changes and removal of Flow API references. 15 | * <>: Added `@PATCH` to list of supported HTTP 16 | methods. 17 | * <>: New section about executor services. 18 | * <>: Use of `ServiceLoader` in first step of algorithm. 19 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/appendix/_changes-since-2.1-release.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019, 2020 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[changes-since-2.1-release]] 12 | === Changes Since 2.1 Release 13 | 14 | * Referencing Jakarta EE instead of Java EE 15 | * Package changes from `javax.ws.rs.*` to `jakarta.ws.rs.*` 16 | * <>: JAXB API is now optional 17 | * <>: Clarified injection with regard to `getSingletons()` method 18 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/appendix/_changes-since-3.1-release.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2024 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[changes-since-3.1-release]] 12 | === Changes Since 3.1 Release 13 | 14 | * <>: Removal of `@ManagedBean` 15 | annotation support. Managed bean support is now part of CDI. 16 | * <>: Clarified when the two alternative ways of publishing on 17 | Java SE must be supported. 18 | * Removed `Link.JaxbLink` and `Link.JaxbAdapter` inner classes. 19 | * Added `containsHeaderString()` method to `ClientRequestContext`, `ClientResponseContext`, 20 | `ContainerRequestContext`, `ContainerResponseContext`, and `HttpHeaders`. 21 | * Added `APPLICATION_MERGE_PATCH_JSON` and `APPLICATION_MERGE_PATCH_JSON_TYPE` to `MediaType` 22 | * Added `getMatchedResourceTemplates()` method to `UriInfo`. -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/appendix/_changes-since-proposed-final-draft.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[changes-since-proposed-final-draft]] 12 | === Changes Since Proposed Final Draft 13 | 14 | * <>: Additional sort criteria so that templates 15 | with explicit regexs are sorted ahead of those with the default. 16 | * <>, <>, 17 | <> and <>: Q-values not 18 | used in `@Consumes` or `@Produces`. 19 | * <>: Fixed algorithm to refer to 20 | <> instead of restating it. Fixed status code 21 | returned when the media type has been determined but an appropriate 22 | message body writer cannot be located. 23 | * Chapter <>: Clarify that an implementation can supply 24 | an alternate `RuntimeDelegate` API class. 25 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/appendix/_processing_pipeline.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [appendix] 12 | [[processing_pipeline]] 13 | == Processing Pipeline 14 | 15 | [[pipeline_server]] 16 | .JAX-RS Server Processing Pipeline 17 | image::pipeline_server.png[] 18 | 19 | [[pipeline_client]] 20 | .JAX-RS Client Processing Pipeline 21 | image::pipeline_client.png[] 22 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/applications/_applications.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[applications]] 12 | == Applications 13 | 14 | A JAX-RS application consists of one or more resources (see Chapter 15 | <>) and zero or more providers (see Chapter <>). This 16 | chapter describes aspects of JAX-RS that apply to an application as a 17 | whole, subsequent chapters describe particular aspects of a 18 | JAX-RS application and requirements on JAX-RS implementations. 19 | 20 | include::_config.adoc[] 21 | 22 | include::_verification.adoc[] 23 | 24 | include::_publication.adoc[] 25 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/applications/_config.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[config]] 12 | === Configuration 13 | 14 | The resources and providers that make up a JAX-RS application are 15 | configured via an application-supplied subclass of `Application`. An 16 | implementation MAY provide alternate mechanisms for locating resource 17 | classes and providers (e.g. runtime class scanning) but use of 18 | `Application` is the only portable means of configuration. 19 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/applications/_verification.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[verification]] 12 | === Verification 13 | 14 | Specific application requirements are detailed throughout this 15 | specification and the JAX-RS Javadocs. Implementations MAY perform 16 | verification steps that go beyond what it is stated in this document. 17 | 18 | A JAX-RS implementation MAY report an error condition if it detects that 19 | two or more resources could result in an ambiguity during the execution 20 | of the algorithm described <>. For example, if 21 | two resource methods in the same resource class have identical (or even 22 | intersecting) values in all the annotations that are relevant to the 23 | algorithm described in that section. The exact set of verification steps 24 | as well as the error reporting mechanism is implementation dependent. 25 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/asynchronous_processing/_asynchronous_processing.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[asynchronous_processing]] 12 | == Asynchronous Processing 13 | 14 | This chapter describes the asynchronous processing capabilities in 15 | JAX-RS. Asynchronous processing is supported both in the Client API and 16 | in the Server API. 17 | 18 | include::_introduction_async.adoc[] 19 | 20 | include::_server_api.adoc[] 21 | 22 | include::_async_ejbs.adoc[] 23 | 24 | include::_client_api_async.adoc[] 25 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/asynchronous_processing/_introduction_async.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[introduction_async]] 12 | === Introduction 13 | 14 | Asynchronous processing is a technique that enables a better and more 15 | efficient use of processing threads. On the client side, a thread that 16 | issues a request may also be responsible for updating a UI component; if 17 | that thread is blocked waiting for a response, the user’s perceived 18 | performance of the application will suffer. Similarly, on the server 19 | side, a thread that is processing a request should avoid blocking while 20 | waiting for an external event to complete so that other requests 21 | arriving to the server during that period of time can be 22 | attendedfootnote:[The maximum number of request threads is typically set 23 | by the administrator; if that upper bound is reached, subsequent 24 | requests will be rejected.]. 25 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/client_api/_client_api.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[client_api]] 12 | == Client API 13 | 14 | The Client API is used to access Web resources. It provides a 15 | higher-level API than `HttpURLConnection` as well as integration with 16 | JAX-RS providers. Unless otherwise stated, types presented in this 17 | chapter live in the `jakarta.ws.rs.client` package. 18 | 19 | include::_bootstrapping-a-client-instance.adoc[] 20 | 21 | include::_resource_access.adoc[] 22 | 23 | include::_client-targets.adoc[] 24 | 25 | include::_typed-entities.adoc[] 26 | 27 | include::_invocations.adoc[] 28 | 29 | include::_configurable_types.adoc[] 30 | 31 | include::_reactive_clients.adoc[] 32 | 33 | include::_executor_services.adoc[] 34 | 35 | include::_client_exceptions.adoc[] 36 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/client_api/_executor_services.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[executor_services]] 12 | === Executor Services 13 | 14 | Executor services can be used to submit asynchronous tasks for 15 | execution. JAX-RS applications can specify executor services while 16 | building a `Client` instance. Two methods are provided in 17 | `ClientBuilder` for this purpose, namely, `executorService` and 18 | `scheduledExecutorService`. 19 | 20 | In an environment that supports Jakarta Concurrency 21 | <>, such as full Jakarta EE platform products, implementations MUST use 22 | `ManagedExecutorService` and `ManagedScheduledExecutorService`, 23 | respectively. The reader is referred to the Javadoc of `ClientBuilder` 24 | for more information about executor services. 25 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/context/_concurrency.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[concurrency]] 12 | === Concurrency 13 | 14 | Context is specific to a particular request but instances of certain 15 | JAX-RS components (providers and resource classes with a lifecycle other 16 | than per-request) may need to support multiple concurrent requests. When 17 | injecting an instance of one of the types listed in 18 | <>, the instance supplied MUST be capable of selecting the 19 | correct context for a particular request. Use of a thread-local proxy is 20 | a common way to achieve this. 21 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/context/_context.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[context]] 12 | == Context 13 | 14 | JAX-RS provides facilities for obtaining and processing information 15 | about the application deployment context and the context of individual 16 | requests. Such information is available to `Application` subclasses (see 17 | Section <>), root resource classes (see Chapter <>), and 18 | providers (see Chapter <>). This chapter describes these 19 | facilities. 20 | 21 | include::_concurrency.adoc[] 22 | 23 | include::_contexttypes.adoc[] 24 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/environment/_environment.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[environment]] 12 | == Environment 13 | 14 | The container-managed resources available to a JAX-RS root resource 15 | class or provider depend on the environment in which it is deployed. 16 | Section <> describes the types of context available 17 | regardless of container. The following sections describe the additional 18 | container-managed resources available to a JAX-RS root resource class or 19 | provider deployed in a variety of environments. 20 | 21 | include::_servlet_container.adoc[] 22 | 23 | include::_javaee.adoc[] 24 | 25 | include::_other.adoc[] 26 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/environment/_other.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[other]] 12 | === Other 13 | 14 | Other container technologies MAY specify their own set of injectable 15 | resources but MUST, at a minimum, support access to the types of context 16 | listed in <>. 17 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/filters_and_interceptors/_filters_and_interceptors.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[filters_and_interceptors]] 12 | == Filters and Interceptors 13 | 14 | Filters and entity interceptors can be registered for execution at 15 | well-defined extension points in JAX-RS implementations. They are used 16 | to extend an implementation in order to provide capabilities such as 17 | logging, confidentiality, authentication, entity compression, etc. 18 | 19 | include::_introduction_filters.adoc[] 20 | 21 | include::_filters.adoc[] 22 | 23 | include::_entity_interceptors.adoc[] 24 | 25 | include::_lifecycle.adoc[] 26 | 27 | include::_binding.adoc[] 28 | 29 | include::_priorities.adoc[] 30 | 31 | include::_exceptions_filters_and_interceptors.adoc[] 32 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/filters_and_interceptors/_lifecycle.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[lifecycle]] 12 | === Lifecycle 13 | 14 | By default, just like all the other providers, a single instance of each 15 | filter or entity interceptor is instantiated for each 16 | JAX-RS application. First the constructor is called, then any requested 17 | dependencies are injected, then the appropriate methods are called 18 | (simultaneously) as needed. Implementations MAY offer alternative 19 | lifecycle options beyond the default one. See 20 | <> for additional information. 21 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/introduction/_introduction.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[introduction]] 12 | == Introduction 13 | 14 | This specification defines a set of Java APIs for the development of Web 15 | services built according to the Representational State Transfer<> 16 | (REST) architectural style. Readers are assumed to be familiar 17 | with REST; for more information about the REST architectural style and 18 | RESTful Web services, see: 19 | 20 | * Architectural Styles and the Design of Network-based Software 21 | Architectures<> 22 | * Representational State Transfer on Wikipedia<> 23 | 24 | 25 | include::_status.adoc[] 26 | 27 | include::_goals.adoc[] 28 | 29 | include::_non_goals.adoc[] 30 | 31 | include::_conventions.adoc[] 32 | 33 | include::_terminology.adoc[] 34 | 35 | include::_project_team.adoc[] 36 | 37 | include::_acks.adoc[] 38 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/introduction/_non_goals.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[non_goals]] 12 | === Non-Goals 13 | 14 | The following are non-goals: 15 | 16 | Support for Java versions prior to Java SE 8:: 17 | The API will make extensive use of annotations and lambda expressions 18 | that require Java SE 8 or later. 19 | Description, registration and discovery:: 20 | The specification will neither define nor require any service 21 | description, registration or discovery capability. 22 | HTTP Stack:: 23 | The specification will not define a new HTTP stack. HTTP protocol 24 | support is provided by a container that hosts artifacts developed 25 | using the API. 26 | Data model/format classes:: 27 | The API will not define classes that support manipulation of entity 28 | body content, rather it will provide pluggability to allow such 29 | classes to be used by artifacts developed using the API. 30 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/resources/_resources.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[resources]] 12 | == Resources 13 | 14 | Using JAX-RS a Web resource is implemented as a resource class and 15 | requests are handled by resource methods. This chapter describes 16 | resource classes and resource methods in detail. 17 | 18 | include::_resource-classes.adoc[] 19 | 20 | include::_resource_field.adoc[] 21 | 22 | include::_resource_method.adoc[] 23 | 24 | include::_uritemplates.adoc[] 25 | 26 | include::_declaring_method_capabilities.adoc[] 27 | 28 | include::_annotationinheritance.adoc[] 29 | 30 | include::_mapping_requests_to_java_methods.adoc[] 31 | 32 | include::_determine_response_type.adoc[] 33 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/sse/_sse.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[sse]] 12 | == Server-Sent Events 13 | 14 | include::_sse_introduction.adoc[] 15 | 16 | include::_sse_client_api.adoc[] 17 | 18 | include::_sse_server_api.adoc[] 19 | 20 | include::_sse_broadcasting.adoc[] 21 | 22 | include::_sse_pipeline.adoc[] 23 | 24 | include::_sse_environment.adoc[] 25 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/sse/_sse_environment.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[sse_environment]] 12 | === Environment 13 | 14 | The `SseEventSource` class uses the existing JAX-RS mechanism based on 15 | `RuntimeDelegate` to find an implementation using the service name 16 | `jakarta.ws.rs.sse.SseEventSource.Builder`. The majority of types in the 17 | `jakarta.ws.rs.sse` are thread safe; the reader is referred to the Javadoc 18 | for more information on thread safety. 19 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/validation/_annotation_inheritance.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[annotation_inheritance]] 12 | === Annotation Inheritance 13 | 14 | The rules for inheritance of constraint annotation are defined in 15 | <>. It is worth noting that these rules are incompatible 16 | with those defined in <>. Generally 17 | speaking, constraint annotations in <> are cumulative (can 18 | be strengthen) across a given type hierarchy while JAX-RS annotations 19 | are inherited or, overridden and ignored. 20 | 21 | The goal of this specification is to enable validation of 22 | JAX-RS resources by leveraging existing Bean Validation implementations. 23 | Therefore, JAX-RS implementations MUST follow the constraint annotation 24 | rules defined in <>. 25 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/chapters/validation/_validation.adoc: -------------------------------------------------------------------------------- 1 | //// 2 | ******************************************************************* 3 | * Copyright (c) 2019 Eclipse Foundation 4 | * 5 | * This specification document is made available under the terms 6 | * of the Eclipse Foundation Specification License v1.0, which is 7 | * available at https://www.eclipse.org/legal/efsl.php. 8 | ******************************************************************* 9 | //// 10 | 11 | [[validation]] 12 | == Validation 13 | 14 | Validation is the process of verifying that some data obeys one or more 15 | pre-defined constraints. The Bean Validation specification <> 16 | defines an API to validate Java Beans. This chapter describes how 17 | JAX-RS provides native support for validating resource classes based on 18 | the concepts presented in <>. See <> for 19 | more information on implementation requirements. 20 | 21 | include::_constraint_annotations.adoc[] 22 | 23 | include::_annotations_and_validators.adoc[] 24 | 25 | include::_entity_validation.adoc[] 26 | 27 | include::_default_validation_mode.adoc[] 28 | 29 | include::_annotation_inheritance.adoc[] 30 | 31 | include::_validation_and_error_reporting.adoc[] 32 | -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/images/jakarta_ee_logo_schooner_color_stacked_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/rest/36de36005d52fc06fc050aa6def415abb255a539/jaxrs-spec/src/main/asciidoc/images/jakarta_ee_logo_schooner_color_stacked_default.png -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/images/pipeline_client.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/rest/36de36005d52fc06fc050aa6def415abb255a539/jaxrs-spec/src/main/asciidoc/images/pipeline_client.png -------------------------------------------------------------------------------- /jaxrs-spec/src/main/asciidoc/images/pipeline_server.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/rest/36de36005d52fc06fc050aa6def415abb255a539/jaxrs-spec/src/main/asciidoc/images/pipeline_server.png -------------------------------------------------------------------------------- /jaxrs-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 | -------------------------------------------------------------------------------- /jaxrs-tck/docs/userguide/src/main/jbake/assets/_config.yml: -------------------------------------------------------------------------------- 1 | remote_theme: jakartaee/jekyll-theme-jakarta-ee 2 | 3 | title: [tck_jaxrs_v3_1] 4 | description: [Oracle Technology Compatibility Kit User's Guide for Jakarta RESTful Web Services 3.1 for 5 | Technology Licensees, Release 3.1] 6 | 7 | # sidebar links url 8 | links: 9 | source: https://github.com/jakartaee/rest 10 | download: https://jakarta.ee/specifications/restful-ws/3.1/ 11 | #mailinglist: https://javaee.groups.io/g/tck_jaxrs_v2_1 12 | #javadocs: 13 | docs: https://jakarta.ee/specifications/restful-ws/3.1/apidocs/ 14 | #faq: 15 | 16 | -------------------------------------------------------------------------------- /jaxrs-tck/docs/userguide/src/main/jbake/assets/img/eclipse_foundation_logo_tiny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/rest/36de36005d52fc06fc050aa6def415abb255a539/jaxrs-tck/docs/userguide/src/main/jbake/assets/img/eclipse_foundation_logo_tiny.png -------------------------------------------------------------------------------- /jaxrs-tck/docs/userguide/src/main/jbake/content/debug-tips.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/rest/36de36005d52fc06fc050aa6def415abb255a539/jaxrs-tck/docs/userguide/src/main/jbake/content/debug-tips.inc -------------------------------------------------------------------------------- /jaxrs-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 | -------------------------------------------------------------------------------- /jaxrs-tck/docs/userguide/src/main/jbake/content/install-server.inc: -------------------------------------------------------------------------------- 1 | . Install the Jakarta EE {JakartaEEVersion} CI software (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}, represented by the Jakarta 8 | EE {JakartaEEVersion} CI. 9 | You may obtain a copy of this CI by downloading it from {TechnologyRIURL}. 10 | -------------------------------------------------------------------------------- /jaxrs-tck/docs/userguide/src/main/jbake/content/intro.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/rest/36de36005d52fc06fc050aa6def415abb255a539/jaxrs-tck/docs/userguide/src/main/jbake/content/intro.inc -------------------------------------------------------------------------------- /jaxrs-tck/docs/userguide/src/main/jbake/content/packages.inc: -------------------------------------------------------------------------------- 1 | ** `jakarta.ws.rs` 2 | 3 | ** `jakarta.ws.rs.client` 4 | 5 | ** `jakarta.ws.rs.container` 6 | 7 | ** `jakarta.ws.rs.core` 8 | 9 | ** `jakarta.ws.rs.ext` 10 | 11 | ** `jakarta.ws.rs.sse` 12 | -------------------------------------------------------------------------------- /jaxrs-tck/docs/userguide/src/main/jbake/content/platforms.inc: -------------------------------------------------------------------------------- 1 | 2 | * Debian GNU/Linux 10 -------------------------------------------------------------------------------- /jaxrs-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 | -------------------------------------------------------------------------------- /jaxrs-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 RI. 4 | For many Java EE APIs, the Java EE RI 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 such as Eclipse GlassFish 6.1 or, at a minimum, a Web server with a Servlet container 12 | -------------------------------------------------------------------------------- /jaxrs-tck/docs/userguide/src/main/jbake/content/tck-packages.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/rest/36de36005d52fc06fc050aa6def415abb255a539/jaxrs-tck/docs/userguide/src/main/jbake/content/tck-packages.inc -------------------------------------------------------------------------------- /jaxrs-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 | -------------------------------------------------------------------------------- /jaxrs-tck/docs/userguide/src/main/jbake/content/using.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakartaee/rest/36de36005d52fc06fc050aa6def415abb255a539/jaxrs-tck/docs/userguide/src/main/jbake/content/using.inc -------------------------------------------------------------------------------- /jaxrs-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 -------------------------------------------------------------------------------- /jaxrs-tck/docs/userguide/src/main/jbake/templates/menu.ftl: -------------------------------------------------------------------------------- 1 | <#-- a menu bar template fragment included in the page template --> -------------------------------------------------------------------------------- /jaxrs-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"> -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/api/client/entity/AnnotatedClass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.api.client.entity; 18 | 19 | import jakarta.annotation.Priority; 20 | import jakarta.ws.rs.Consumes; 21 | import jakarta.ws.rs.Produces; 22 | import jakarta.ws.rs.ext.Provider; 23 | 24 | @Provider 25 | @Priority(Integer.MAX_VALUE) 26 | @Produces 27 | @Consumes 28 | public abstract class AnnotatedClass { 29 | 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/api/client/entity/SerializableClass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.api.client.entity; 18 | 19 | import java.io.Serializable; 20 | 21 | public class SerializableClass implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | @Override 25 | public String toString() { 26 | return "serializable"; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/api/client/invocation/GenericTypeResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.api.client.invocation; 18 | 19 | import jakarta.ws.rs.core.GenericType; 20 | import jakarta.ws.rs.core.Response; 21 | 22 | public class GenericTypeResponse extends GenericType { 23 | } 24 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/api/rs/core/configurable/ConfigurableObject.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.api.rs.core.configurable; 18 | 19 | import jakarta.ws.rs.core.Configurable; 20 | 21 | /** 22 | * Wraps Client, WebTarget and Invocation objects that have configuration() 23 | * method 24 | */ 25 | public interface ConfigurableObject { 26 | 27 | void config(Configurable config); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/api/rs/core/configurable/FeatureReturningFalse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.api.rs.core.configurable; 18 | 19 | import jakarta.ws.rs.core.Feature; 20 | import jakarta.ws.rs.core.FeatureContext; 21 | 22 | public class FeatureReturningFalse implements Feature { 23 | @Override 24 | public boolean configure(FeatureContext context) { 25 | // false returning feature is not to be registered 26 | return false; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/api/rs/core/configuration/CallableProvider1.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.api.rs.core.configuration; 18 | 19 | import ee.jakarta.tck.ws.rs.api.rs.core.configurable.CallableProvider; 20 | 21 | public class CallableProvider1 extends CallableProvider { 22 | 23 | } 24 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/api/rs/core/configuration/CallableProvider2.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.api.rs.core.configuration; 18 | 19 | import ee.jakarta.tck.ws.rs.api.rs.core.configurable.CallableProvider; 20 | 21 | public class CallableProvider2 extends CallableProvider { 22 | 23 | } 24 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/api/rs/core/link/ResourceWithProduces.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.api.rs.core.link; 18 | 19 | import jakarta.ws.rs.Path; 20 | import jakarta.ws.rs.Produces; 21 | import jakarta.ws.rs.core.MediaType; 22 | 23 | @Path("producesresource") 24 | @Produces(MediaType.TEXT_HTML) 25 | public class ResourceWithProduces { 26 | 27 | } 28 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/api/rs/core/uribuilder/TestPathBad.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 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 | package ee.jakarta.tck.ws.rs.api.rs.core.uribuilder; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.core.Response; 21 | 22 | public class TestPathBad { 23 | @GET 24 | public Response getPlain() { 25 | return Response.ok().build(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/api/rs/ext/interceptor/reader/readerinterceptorcontext/ContextOperation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.api.rs.ext.interceptor.reader.readerinterceptorcontext; 18 | 19 | public enum ContextOperation { 20 | GETHEADERS, GETHEADERSISMUTABLE, GETINPUTSTREAM, PROCEEDTHROWSIOEXCEPTION, PROCEEDTHROWSWEBAPPEXCEPTION, SETINPUTSTREAM 21 | } 22 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/api/rs/ext/runtimedelegate/create/Resource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2018, 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 | package ee.jakarta.tck.ws.rs.api.rs.ext.runtimedelegate.create; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.Path; 21 | 22 | @Path("resource") 23 | public class Resource { 24 | @GET 25 | public String neverCalledMethod() { 26 | return null; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/common/impl/TRACE.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.common.impl; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | import jakarta.ws.rs.HttpMethod; 25 | 26 | @HttpMethod("TRACE") 27 | @Target(value = ElementType.METHOD) 28 | @Retention(value = RetentionPolicy.RUNTIME) 29 | public @interface TRACE { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/common/util/Holder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 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 | package ee.jakarta.tck.ws.rs.common.util; 18 | 19 | public class Holder { 20 | 21 | public Holder() { 22 | }; 23 | 24 | public Holder(TYPE type) { 25 | set(type); 26 | } 27 | 28 | public TYPE value; 29 | 30 | public void set(TYPE value) { 31 | this.value = value; 32 | } 33 | 34 | public TYPE get() { 35 | return value; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/resource/readme.txt: -------------------------------------------------------------------------------- 1 | The resources package is used for testing assertions specified in the following 2 | sections: 3 | o Section 3. : Resources 4 | o Section 4. : Providers -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/resource/webappexception/defaultmapper/Resource.java: -------------------------------------------------------------------------------- 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 | package ee.jakarta.tck.ws.rs.ee.resource.webappexception.defaultmapper; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.Path; 21 | import jakarta.ws.rs.core.Response; 22 | 23 | @Path("resource") 24 | public class Resource { 25 | 26 | @GET 27 | @Path("/throwable") 28 | public Response throwable() throws Throwable { 29 | throw new Throwable(); 30 | } 31 | 32 | } -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/resource/webappexception/nomapper/TSAppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 2020, 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 | package ee.jakarta.tck.ws.rs.ee.resource.webappexception.nomapper; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/ParamEntityWithConstructor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 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 ee.jakarta.tck.ws.rs.ee.rs; 18 | 19 | public class ParamEntityWithConstructor extends ParamEntityPrototype { 20 | public ParamEntityWithConstructor(String arg) { 21 | value = arg; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/ParamEntityWithValueOf.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 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 ee.jakarta.tck.ws.rs.ee.rs; 18 | 19 | /** 20 | * This is ParamEntity With valueOf method 21 | */ 22 | public class ParamEntityWithValueOf extends ParamEntityPrototype { 23 | 24 | public static ParamEntityWithValueOf valueOf(String arg) { 25 | ParamEntityWithValueOf newEntity = new ParamEntityWithValueOf(); 26 | newEntity.value = arg; 27 | return newEntity; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/beanparam/plain/AppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014, 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 ee.jakarta.tck.ws.rs.ee.rs.beanparam.plain; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class AppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/client/asyncinvoker/TSAppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.ee.rs.client.asyncinvoker; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/client/clientrequestcontext/TSAppConfig.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 | package ee.jakarta.tck.ws.rs.ee.rs.client.clientrequestcontext; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/client/invocationbuilder/TSAppConfig.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 | package ee.jakarta.tck.ws.rs.ee.rs.client.invocationbuilder; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/client/syncinvoker/TSAppConfig.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 | package ee.jakarta.tck.ws.rs.ee.rs.client.syncinvoker; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/container/requestcontext/illegalstate/ContextOperation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 ee.jakarta.tck.ws.rs.ee.rs.container.requestcontext.illegalstate; 18 | 19 | public enum ContextOperation { 20 | ABORTWITH, SETMETHOD, SETREQUESTURI1, SETREQUESTURI2, SETENTITYSTREAM, SETSECURITYCONTEXT 21 | } 22 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/container/requestcontext/security/Resource.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 | package ee.jakarta.tck.ws.rs.ee.rs.container.requestcontext.security; 18 | 19 | import jakarta.ws.rs.POST; 20 | import jakarta.ws.rs.Path; 21 | 22 | @Path("resource") 23 | public class Resource { 24 | @POST 25 | public String echo(String echo) { 26 | return echo; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/container/resourceinfo/TSAppConfig.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 | package ee.jakarta.tck.ws.rs.ee.rs.container.resourceinfo; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/cookieparam/sub/CookieSubResource.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 | package ee.jakarta.tck.ws.rs.ee.rs.cookieparam.sub; 18 | 19 | import ee.jakarta.tck.ws.rs.ee.rs.cookieparam.CookieParamTest; 20 | 21 | import jakarta.ws.rs.Path; 22 | 23 | @Path("Resource") 24 | public class CookieSubResource extends CookieParamTest { 25 | 26 | @Path("subresource") 27 | public CookieSubResource subResourceHandling() { 28 | return this; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/core/configurable/Resource.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 | package ee.jakarta.tck.ws.rs.ee.rs.core.configurable; 18 | 19 | import jakarta.ws.rs.POST; 20 | import jakarta.ws.rs.Path; 21 | 22 | @Path("resource") 23 | public class Resource { 24 | @POST 25 | @Path("echo") 26 | public String echo(String value) { 27 | return value; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/core/configurable/TSAppConfig.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 | package ee.jakarta.tck.ws.rs.ee.rs.core.configurable; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/core/request/TSAppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011, 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 | package ee.jakarta.tck.ws.rs.ee.rs.core.request; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(RequestTest.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/core/response/AnnotatedClass.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 | package ee.jakarta.tck.ws.rs.ee.rs.core.response; 18 | 19 | import jakarta.ws.rs.Consumes; 20 | import jakarta.ws.rs.ext.Provider; 21 | 22 | @Provider 23 | @Consumes 24 | /** 25 | * This is the dummy class to get annotations from it 26 | */ 27 | public abstract class AnnotatedClass { 28 | 29 | } 30 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/core/responsebuilder/AnnotatedClass.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 | package ee.jakarta.tck.ws.rs.ee.rs.core.responsebuilder; 18 | 19 | import jakarta.ws.rs.Consumes; 20 | import jakarta.ws.rs.ext.Provider; 21 | 22 | @Provider 23 | @Consumes 24 | /** 25 | * This is the dummy class to get annotations from it 26 | */ 27 | public abstract class AnnotatedClass { 28 | 29 | } 30 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/core/securitycontext/TSAppConfig.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 | package ee.jakarta.tck.ws.rs.ee.rs.core.securitycontext; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(TestServlet.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/core/uriinfo/TSAppConfig.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 | package ee.jakarta.tck.ws.rs.ee.rs.core.uriinfo; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(URIInfoTest.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/ext/contextresolver/EnumProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 ee.jakarta.tck.ws.rs.ee.rs.ext.contextresolver; 18 | 19 | /** 20 | * This class is used by 21 | * ee.jakarta.tck.ws.rs.ee.rs.ext.providers.ProvidersServlet 22 | */ 23 | public enum EnumProvider { 24 | TCK, CTS, JAXRS; 25 | } 26 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/ext/interceptor/clientwriter/interceptorcontext/Resource.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 | package ee.jakarta.tck.ws.rs.ee.rs.ext.interceptor.clientwriter.interceptorcontext; 18 | 19 | import jakarta.ws.rs.POST; 20 | import jakarta.ws.rs.Path; 21 | 22 | @Path("resource") 23 | public class Resource { 24 | 25 | @POST 26 | public String post(String entity) { 27 | return entity; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/ext/interceptor/clientwriter/writerinterceptorcontext/Resource.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 | package ee.jakarta.tck.ws.rs.ee.rs.ext.interceptor.clientwriter.writerinterceptorcontext; 18 | 19 | import jakarta.ws.rs.POST; 20 | import jakarta.ws.rs.Path; 21 | 22 | @Path("resource") 23 | public class Resource { 24 | 25 | @POST 26 | public String post(String entity) { 27 | return entity; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/ext/interceptor/writer/writerinterceptorcontext/ProceedExceptionMapper.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 | package ee.jakarta.tck.ws.rs.ee.rs.ext.interceptor.writer.writerinterceptorcontext; 18 | 19 | import jakarta.ws.rs.core.Response; 20 | import jakarta.ws.rs.ext.ExceptionMapper; 21 | 22 | public class ProceedExceptionMapper 23 | implements ExceptionMapper { 24 | 25 | @Override 26 | public Response toResponse(ProceedException exception) { 27 | return exception.getResponse(); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/ext/messagebodyreaderwriter/EntityAnnotation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 ee.jakarta.tck.ws.rs.ee.rs.ext.messagebodyreaderwriter; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | /** 23 | * This class is used by 24 | * ee.jakarta.tck.ws.rs.ee.rs.ext.providers.ProvidersServlet 25 | */ 26 | @Retention(RetentionPolicy.RUNTIME) 27 | public @interface EntityAnnotation { 28 | String value(); 29 | } 30 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/formparam/sub/SubResource.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 | package ee.jakarta.tck.ws.rs.ee.rs.formparam.sub; 18 | 19 | import ee.jakarta.tck.ws.rs.ee.rs.formparam.FormParamTest; 20 | 21 | import jakarta.ws.rs.Path; 22 | 23 | @Path("resource") 24 | public class SubResource extends FormParamTest { 25 | 26 | @Path("sub") 27 | public SubResource sub() { 28 | return this; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/get/RecursiveLocator.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 ee.jakarta.tck.ws.rs.ee.rs.get; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.Path; 21 | 22 | public class RecursiveLocator { 23 | private int level = 0; 24 | 25 | @Path("{id}") 26 | public RecursiveLocator recursion() { 27 | level++; 28 | return this; 29 | } 30 | 31 | @GET 32 | public String getLevel() { 33 | return String.valueOf(level); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/get/SubResource.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 | package ee.jakarta.tck.ws.rs.ee.rs.get; 18 | 19 | import jakarta.ws.rs.GET; 20 | 21 | public class SubResource { 22 | public static final String ID = "JAXRS:DIRECT"; 23 | 24 | @GET 25 | public String reveal() { 26 | return ID; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/get/TSAppConfig.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 | package ee.jakarta.tck.ws.rs.ee.rs.get; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | /** 25 | * 26 | * @author diannejiao 27 | */ 28 | public class TSAppConfig extends Application { 29 | 30 | public java.util.Set> getClasses() { 31 | Set> resources = new HashSet>(); 32 | resources.add(HttpMethodGetTest.class); 33 | return resources; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/head/TSAppConfig.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 | package ee.jakarta.tck.ws.rs.ee.rs.head; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | /** 25 | * 26 | * @author diannejiao 27 | */ 28 | public class TSAppConfig extends Application { 29 | 30 | public java.util.Set> getClasses() { 31 | Set> resources = new HashSet>(); 32 | resources.add(HttpMethodHeadTest.class); 33 | return resources; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/headerparam/sub/SubResource.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 | package ee.jakarta.tck.ws.rs.ee.rs.headerparam.sub; 18 | 19 | import ee.jakarta.tck.ws.rs.ee.rs.headerparam.HeaderParamTest; 20 | 21 | import jakarta.ws.rs.Path; 22 | 23 | @Path("resource") 24 | public class SubResource extends HeaderParamTest { 25 | 26 | @Path("subresource") 27 | public SubResource subresource() { 28 | return this; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/matrixparam/sub/SubResource.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 | package ee.jakarta.tck.ws.rs.ee.rs.matrixparam.sub; 18 | 19 | import ee.jakarta.tck.ws.rs.ee.rs.matrixparam.MatrixParamTest; 20 | 21 | import jakarta.ws.rs.Path; 22 | 23 | @Path("resource") 24 | public class SubResource extends MatrixParamTest { 25 | @Path("subresource") 26 | public SubResource subresource() { 27 | return this; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/options/TSAppConfig.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 | package ee.jakarta.tck.ws.rs.ee.rs.options; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/pathparam/sub/SubResource.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 | package ee.jakarta.tck.ws.rs.ee.rs.pathparam.sub; 18 | 19 | import ee.jakarta.tck.ws.rs.ee.rs.pathparam.PathParamTest; 20 | 21 | import jakarta.ws.rs.Path; 22 | 23 | @Path("resource") 24 | public class SubResource extends PathParamTest { 25 | 26 | @Path("subresource") 27 | public SubResource subresorce() { 28 | return this; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/produceconsume/TSAppConfig.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 | package ee.jakarta.tck.ws.rs.ee.rs.produceconsume; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/put/TSAppConfig.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 | package ee.jakarta.tck.ws.rs.ee.rs.put; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | /** 25 | * 26 | * @author diannejiao 27 | */ 28 | public class TSAppConfig extends Application { 29 | 30 | public java.util.Set> getClasses() { 31 | Set> resources = new HashSet>(); 32 | resources.add(HttpMethodPutTest.class); 33 | return resources; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/queryparam/sub/SubResource.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 | package ee.jakarta.tck.ws.rs.ee.rs.queryparam.sub; 18 | 19 | import ee.jakarta.tck.ws.rs.ee.rs.queryparam.QueryParamTest; 20 | 21 | import jakarta.ws.rs.Path; 22 | 23 | @Path("resource") 24 | public class SubResource extends QueryParamTest { 25 | 26 | @Path("subresource") 27 | public SubResource subresource() { 28 | return this; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs21/ee/client/rxinvoker/TSAppConfig.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 ee.jakarta.tck.ws.rs.jaxrs21.ee.client.rxinvoker; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs21/ee/patch/server/PatchMethod.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 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 ee.jakarta.tck.ws.rs.jaxrs21.ee.patch.server; 18 | 19 | import org.apache.commons.httpclient.methods.EntityEnclosingMethod; 20 | 21 | public class PatchMethod extends EntityEnclosingMethod { 22 | public PatchMethod() { 23 | super(); 24 | } 25 | 26 | public PatchMethod(String uri) { 27 | super(uri); 28 | } 29 | 30 | @Override 31 | public String getName() { 32 | return "PATCH"; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs21/ee/priority/ExceptionResource.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 ee.jakarta.tck.ws.rs.jaxrs21.ee.priority; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.Path; 21 | import jakarta.ws.rs.Produces; 22 | import jakarta.ws.rs.core.MediaType; 23 | 24 | @Path("exception") 25 | public class ExceptionResource { 26 | @GET 27 | @Produces(MediaType.TEXT_PLAIN) 28 | public String get() { 29 | throw new TckPriorityException(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs21/ee/priority/ParamConverterResource.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 ee.jakarta.tck.ws.rs.jaxrs21.ee.priority; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.Path; 21 | import jakarta.ws.rs.QueryParam; 22 | 23 | @Path("converter") 24 | public class ParamConverterResource { 25 | @GET 26 | public String get(@QueryParam("id") String id) { 27 | return id; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs21/ee/priority/TckPriorityException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 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 ee.jakarta.tck.ws.rs.jaxrs21.ee.priority; 18 | 19 | public class TckPriorityException extends RuntimeException { 20 | private static final long serialVersionUID = 21L; 21 | } 22 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs21/ee/sse/SSEMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, 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 ee.jakarta.tck.ws.rs.jaxrs21.ee.sse; 18 | 19 | public interface SSEMessage { 20 | public static final String MESSAGE = "some_ServiceUnavailableEndpoint_message"; 21 | } 22 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs21/ee/sse/ssebroadcaster/TSAppConfig.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 ee.jakarta.tck.ws.rs.jaxrs21.ee.sse.ssebroadcaster; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(BroadcastResource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs21/spec/classsubresourcelocator/Resource.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 ee.jakarta.tck.ws.rs.jaxrs21.spec.classsubresourcelocator; 18 | 19 | import jakarta.ws.rs.Path; 20 | 21 | @Path("resource") 22 | public class Resource { 23 | 24 | @Path("sub") 25 | public Class sub() { 26 | return SubResource.class; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs21/spec/classsubresourcelocator/SubResource.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 ee.jakarta.tck.ws.rs.jaxrs21.spec.classsubresourcelocator; 18 | 19 | import jakarta.ws.rs.GET; 20 | 21 | public class SubResource { 22 | @GET 23 | public String ok() { 24 | return "OK"; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs31/spec/extensions/DynamicFeatureResource.java: -------------------------------------------------------------------------------- 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 | package ee.jakarta.tck.ws.rs.jaxrs31.spec.extensions; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.Path; 21 | import jakarta.ws.rs.core.Response; 22 | 23 | @Path("/") 24 | public class DynamicFeatureResource { 25 | 26 | @GET 27 | @Path("dynamicFeature") 28 | public Response getDynamicFeature() { 29 | return Response.ok().build(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/lib/deliverable/PropertyNotSetException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 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 | package ee.jakarta.tck.ws.rs.lib.deliverable; 18 | 19 | public class PropertyNotSetException extends java.lang.Exception { 20 | public PropertyNotSetException(String s) { 21 | super(s); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/lib/util/CEFormatException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1995, 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 | package ee.jakarta.tck.ws.rs.lib.util; 18 | 19 | import java.io.IOException; 20 | 21 | public class CEFormatException extends IOException { 22 | public CEFormatException(String s) { 23 | super(s); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/lib/util/CEStreamExhausted.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1995, 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 | package ee.jakarta.tck.ws.rs.lib.util; 18 | 19 | import java.io.IOException; 20 | 21 | /** This exception is thrown when EOF is reached */ 22 | public class CEStreamExhausted extends IOException { 23 | }; 24 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/servlet3/rs/applicationpath/Resource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2020, 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 | package ee.jakarta.tck.ws.rs.servlet3.rs.applicationpath; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.Path; 21 | import jakarta.ws.rs.core.Response; 22 | 23 | @Path("/Resource") 24 | public class Resource { 25 | @GET 26 | public Response returnOk() { 27 | return Response.ok().build(); 28 | } 29 | } -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/servlet3/rs/ext/paramconverter/autodiscovery/TSAppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 2018, 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 | package ee.jakarta.tck.ws.rs.servlet3.rs.ext.paramconverter.autodiscovery; 18 | 19 | import jakarta.ws.rs.core.Application; 20 | 21 | public class TSAppConfig extends Application { 22 | } -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/client/invocations/TSAppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.client.invocations; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/client/resource/Resource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.client.resource; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.Path; 21 | 22 | @Path("resource") 23 | public class Resource { 24 | 25 | @GET 26 | @Path("concept") 27 | public String concept() { 28 | return "concept"; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/client/resource/TSAppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.client.resource; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/context/client/Resource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.context.client; 18 | 19 | import jakarta.ws.rs.POST; 20 | import jakarta.ws.rs.Path; 21 | 22 | @Path("resource") 23 | public class Resource { 24 | 25 | @POST 26 | @Path("echo") 27 | public String returnGivenString(String string) { 28 | return string; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/context/server/SingletonWithInjectables.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.context.server; 18 | 19 | public class SingletonWithInjectables { 20 | public SingletonWithInjectables(TSAppConfig config) { 21 | super(); 22 | this.config = config; 23 | } 24 | 25 | private TSAppConfig config; 26 | 27 | public String getInjectedContextValues() { 28 | return config.getInjectedContextValues(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/filter/dynamicfeature/AddOneInterceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.spec.filter.dynamicfeature; 18 | 19 | public class AddOneInterceptor extends AbstractAddInterceptor { 20 | 21 | public AddOneInterceptor() { 22 | super(1); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/filter/dynamicfeature/Resource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.spec.filter.dynamicfeature; 18 | 19 | import jakarta.ws.rs.POST; 20 | import jakarta.ws.rs.Path; 21 | 22 | @Path("resource") 23 | public class Resource { 24 | 25 | @POST 26 | @Path("dynamic") 27 | public String echo(String echo) { 28 | return echo; 29 | } 30 | 31 | @POST 32 | @Path("nobinding") 33 | public String noBindingEcho(String echo) { 34 | return echo; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/filter/exception/AddOneInterceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.spec.filter.exception; 18 | 19 | import jakarta.annotation.Priority; 20 | import jakarta.ws.rs.ext.Provider; 21 | 22 | @Provider 23 | @ExceptionNameBinding 24 | @Priority(100) 25 | public class AddOneInterceptor extends AbstractAddInterceptor { 26 | 27 | public AddOneInterceptor() { 28 | super(1); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/filter/exception/AddTenGlobalFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.spec.filter.exception; 18 | 19 | import jakarta.annotation.Priority; 20 | import jakarta.ws.rs.ext.Provider; 21 | 22 | @Provider 23 | @Priority(200) 24 | public class AddTenGlobalFilter extends AbstractAddFilter { 25 | 26 | public AddTenGlobalFilter() { 27 | super(10000); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/filter/exception/Resource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.spec.filter.exception; 18 | 19 | import jakarta.ws.rs.POST; 20 | import jakarta.ws.rs.Path; 21 | 22 | @Path("resource") 23 | public class Resource { 24 | 25 | @POST 26 | @Path("echo") 27 | @ExceptionNameBinding 28 | public String echo(String echo) { 29 | return echo; 30 | } 31 | 32 | @POST 33 | @Path("nobinding") 34 | public String noBindingEcho(String echo) { 35 | return echo; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/filter/globalbinding/AddOneInterceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.spec.filter.globalbinding; 18 | 19 | import jakarta.ws.rs.ext.Provider; 20 | 21 | @Provider 22 | @GlobalNameBinding 23 | public class AddOneInterceptor extends AbstractAddInterceptor { 24 | public AddOneInterceptor() { 25 | super(1); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/filter/globalbinding/AddTenFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.spec.filter.globalbinding; 18 | 19 | import jakarta.ws.rs.ext.Provider; 20 | 21 | @Provider 22 | @GlobalNameBinding 23 | public class AddTenFilter extends AbstractAddFilter { 24 | 25 | public AddTenFilter() { 26 | super(10); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/filter/globalbinding/GlobalNameBinding.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.spec.filter.globalbinding; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | import jakarta.ws.rs.NameBinding; 25 | 26 | @NameBinding 27 | @Target({ ElementType.TYPE, ElementType.METHOD }) 28 | @Retention(value = RetentionPolicy.RUNTIME) 29 | public @interface GlobalNameBinding { 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/filter/globalbinding/Resource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.spec.filter.globalbinding; 18 | 19 | import jakarta.ws.rs.POST; 20 | import jakarta.ws.rs.Path; 21 | 22 | @Path("resource") 23 | public class Resource { 24 | 25 | @POST 26 | @Path("bind") 27 | @GlobalNameBinding 28 | public String echoWithBind(String echo) { 29 | return echo; 30 | } 31 | 32 | @POST 33 | @Path("nobind") 34 | public String echoNoBind(String echo) { 35 | return echo; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/filter/namebinding/AddOneInterceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.spec.filter.namebinding; 18 | 19 | import jakarta.ws.rs.ext.Provider; 20 | 21 | @Provider 22 | @SingleNameBinding 23 | public class AddOneInterceptor extends AbstractAddInterceptor { 24 | public AddOneInterceptor() { 25 | super(1); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/filter/namebinding/AddTenInterceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 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 | package ee.jakarta.tck.ws.rs.spec.filter.namebinding; 18 | 19 | import jakarta.ws.rs.ext.Provider; 20 | 21 | @Provider 22 | @SingleNameBinding 23 | @ComplementNameBinding 24 | public class AddTenInterceptor extends AbstractAddInterceptor { 25 | 26 | public AddTenInterceptor() { 27 | super(10); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/inheritance/ChildResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 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 | package ee.jakarta.tck.ws.rs.spec.inheritance; 18 | 19 | import jakarta.ws.rs.Path; 20 | 21 | @Path(value = "/InheritanceTest") 22 | public class ChildResource implements ParentResource { 23 | 24 | public String firstest() { 25 | return "First"; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/inheritance/ParentResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 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 | package ee.jakarta.tck.ws.rs.spec.inheritance; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.Produces; 21 | 22 | public interface ParentResource { 23 | 24 | @GET 25 | @Produces("text/plain") 26 | public String firstest(); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/inheritance/ParentResource1.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 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 | package ee.jakarta.tck.ws.rs.spec.inheritance; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.Produces; 21 | 22 | public interface ParentResource1 { 23 | 24 | @GET 25 | @Produces("text/xml") 26 | public String secondtest(); 27 | } 28 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/inheritance/TSAppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 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 | package ee.jakarta.tck.ws.rs.spec.inheritance; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(ChildResource.class); 29 | resources.add(ChildResource1.class); 30 | return resources; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/exceptionmapper/FilterChainTestException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.provider.exceptionmapper; 18 | 19 | public class FilterChainTestException extends RuntimeException { 20 | 21 | private static final long serialVersionUID = -1713993194299900848L; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/exceptionmapper/PlainExceptionMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.provider.exceptionmapper; 18 | 19 | import jakarta.ws.rs.core.Response; 20 | import jakarta.ws.rs.ext.Provider; 21 | 22 | @Provider 23 | public class PlainExceptionMapper 24 | implements jakarta.ws.rs.ext.ExceptionMapper { 25 | 26 | @Override 27 | public Response toResponse(Exception exception) { 28 | return Response.ok(getClass().getName()).build(); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/exceptionmapper/ThrowableMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.provider.exceptionmapper; 18 | 19 | import jakarta.ws.rs.core.Response; 20 | import jakarta.ws.rs.ext.ExceptionMapper; 21 | import jakarta.ws.rs.ext.Provider; 22 | 23 | @Provider 24 | public class ThrowableMapper implements ExceptionMapper { 25 | 26 | @Override 27 | public Response toResponse(Throwable exception) { 28 | return Response.ok(getClass().getName()).build(); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/jaxbcontext/JaxbContextProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.provider.jaxbcontext; 18 | 19 | import jakarta.ws.rs.ext.ContextResolver; 20 | import jakarta.ws.rs.ext.Provider; 21 | import jakarta.xml.bind.JAXBContext; 22 | 23 | @Provider 24 | public class JaxbContextProvider implements ContextResolver { 25 | 26 | @Override 27 | public JAXBContext getContext(Class type) { 28 | JAXBContext ctx = new SomeJaxbContext(); 29 | return ctx; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/jaxbcontext/Resource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.provider.jaxbcontext; 18 | 19 | import jakarta.ws.rs.POST; 20 | import jakarta.ws.rs.Path; 21 | import jakarta.xml.bind.JAXBElement; 22 | 23 | @Path("resource") 24 | public class Resource { 25 | 26 | @Path("jaxb") 27 | @POST 28 | public JAXBElement jaxb(JAXBElement jaxb) { 29 | return jaxb; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/reader/EntityForReader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.provider.reader; 18 | 19 | public class EntityForReader { 20 | private String value; 21 | 22 | public EntityForReader(String value) { 23 | this.value = value; 24 | } 25 | 26 | @Override 27 | public String toString() { 28 | return value; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/sort/Resource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.provider.sort; 18 | 19 | import ee.jakarta.tck.ws.rs.common.provider.StringBean; 20 | 21 | import jakarta.ws.rs.POST; 22 | import jakarta.ws.rs.Path; 23 | 24 | @Path("resource") 25 | public class Resource { 26 | 27 | @POST 28 | public StringBean out(StringBean in) { 29 | return in; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/standard/TSAppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.provider.standard; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/standardnotnull/TSAppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.provider.standardnotnull; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/standardwithjaxrsclient/TSAppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.provider.standardwithjaxrsclient; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/standardwithxmlbinding/TSAppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, 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 | package ee.jakarta.tck.ws.rs.spec.provider.standardwithxmlbinding; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/visibility/DummyClass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.provider.visibility; 18 | 19 | public class DummyClass { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/visibility/VisibilityException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.provider.visibility; 18 | 19 | import jakarta.ws.rs.WebApplicationException; 20 | 21 | public class VisibilityException extends WebApplicationException { 22 | 23 | private static final long serialVersionUID = -1159407312691372429L; 24 | 25 | } 26 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/provider/writer/EntityForWriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.provider.writer; 18 | 19 | public class EntityForWriter { 20 | private String body; 21 | 22 | public EntityForWriter(String body) { 23 | super(); 24 | this.body = body; 25 | } 26 | 27 | @Override 28 | public String toString() { 29 | return body; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/resource/annotationprecedence/Resource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.resource.annotationprecedence; 18 | 19 | import jakarta.ws.rs.Path; 20 | 21 | @Path("resource") 22 | public class Resource extends SuperClass implements ResourceInterface { 23 | 24 | } 25 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/resource/annotationprecedence/TSAppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.resource.annotationprecedence; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/resource/locator/LocatorEntity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.resource.locator; 18 | 19 | import jakarta.ws.rs.MatrixParam; 20 | 21 | public class LocatorEntity { 22 | @MatrixParam("entity") 23 | public String entity; 24 | 25 | public String resMatrix; 26 | 27 | public String subMatrix; 28 | 29 | public LocatorEntity(String resMatrix, String subMatrix) { 30 | super(); 31 | this.resMatrix = resMatrix; 32 | this.subMatrix = subMatrix; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/resource/locator/Resource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.resource.locator; 18 | 19 | import jakarta.ws.rs.MatrixParam; 20 | import jakarta.ws.rs.Path; 21 | 22 | @Path("resource") 23 | public class Resource { 24 | 25 | @MatrixParam(value = "resmatrix") 26 | String resmatrix; 27 | 28 | @Path("sub") 29 | public SubResource sub() { 30 | return new SubResource(resmatrix); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/resource/requestmatching/EmptyResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.resource.requestmatching; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.Path; 21 | 22 | @Path("") 23 | public class EmptyResource { 24 | @GET 25 | public String empty() { 26 | return this.getClass().getSimpleName(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/resource/valueofandfromstring/EnumWithFromStringAndValueOf.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.resource.valueofandfromstring; 18 | 19 | /** 20 | * If both methods are present then valueOf MUST be used unless the type is an 21 | * enum in which case fromString MUST be used. 22 | */ 23 | 24 | public enum EnumWithFromStringAndValueOf { 25 | FROMSTRING, VALUEOF; 26 | public static EnumWithFromStringAndValueOf fromString(String string) { 27 | return FROMSTRING; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/resource/valueofandfromstring/TSAppConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.resource.valueofandfromstring; 18 | 19 | import java.util.HashSet; 20 | import java.util.Set; 21 | 22 | import jakarta.ws.rs.core.Application; 23 | 24 | public class TSAppConfig extends Application { 25 | 26 | public java.util.Set> getClasses() { 27 | Set> resources = new HashSet>(); 28 | resources.add(Resource.class); 29 | return resources; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/resourceconstructor/CookieResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.resourceconstructor; 18 | 19 | import jakarta.ws.rs.CookieParam; 20 | import jakarta.ws.rs.GET; 21 | import jakarta.ws.rs.Path; 22 | 23 | @Path("resource/cookie") 24 | public class CookieResource { 25 | String param; 26 | 27 | public CookieResource(@CookieParam("param") String param) { 28 | this.param = param; 29 | } 30 | 31 | @GET 32 | public String get() { 33 | return param; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/resourceconstructor/HeaderResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.resourceconstructor; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.HeaderParam; 21 | import jakarta.ws.rs.Path; 22 | 23 | @Path("resource/header") 24 | public class HeaderResource { 25 | String header; 26 | 27 | public HeaderResource(@HeaderParam("param") String header) { 28 | this.header = header; 29 | } 30 | 31 | @GET 32 | public String get() { 33 | return header; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/resourceconstructor/MatrixResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.resourceconstructor; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.MatrixParam; 21 | import jakarta.ws.rs.Path; 22 | 23 | @Path("resource/matrix") 24 | public class MatrixResource { 25 | String param; 26 | 27 | public MatrixResource(@MatrixParam("param") String param) { 28 | this.param = param; 29 | } 30 | 31 | @GET 32 | public String get() { 33 | return param; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/resourceconstructor/PathResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.resourceconstructor; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.Path; 21 | import jakarta.ws.rs.PathParam; 22 | 23 | @Path("resource/path/{param}") 24 | public class PathResource { 25 | String param; 26 | 27 | public PathResource(@PathParam("param") String param) { 28 | this.param = param; 29 | } 30 | 31 | @GET 32 | public String get() { 33 | return param; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/spec/resourceconstructor/QueryResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, 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 | package ee.jakarta.tck.ws.rs.spec.resourceconstructor; 18 | 19 | import jakarta.ws.rs.GET; 20 | import jakarta.ws.rs.Path; 21 | import jakarta.ws.rs.QueryParam; 22 | 23 | @Path("resource/query") 24 | public class QueryResource { 25 | String param; 26 | 27 | public QueryResource(@QueryParam("param") String param) { 28 | this.param = param; 29 | } 30 | 31 | @GET 32 | public String get() { 33 | return param; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/resources/ee/jakarta/tck/ws/rs/signaturetest/sig-test-pkg-list.txt: -------------------------------------------------------------------------------- 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 | ## 18 | # This file contains a list of all the packages 19 | # contained in the signature files for this 20 | # deliverable. This file is used to exclude valid 21 | # sub-packages from being verified when their 22 | # parent package's signature is checked. 23 | ## 24 | 25 | jakarta.ws.rs 26 | jakarta.ws.rs.client 27 | jakarta.ws.rs.container 28 | jakarta.ws.rs.core 29 | jakarta.ws.rs.ext 30 | jakarta.ws.rs.sse 31 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/resources/ee/jakarta/tck/ws/rs/signaturetest/sig-test.map: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2018, 2024 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 | # The signature test mapping file for the JAX-RS TCK. 19 | ############################################################### 20 | jakarta.ws.rs=4.0.0 21 | -------------------------------------------------------------------------------- /jaxrs-tck/src/main/resources/ee/jakarta/tck/ws/rs/spec/resourceconstructor/beans.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 24 | -------------------------------------------------------------------------------- /jersey-tck/j2ee.pass: -------------------------------------------------------------------------------- 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 | AS_ADMIN_USERPASSWORD=j2ee -------------------------------------------------------------------------------- /jersey-tck/javajoe.pass: -------------------------------------------------------------------------------- 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 | AS_ADMIN_USERPASSWORD=javajoe -------------------------------------------------------------------------------- /jersey-tck/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension: -------------------------------------------------------------------------------- 1 | org.glassfish.jersey.core.tck.JerseyLoadableExtension --------------------------------------------------------------------------------