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 java.lang.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 java.lang.String byteArrayToHexString(byte[] bytes)
           
protected  java.lang.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 java.lang.String byteArrayToHexString(byte[] bytes)

createHash

protected java.lang.String createHash(byte[] entity)

write

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


Copyright © 2010. All Rights Reserved.