| .. | .. |
|---|
| 9 | 9 | import java.util.Set; |
|---|
| 10 | 10 | |
|---|
| 11 | 11 | import jakarta.annotation.Priority; |
|---|
| 12 | +import jakarta.enterprise.context.ApplicationScoped; |
|---|
| 12 | 13 | import jakarta.inject.Inject; |
|---|
| 13 | 14 | import jakarta.persistence.EntityManager; |
|---|
| 14 | 15 | import jakarta.servlet.http.HttpServletRequest; |
|---|
| .. | .. |
|---|
| 53 | 54 | * Last reviewed by JRA on Oct 5, 2025. |
|---|
| 54 | 55 | */ |
|---|
| 55 | 56 | @Provider |
|---|
| 57 | +@ApplicationScoped |
|---|
| 56 | 58 | @Priority(Priorities.AUTHENTICATION) |
|---|
| 57 | 59 | public class RequestsInterceptor implements ContainerRequestFilter, WriterInterceptor { |
|---|
| 58 | 60 | |
|---|
| .. | .. |
|---|
| 82 | 84 | @Override |
|---|
| 83 | 85 | public void filter(ContainerRequestContext requestContext) throws IOException { |
|---|
| 84 | 86 | |
|---|
| 87 | + log.info("RequestsInterceptor instance={}", this); |
|---|
| 88 | + log.info("Injected tokenHelper={}", tokenHelper); |
|---|
| 89 | + log.info("Injected cache={}", cache); |
|---|
| 90 | + log.info("Injected em={}", em); |
|---|
| 91 | + |
|---|
| 85 | 92 | Method method = resourceInfo != null ? resourceInfo.getResourceMethod() : null; |
|---|
| 86 | 93 | if (method == null) { |
|---|
| 87 | 94 | log.warn("RequestsInterceptor: resource method is null"); |
|---|