Search in sources :

Example 6 with Request

use of jakarta.ws.rs.core.Request in project devspaces-images by redhat-developer.

the class JAXRSDownloadFileResponseFilter method filter.

/**
 * JAX-RS Filter method called after a response has been provided for a request
 *
 * <p>Filters in the filter chain are ordered according to their {@code
 * jakarta.annotation.Priority} class-level annotation value.
 *
 * @param requestContext request context.
 * @param responseContext response context.
 * @throws IOException if an I/O exception occurs.
 */
@Override
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {
    // Apply header if all if correct
    Request request = requestContext.getRequest();
    String filename = getFileName(request, responseContext.getMediaType(), requestContext.getUriInfo(), responseContext.getStatus());
    if (filename != null) {
        if (hasCompliantEntity(responseContext.getEntity())) {
            responseContext.getHeaders().putSingle(CONTENT_DISPOSITION, "attachment; filename=" + filename);
        }
    }
}
Also used : Request(jakarta.ws.rs.core.Request)

Example 7 with Request

use of jakarta.ws.rs.core.Request in project jaxrs-api by eclipse-ee4j.

the class RequestFilter method getRequest.

public void getRequest() {
    Request request = requestContext.getRequest();
    String method = request.getMethod();
    abortWithEntity(method);
}
Also used : Request(jakarta.ws.rs.core.Request)

Example 8 with Request

use of jakarta.ws.rs.core.Request in project tomee by apache.

the class Contexts method bind.

/**
 * Using a set ensures we don't set the thread local twice or more,
 * there may be super classes with injection points of identical types
 *
 * Also allows us to get context references from other sources such as interceptors
 *
 * @param exchange Exchange
 * @param types    Collection
 */
public static void bind(final Exchange exchange, final Collection<Class<?>> types) {
    // used in lazy mode by RESTResourceFinder if cdi beans uses @Context, === initThreadLocal
    EXCHANGE.set(exchange);
    CdiAppContextsService.pushRequestReleasable(CleanUpThreadLocal.INSTANCE);
    for (final Class<?> type : types) {
        if (Request.class.equals(type)) {
            final Request binding = JAXRSUtils.createContextValue(exchange.getInMessage(), null, Request.class);
            ThreadLocalContextManager.REQUEST.set(binding);
        } else if (UriInfo.class.equals(type)) {
            final UriInfo binding = JAXRSUtils.createContextValue(exchange.getInMessage(), null, UriInfo.class);
            ThreadLocalContextManager.URI_INFO.set(binding);
        } else if (HttpHeaders.class.equals(type)) {
            final HttpHeaders binding = JAXRSUtils.createContextValue(exchange.getInMessage(), null, HttpHeaders.class);
            ThreadLocalContextManager.HTTP_HEADERS.set(binding);
        } else if (SecurityContext.class.equals(type)) {
            final SecurityContext binding = JAXRSUtils.createContextValue(exchange.getInMessage(), null, SecurityContext.class);
            ThreadLocalContextManager.SECURITY_CONTEXT.set(binding);
        } else if (ContextResolver.class.equals(type)) {
            final ContextResolver<?> binding = JAXRSUtils.createContextValue(exchange.getInMessage(), type, ContextResolver.class);
            ThreadLocalContextManager.CONTEXT_RESOLVER.set(binding);
        } else if (Providers.class.equals(type)) {
            final Providers providers = JAXRSUtils.createContextValue(exchange.getInMessage(), null, Providers.class);
            ThreadLocalContextManager.PROVIDERS.set(providers);
        } else if (ServletRequest.class.equals(type)) {
            ServletRequest servletRequest = JAXRSUtils.createContextValue(exchange.getInMessage(), null, ServletRequest.class);
            if (servletRequest == null) {
                // probably the case with CXF
                servletRequest = JAXRSUtils.createContextValue(exchange.getInMessage(), null, HttpServletRequest.class);
            }
            ThreadLocalContextManager.SERVLET_REQUEST.set(servletRequest);
        } else if (HttpServletRequest.class.equals(type)) {
            final HttpServletRequest httpServletRequest = JAXRSUtils.createContextValue(exchange.getInMessage(), null, HttpServletRequest.class);
            ThreadLocalContextManager.HTTP_SERVLET_REQUEST.set(httpServletRequest);
        } else if (HttpServletResponse.class.equals(type)) {
            final HttpServletResponse httpServletResponse = JAXRSUtils.createContextValue(exchange.getInMessage(), null, HttpServletResponse.class);
            ThreadLocalContextManager.HTTP_SERVLET_RESPONSE.set(httpServletResponse);
        } else if (ServletConfig.class.equals(type)) {
            final ServletConfig servletConfig = JAXRSUtils.createContextValue(exchange.getInMessage(), null, ServletConfig.class);
            ThreadLocalContextManager.SERVLET_CONFIG.set(servletConfig);
        } else if (Configuration.class.equals(type)) {
            final Configuration config = JAXRSUtils.createContextValue(exchange.getInMessage(), null, Configuration.class);
            ThreadLocalContextManager.CONFIGURATION.set(config);
        } else if (ResourceInfo.class.equals(type)) {
            final ResourceInfo config = JAXRSUtils.createContextValue(exchange.getInMessage(), null, ResourceInfo.class);
            ThreadLocalContextManager.RESOURCE_INFO.set(config);
        } else if (ResourceContext.class.equals(type)) {
            final ResourceContext config = JAXRSUtils.createContextValue(exchange.getInMessage(), null, ResourceContext.class);
            ThreadLocalContextManager.RESOURCE_CONTEXT.set(config);
        } else if (Application.class.equals(type)) {
            final Application config = JAXRSUtils.createContextValue(exchange.getInMessage(), null, Application.class);
            ThreadLocalContextManager.APPLICATION.set(config);
        } else {
            final Message message = exchange.getInMessage();
            final ContextProvider<?> provider = ProviderFactory.getInstance(message).createContextProvider(type, message);
            if (provider != null) {
                final Object value = provider.createContext(message);
                Map<String, Object> map = ThreadLocalContextManager.OTHERS.get();
                if (map == null) {
                    map = new HashMap<>();
                    ThreadLocalContextManager.OTHERS.set(map);
                }
                map.put(type.getName(), value);
            }
        }
    }
}
Also used : HttpHeaders(jakarta.ws.rs.core.HttpHeaders) HttpServletRequest(jakarta.servlet.http.HttpServletRequest) ServletRequest(jakarta.servlet.ServletRequest) OperationResourceInfo(org.apache.cxf.jaxrs.model.OperationResourceInfo) ResourceInfo(jakarta.ws.rs.container.ResourceInfo) ClassResourceInfo(org.apache.cxf.jaxrs.model.ClassResourceInfo) ResourceContext(jakarta.ws.rs.container.ResourceContext) Configuration(jakarta.ws.rs.core.Configuration) Message(org.apache.cxf.message.Message) HashMap(java.util.HashMap) HttpServletRequest(jakarta.servlet.http.HttpServletRequest) Request(jakarta.ws.rs.core.Request) ServletRequest(jakarta.servlet.ServletRequest) ServletConfig(jakarta.servlet.ServletConfig) HttpServletResponse(jakarta.servlet.http.HttpServletResponse) ContextProvider(org.apache.cxf.jaxrs.ext.ContextProvider) Providers(jakarta.ws.rs.ext.Providers) HttpServletRequest(jakarta.servlet.http.HttpServletRequest) SecurityContext(jakarta.ws.rs.core.SecurityContext) Application(jakarta.ws.rs.core.Application) HashMap(java.util.HashMap) Map(java.util.Map) UriInfo(jakarta.ws.rs.core.UriInfo)

Example 9 with Request

use of jakarta.ws.rs.core.Request in project mycore by MyCoRe-Org.

the class MCRRestObjects method listObjects.

@GET
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON + ";charset=UTF-8" })
@MCRCacheControl(maxAge = @MCRCacheControl.Age(time = 1, unit = TimeUnit.HOURS), sMaxAge = @MCRCacheControl.Age(time = 1, unit = TimeUnit.HOURS))
@Operation(summary = "Lists all objects in this repository", responses = @ApiResponse(content = @Content(array = @ArraySchema(schema = @Schema(implementation = MCRObjectIDDate.class)))), tags = MCRRestUtils.TAG_MYCORE_OBJECT)
@XmlElementWrapper(name = "mycoreobjects")
@JacksonFeatures(serializationDisable = { SerializationFeature.WRITE_DATES_AS_TIMESTAMPS })
public Response listObjects() throws IOException {
    Date lastModified = new Date(MCRXMLMetadataManager.instance().getLastModified());
    Optional<Response> cachedResponse = MCRRestUtils.getCachedResponse(request, lastModified);
    if (cachedResponse.isPresent()) {
        return cachedResponse.get();
    }
    List<MCRRestObjectIDDate> idDates = MCRXMLMetadataManager.instance().listObjectDates().stream().filter(oid -> !oid.getId().contains("_derivate_")).map(x -> new MCRRestObjectIDDate(x)).collect(Collectors.toList());
    return Response.ok(new GenericEntity<List<MCRRestObjectIDDate>>(idDates) {
    }).lastModified(lastModified).build();
}
Also used : Response(jakarta.ws.rs.core.Response) ApiResponse(io.swagger.v3.oas.annotations.responses.ApiResponse) Context(jakarta.ws.rs.core.Context) MCRStreamContent(org.mycore.common.content.MCRStreamContent) Date(java.util.Date) MCRRequireTransaction(org.mycore.restapi.annotations.MCRRequireTransaction) FileTime(java.nio.file.attribute.FileTime) MCRContentAbstractWriter(org.mycore.restapi.converter.MCRContentAbstractWriter) GET(jakarta.ws.rs.GET) Path(jakarta.ws.rs.Path) Document(org.jdom2.Document) MCRAccessControlExposeHeaders(org.mycore.restapi.annotations.MCRAccessControlExposeHeaders) XSI_NAMESPACE(org.mycore.common.MCRConstants.XSI_NAMESPACE) JDOMException(org.jdom2.JDOMException) Map(java.util.Map) RequestBody(io.swagger.v3.oas.annotations.parameters.RequestBody) MCRXMLMetadataManager(org.mycore.datamodel.common.MCRXMLMetadataManager) URI(java.net.URI) MCRStringContent(org.mycore.common.content.MCRStringContent) Produces(jakarta.ws.rs.Produces) PARAM_MCRID(org.mycore.restapi.v2.MCRRestAuthorizationFilter.PARAM_MCRID) JacksonFeatures(com.fasterxml.jackson.jakarta.rs.annotation.JacksonFeatures) Schema(io.swagger.v3.oas.annotations.media.Schema) Consumes(jakarta.ws.rs.Consumes) MCRMetadataManager(org.mycore.datamodel.metadata.MCRMetadataManager) NotFoundException(jakarta.ws.rs.NotFoundException) MCRContent(org.mycore.common.content.MCRContent) POST(jakarta.ws.rs.POST) BufferedImage(java.awt.image.BufferedImage) ExampleObject(io.swagger.v3.oas.annotations.media.ExampleObject) MCRPath(org.mycore.datamodel.niofs.MCRPath) Collection(java.util.Collection) MCRPersistenceException(org.mycore.common.MCRPersistenceException) MCRConfiguration2(org.mycore.common.config.MCRConfiguration2) MCRCategoryID(org.mycore.datamodel.classifications2.MCRCategoryID) Collectors(java.util.stream.Collectors) FileNotFoundException(java.io.FileNotFoundException) ForbiddenException(jakarta.ws.rs.ForbiddenException) UncheckedIOException(java.io.UncheckedIOException) Objects(java.util.Objects) Parameter(io.swagger.v3.oas.annotations.Parameter) MCRCoreVersion(org.mycore.common.MCRCoreVersion) XmlElementWrapper(jakarta.xml.bind.annotation.XmlElementWrapper) List(java.util.List) Logger(org.apache.logging.log4j.Logger) OpenAPIDefinition(io.swagger.v3.oas.annotations.OpenAPIDefinition) MediaType(jakarta.ws.rs.core.MediaType) MCRObjectID(org.mycore.datamodel.metadata.MCRObjectID) MCRParams(org.mycore.restapi.annotations.MCRParams) SAXException(org.xml.sax.SAXException) Tag(io.swagger.v3.oas.annotations.tags.Tag) Annotation(java.lang.annotation.Annotation) MCRCategoryDAOFactory(org.mycore.datamodel.classifications2.MCRCategoryDAOFactory) Optional(java.util.Optional) MCRActiveLinkException(org.mycore.datamodel.common.MCRActiveLinkException) MCRCacheControl(org.mycore.frontend.jersey.MCRCacheControl) ServletContext(jakarta.servlet.ServletContext) DELETE(jakarta.ws.rs.DELETE) MCRRestObjectIDDate(org.mycore.restapi.v2.model.MCRRestObjectIDDate) Element(org.jdom2.Element) MCRJDOMContent(org.mycore.common.content.MCRJDOMContent) GenericEntity(jakarta.ws.rs.core.GenericEntity) PUT(jakarta.ws.rs.PUT) MCRException(org.mycore.common.MCRException) MCRAccessManager(org.mycore.access.MCRAccessManager) Content(io.swagger.v3.oas.annotations.media.Content) MCRApiDraft(org.mycore.restapi.annotations.MCRApiDraft) Operation(io.swagger.v3.oas.annotations.Operation) Response(jakarta.ws.rs.core.Response) ApiResponse(io.swagger.v3.oas.annotations.responses.ApiResponse) Request(jakarta.ws.rs.core.Request) MCRAccessException(org.mycore.access.MCRAccessException) MCRParam(org.mycore.restapi.annotations.MCRParam) InternalServerErrorException(jakarta.ws.rs.InternalServerErrorException) Header(io.swagger.v3.oas.annotations.headers.Header) TypeUtils(org.apache.commons.lang3.reflect.TypeUtils) MCRObjectIDDate(org.mycore.datamodel.common.MCRObjectIDDate) Files(java.nio.file.Files) BadRequestException(jakarta.ws.rs.BadRequestException) IOException(java.io.IOException) UriInfo(jakarta.ws.rs.core.UriInfo) MCRAbstractMetadataVersion(org.mycore.datamodel.common.MCRAbstractMetadataVersion) TimeUnit(java.util.concurrent.TimeUnit) SAXParseException(org.xml.sax.SAXParseException) ArraySchema(io.swagger.v3.oas.annotations.media.ArraySchema) HttpHeaders(jakarta.ws.rs.core.HttpHeaders) MCRThumbnailGenerator(org.mycore.media.services.MCRThumbnailGenerator) MCRObject(org.mycore.datamodel.metadata.MCRObject) SerializationFeature(com.fasterxml.jackson.databind.SerializationFeature) PathParam(jakarta.ws.rs.PathParam) Collections(java.util.Collections) LogManager(org.apache.logging.log4j.LogManager) MCRXMLParserFactory(org.mycore.common.xml.MCRXMLParserFactory) InputStream(java.io.InputStream) MCRRestObjectIDDate(org.mycore.restapi.v2.model.MCRRestObjectIDDate) List(java.util.List) Date(java.util.Date) MCRRestObjectIDDate(org.mycore.restapi.v2.model.MCRRestObjectIDDate) MCRObjectIDDate(org.mycore.datamodel.common.MCRObjectIDDate) MCRCacheControl(org.mycore.frontend.jersey.MCRCacheControl) Produces(jakarta.ws.rs.Produces) JacksonFeatures(com.fasterxml.jackson.jakarta.rs.annotation.JacksonFeatures) GET(jakarta.ws.rs.GET) Operation(io.swagger.v3.oas.annotations.Operation) XmlElementWrapper(jakarta.xml.bind.annotation.XmlElementWrapper)

Example 10 with Request

use of jakarta.ws.rs.core.Request in project mycore by MyCoRe-Org.

the class MCRRestObjects method getThumbnail.

private Response getThumbnail(String id, int size, String ext) {
    List<MCRPath> mainDocs = MCRMetadataManager.getDerivateIds(MCRObjectID.getInstance(id), 1, TimeUnit.MINUTES).stream().filter(d -> MCRAccessManager.checkDerivateContentPermission(d, MCRAccessManager.PERMISSION_READ)).map(d -> {
        String nameOfMainFile = MCRMetadataManager.retrieveMCRDerivate(d).getDerivate().getInternals().getMainDoc();
        return nameOfMainFile.isEmpty() ? null : MCRPath.getPath(d.toString(), '/' + nameOfMainFile);
    }).filter(Objects::nonNull).collect(Collectors.toList());
    if (mainDocs.isEmpty()) {
        throw new NotFoundException();
    }
    for (MCRPath mainDoc : mainDocs) {
        Optional<MCRThumbnailGenerator> thumbnailGenerator = THUMBNAIL_GENERATORS.stream().filter(g -> g.matchesFileType(context.getMimeType(mainDoc.getFileName().toString()), mainDoc)).findFirst();
        if (thumbnailGenerator.isPresent()) {
            try {
                FileTime lastModified = Files.getLastModifiedTime(mainDoc);
                Date lastModifiedDate = new Date(lastModified.toMillis());
                Optional<Response> cachedResponse = MCRRestUtils.getCachedResponse(request, lastModifiedDate);
                return cachedResponse.orElseGet(() -> {
                    Optional<BufferedImage> thumbnail = null;
                    try {
                        thumbnail = thumbnailGenerator.get().getThumbnail(mainDoc, size);
                    } catch (IOException e) {
                        throw new UncheckedIOException(e);
                    }
                    return thumbnail.map(b -> {
                        String type = "image/png";
                        if ("jpg".equals(ext) || "jpeg".equals(ext)) {
                            type = "image/jpeg";
                        }
                        return Response.ok(b).lastModified(lastModifiedDate).type(type).build();
                    }).orElseGet(() -> Response.status(Response.Status.NOT_FOUND).build());
                });
            } catch (FileNotFoundException e) {
                // try another mainDoc if present
                continue;
            } catch (IOException e) {
                throw new InternalServerErrorException(e);
            } catch (UncheckedIOException e) {
                throw new InternalServerErrorException(e.getCause());
            }
        }
    }
    throw new NotFoundException();
}
Also used : Context(jakarta.ws.rs.core.Context) MCRStreamContent(org.mycore.common.content.MCRStreamContent) Date(java.util.Date) MCRRequireTransaction(org.mycore.restapi.annotations.MCRRequireTransaction) FileTime(java.nio.file.attribute.FileTime) MCRContentAbstractWriter(org.mycore.restapi.converter.MCRContentAbstractWriter) GET(jakarta.ws.rs.GET) Path(jakarta.ws.rs.Path) Document(org.jdom2.Document) MCRAccessControlExposeHeaders(org.mycore.restapi.annotations.MCRAccessControlExposeHeaders) XSI_NAMESPACE(org.mycore.common.MCRConstants.XSI_NAMESPACE) JDOMException(org.jdom2.JDOMException) Map(java.util.Map) RequestBody(io.swagger.v3.oas.annotations.parameters.RequestBody) MCRXMLMetadataManager(org.mycore.datamodel.common.MCRXMLMetadataManager) URI(java.net.URI) MCRStringContent(org.mycore.common.content.MCRStringContent) Produces(jakarta.ws.rs.Produces) PARAM_MCRID(org.mycore.restapi.v2.MCRRestAuthorizationFilter.PARAM_MCRID) JacksonFeatures(com.fasterxml.jackson.jakarta.rs.annotation.JacksonFeatures) Schema(io.swagger.v3.oas.annotations.media.Schema) Consumes(jakarta.ws.rs.Consumes) MCRMetadataManager(org.mycore.datamodel.metadata.MCRMetadataManager) NotFoundException(jakarta.ws.rs.NotFoundException) MCRContent(org.mycore.common.content.MCRContent) POST(jakarta.ws.rs.POST) BufferedImage(java.awt.image.BufferedImage) ExampleObject(io.swagger.v3.oas.annotations.media.ExampleObject) MCRPath(org.mycore.datamodel.niofs.MCRPath) Collection(java.util.Collection) MCRPersistenceException(org.mycore.common.MCRPersistenceException) MCRConfiguration2(org.mycore.common.config.MCRConfiguration2) MCRCategoryID(org.mycore.datamodel.classifications2.MCRCategoryID) Collectors(java.util.stream.Collectors) FileNotFoundException(java.io.FileNotFoundException) ForbiddenException(jakarta.ws.rs.ForbiddenException) UncheckedIOException(java.io.UncheckedIOException) Objects(java.util.Objects) Parameter(io.swagger.v3.oas.annotations.Parameter) MCRCoreVersion(org.mycore.common.MCRCoreVersion) XmlElementWrapper(jakarta.xml.bind.annotation.XmlElementWrapper) List(java.util.List) Logger(org.apache.logging.log4j.Logger) OpenAPIDefinition(io.swagger.v3.oas.annotations.OpenAPIDefinition) MediaType(jakarta.ws.rs.core.MediaType) MCRObjectID(org.mycore.datamodel.metadata.MCRObjectID) MCRParams(org.mycore.restapi.annotations.MCRParams) SAXException(org.xml.sax.SAXException) Tag(io.swagger.v3.oas.annotations.tags.Tag) Annotation(java.lang.annotation.Annotation) MCRCategoryDAOFactory(org.mycore.datamodel.classifications2.MCRCategoryDAOFactory) Optional(java.util.Optional) MCRActiveLinkException(org.mycore.datamodel.common.MCRActiveLinkException) MCRCacheControl(org.mycore.frontend.jersey.MCRCacheControl) ServletContext(jakarta.servlet.ServletContext) DELETE(jakarta.ws.rs.DELETE) MCRRestObjectIDDate(org.mycore.restapi.v2.model.MCRRestObjectIDDate) Element(org.jdom2.Element) MCRJDOMContent(org.mycore.common.content.MCRJDOMContent) GenericEntity(jakarta.ws.rs.core.GenericEntity) PUT(jakarta.ws.rs.PUT) MCRException(org.mycore.common.MCRException) MCRAccessManager(org.mycore.access.MCRAccessManager) Content(io.swagger.v3.oas.annotations.media.Content) MCRApiDraft(org.mycore.restapi.annotations.MCRApiDraft) Operation(io.swagger.v3.oas.annotations.Operation) Response(jakarta.ws.rs.core.Response) ApiResponse(io.swagger.v3.oas.annotations.responses.ApiResponse) Request(jakarta.ws.rs.core.Request) MCRAccessException(org.mycore.access.MCRAccessException) MCRParam(org.mycore.restapi.annotations.MCRParam) InternalServerErrorException(jakarta.ws.rs.InternalServerErrorException) Header(io.swagger.v3.oas.annotations.headers.Header) TypeUtils(org.apache.commons.lang3.reflect.TypeUtils) MCRObjectIDDate(org.mycore.datamodel.common.MCRObjectIDDate) Files(java.nio.file.Files) BadRequestException(jakarta.ws.rs.BadRequestException) IOException(java.io.IOException) UriInfo(jakarta.ws.rs.core.UriInfo) MCRAbstractMetadataVersion(org.mycore.datamodel.common.MCRAbstractMetadataVersion) TimeUnit(java.util.concurrent.TimeUnit) SAXParseException(org.xml.sax.SAXParseException) ArraySchema(io.swagger.v3.oas.annotations.media.ArraySchema) HttpHeaders(jakarta.ws.rs.core.HttpHeaders) MCRThumbnailGenerator(org.mycore.media.services.MCRThumbnailGenerator) MCRObject(org.mycore.datamodel.metadata.MCRObject) SerializationFeature(com.fasterxml.jackson.databind.SerializationFeature) PathParam(jakarta.ws.rs.PathParam) Collections(java.util.Collections) LogManager(org.apache.logging.log4j.LogManager) MCRXMLParserFactory(org.mycore.common.xml.MCRXMLParserFactory) InputStream(java.io.InputStream) MCRThumbnailGenerator(org.mycore.media.services.MCRThumbnailGenerator) FileNotFoundException(java.io.FileNotFoundException) NotFoundException(jakarta.ws.rs.NotFoundException) FileNotFoundException(java.io.FileNotFoundException) FileTime(java.nio.file.attribute.FileTime) UncheckedIOException(java.io.UncheckedIOException) UncheckedIOException(java.io.UncheckedIOException) IOException(java.io.IOException) Date(java.util.Date) MCRRestObjectIDDate(org.mycore.restapi.v2.model.MCRRestObjectIDDate) MCRObjectIDDate(org.mycore.datamodel.common.MCRObjectIDDate) BufferedImage(java.awt.image.BufferedImage) Response(jakarta.ws.rs.core.Response) ApiResponse(io.swagger.v3.oas.annotations.responses.ApiResponse) InternalServerErrorException(jakarta.ws.rs.InternalServerErrorException) MCRPath(org.mycore.datamodel.niofs.MCRPath)

Aggregations

Request (jakarta.ws.rs.core.Request)16 Response (jakarta.ws.rs.core.Response)11 UriInfo (jakarta.ws.rs.core.UriInfo)9 List (java.util.List)9 HttpHeaders (jakarta.ws.rs.core.HttpHeaders)8 Map (java.util.Map)8 NotFoundException (jakarta.ws.rs.NotFoundException)7 IOException (java.io.IOException)7 ResourceContext (jakarta.ws.rs.container.ResourceContext)6 Providers (jakarta.ws.rs.ext.Providers)6 HashMap (java.util.HashMap)6 ContainerRequestFilter (jakarta.ws.rs.container.ContainerRequestFilter)4 ArrayList (java.util.ArrayList)4 HashSet (java.util.HashSet)4 Iterator (java.util.Iterator)4 Set (java.util.Set)4 CompletionException (java.util.concurrent.CompletionException)4 Consumer (java.util.function.Consumer)4 PreMatchContainerRequestContext (org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext)4 Cleanable (org.jboss.resteasy.plugins.server.Cleanable)4