|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.internal.JsonWithPaddingInterceptor
public class JsonWithPaddingInterceptor
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.
JSONP| Constructor Summary | |
|---|---|
JsonWithPaddingInterceptor(javax.inject.Provider<ContainerRequest> containerRequestProvider)
|
|
| Method Summary | |
|---|---|
void |
aroundWriteTo(WriterInterceptorContext context)
Interceptor method wrapping calls to MessageBodyWriter.writeTo(T, java.lang.Class>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject public JsonWithPaddingInterceptor(javax.inject.Provider<ContainerRequest> containerRequestProvider)
| Method Detail |
|---|
public void aroundWriteTo(WriterInterceptorContext context)
throws java.io.IOException,
WebApplicationException
WriterInterceptorMessageBodyWriter.writeTo(T, java.lang.Class>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.OutputStream) .
The parameters of the wrapped method called are available from context.
Implementations of this method SHOULD explicitly call
WriterInterceptorContext.proceed() to invoke the next interceptor in the chain,
and ultimately the wrapped method.
aroundWriteTo in interface WriterInterceptorcontext - invocation context.
java.io.IOException - if an IO error arises.
WebApplicationException - thrown by wrapped method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||