Class MissingJsonBodyInterceptor

  • All Implemented Interfaces:
    javax.ws.rs.ext.ReaderInterceptor

    @Priority(0)
    public class MissingJsonBodyInterceptor
    extends Object
    implements javax.ws.rs.ext.ReaderInterceptor
    This class ensures that improperly formatted request bodies will return the a 400 http code.
    Author:
    Daniel Bernstein Date: Oct 12, 2015
    • Constructor Detail

      • MissingJsonBodyInterceptor

        public MissingJsonBodyInterceptor()
    • Method Detail

      • aroundReadFrom

        public Object aroundReadFrom​(javax.ws.rs.ext.ReaderInterceptorContext context)
                              throws IOException,
                                     javax.ws.rs.WebApplicationException
        Specified by:
        aroundReadFrom in interface javax.ws.rs.ext.ReaderInterceptor
        Throws:
        IOException
        javax.ws.rs.WebApplicationException