org.jboss.resteasy.plugins.cache.server
Class ServerCacheInterceptor

java.lang.Object
  extended by org.jboss.resteasy.plugins.cache.server.ServerCacheInterceptor
All Implemented Interfaces:
MessageBodyWriterInterceptor

public class ServerCacheInterceptor
extends Object
implements MessageBodyWriterInterceptor

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  ServerCache cache
           
protected  HttpRequest request
           
protected  Request validation
           
 
Constructor Summary
ServerCacheInterceptor(ServerCache cache)
           
 
Method Summary
static String byteArrayToHexString(byte[] bytes)
           
protected  String createHash(byte[] entity)
           
 void write(MessageBodyWriterContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected ServerCache cache

request

@Context
protected HttpRequest request

validation

@Context
protected Request validation
Constructor Detail

ServerCacheInterceptor

public ServerCacheInterceptor(ServerCache cache)
Method Detail

byteArrayToHexString

public static String byteArrayToHexString(byte[] bytes)

createHash

protected String createHash(byte[] entity)

write

public void write(MessageBodyWriterContext context)
           throws IOException,
                  WebApplicationException
Specified by:
write in interface MessageBodyWriterInterceptor
Throws:
IOException
WebApplicationException


Copyright © 2012. All Rights Reserved.