@Provider public class WarpResteasyInterceptor extends Object implements org.jboss.resteasy.spi.interception.PreProcessInterceptor, org.jboss.resteasy.spi.interception.PostProcessInterceptor, org.jboss.resteasy.spi.interception.MessageBodyReaderInterceptor, org.jboss.resteasy.spi.interception.MessageBodyWriterInterceptor
PreProcessInterceptor, PostProcessInterceptor MessageBodyReaderInterceptor and MessageBodyWriterInterceptor in order to capture the execution state within
the server.
Implementation captures the state and stores it the RestContext which is being bound to
executing request.
Thread-safety:This class can be considered as a thread safe. The class is mutable, but since
it's using ThreadLocal field for storing it's context it can be considered as a thread safe.
| Constructor and Description |
|---|
WarpResteasyInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
postProcess(org.jboss.resteasy.core.ServerResponse serverResponse) |
org.jboss.resteasy.core.ServerResponse |
preProcess(org.jboss.resteasy.spi.HttpRequest httpRequest,
org.jboss.resteasy.core.ResourceMethod resourceMethod) |
Object |
read(org.jboss.resteasy.spi.interception.MessageBodyReaderContext context) |
void |
setSecurityContext(javax.ws.rs.core.SecurityContext securityContext)
Sets the security context.
|
void |
write(org.jboss.resteasy.spi.interception.MessageBodyWriterContext context) |
@Context public void setSecurityContext(javax.ws.rs.core.SecurityContext securityContext)
securityContext - the security contextpublic org.jboss.resteasy.core.ServerResponse preProcess(org.jboss.resteasy.spi.HttpRequest httpRequest,
org.jboss.resteasy.core.ResourceMethod resourceMethod)
throws org.jboss.resteasy.spi.Failure,
javax.ws.rs.WebApplicationException
preProcess in interface org.jboss.resteasy.spi.interception.PreProcessInterceptororg.jboss.resteasy.spi.Failurejavax.ws.rs.WebApplicationExceptionpublic Object read(org.jboss.resteasy.spi.interception.MessageBodyReaderContext context) throws IOException, javax.ws.rs.WebApplicationException
read in interface org.jboss.resteasy.spi.interception.MessageBodyReaderInterceptorIOExceptionjavax.ws.rs.WebApplicationExceptionpublic void postProcess(org.jboss.resteasy.core.ServerResponse serverResponse)
postProcess in interface org.jboss.resteasy.spi.interception.PostProcessInterceptorpublic void write(org.jboss.resteasy.spi.interception.MessageBodyWriterContext context)
throws IOException,
javax.ws.rs.WebApplicationException
write in interface org.jboss.resteasy.spi.interception.MessageBodyWriterInterceptorIOExceptionjavax.ws.rs.WebApplicationExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.