org.glassfish.jersey.server.internal
Class JsonWithPaddingInterceptor
java.lang.Object
org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor
- All Implemented Interfaces:
- javax.ws.rs.ext.WriterInterceptor
@Priority(value=3000)
public class JsonWithPaddingInterceptor
- extends Object
- implements javax.ws.rs.ext.WriterInterceptor
A WriterInterceptor implementation for JSONP format. This interceptor wraps a JSON stream obtained by a underlying
JSON provider into a callback function that can be defined by the JSONP annotation.
- Author:
- Michal Gajdos (michal.gajdos at oracle.com)
- See Also:
JSONP
|
Method Summary |
void |
aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonWithPaddingInterceptor
public JsonWithPaddingInterceptor()
aroundWriteTo
public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)
throws IOException,
javax.ws.rs.WebApplicationException
- Specified by:
aroundWriteTo in interface javax.ws.rs.ext.WriterInterceptor
- Throws:
IOException
javax.ws.rs.WebApplicationException
Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.