0

I'm trying to do a personalised authZ process prior to each api-request.

I'm using JAX-RS/Jersey.

public class AuthorizationRequestFilter implements ContainerRequestFilter {

    @Override
    public void filter(ContainerRequestContext request) throws IOException { 
// How to see JSON payload here?

... 
}

}
Niccaman
  • 392
  • 1
  • 5

1 Answers1

1

request.getEntityStream() will contain an InputStream that represents the body. You can read it there.

John Ament
  • 11,595
  • 1
  • 36
  • 45