How can I reject requests that come to RESTEasy JAX-RS resource according the request body content?

Solution Verified - Updated -


  • What resources RESTEasy has if we want to reject some requests based in some rule? For example, what should we do if we want to reject all requests with a determinate text in the request body?


  • JBoss Enterprise Application Platform (EAP) 5.x
  • JBoss Enterprise Application Platform (EAP) 6.x
  • RESTEasy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content