Class MissingJsonBodyInterceptor
- java.lang.Object
-
- org.duracloud.snapshot.bridge.rest.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 Summary
Constructors Constructor Description MissingJsonBodyInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectaroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext context)
-
-
-
Method Detail
-
aroundReadFrom
public Object aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext context) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
aroundReadFromin interfacejavax.ws.rs.ext.ReaderInterceptor- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
-