@ConstrainedTo(value=SERVER) public class ServerCacheInterceptor extends Object implements javax.ws.rs.ext.WriterInterceptor
Modifier and Type | Field and Description |
---|---|
protected ServerCache |
cache |
protected HttpRequest |
request |
protected javax.ws.rs.core.Request |
validation |
Constructor and Description |
---|
ServerCacheInterceptor(ServerCache cache) |
Modifier and Type | Method and Description |
---|---|
void |
aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) |
static String |
byteArrayToHexString(byte[] bytes) |
protected String |
createHash(byte[] entity) |
protected ServerCache cache
@Context protected HttpRequest request
@Context protected javax.ws.rs.core.Request validation
public ServerCacheInterceptor(ServerCache cache)
public static String byteArrayToHexString(byte[] bytes)
protected String createHash(byte[] entity)
public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) throws IOException, javax.ws.rs.WebApplicationException
aroundWriteTo
in interface javax.ws.rs.ext.WriterInterceptor
IOException
javax.ws.rs.WebApplicationException
Copyright © 2015 JBoss by Red Hat. All rights reserved.