org.glassfish.jersey.examples.httppatch
Class PatchingInterceptor
java.lang.Object
org.glassfish.jersey.examples.httppatch.PatchingInterceptor
- All Implemented Interfaces:
- javax.ws.rs.ext.ReaderInterceptor
@PATCH
public class PatchingInterceptor
- extends Object
- implements javax.ws.rs.ext.ReaderInterceptor
JAX-RS reader interceptor that implements server-side PATCH support.
- Author:
- Gerard Davison (gerard.davison at oracle.com), Marek Potociar (marek.potociar at oracle.com)
|
Constructor Summary |
PatchingInterceptor(javax.ws.rs.core.UriInfo uriInfo,
org.glassfish.jersey.message.MessageBodyWorkers workers)
PatchingInterceptor injection constructor. |
|
Method Summary |
Object |
aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext readerInterceptorContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATCH_MEDIA_TYPE
public static final String PATCH_MEDIA_TYPE
- Supported PATCH data format.
- See Also:
- Constant Field Values
PatchingInterceptor
public PatchingInterceptor(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
org.glassfish.jersey.message.MessageBodyWorkers workers)
PatchingInterceptor injection constructor.
- Parameters:
uriInfo - javax.ws.rs.core.UriInfo proxy instance.workers - MessageBodyWorkers message body workers.
aroundReadFrom
public Object aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext readerInterceptorContext)
throws IOException,
javax.ws.rs.WebApplicationException
- Specified by:
aroundReadFrom in interface javax.ws.rs.ext.ReaderInterceptor
- Throws:
IOException
javax.ws.rs.WebApplicationException
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.