org.jboss.resteasy.plugins.interceptors.encoding
Class ContentEncodingHeaderInterceptor

java.lang.Object
  extended by org.jboss.resteasy.plugins.interceptors.encoding.ContentEncodingHeaderInterceptor
All Implemented Interfaces:
MessageBodyWriterInterceptor
Direct Known Subclasses:
ClientContentEncodingHeaderInterceptor, ServerContentEncodingHeaderInterceptor

public abstract class ContentEncodingHeaderInterceptor
extends java.lang.Object
implements MessageBodyWriterInterceptor

Sets the content-encoding header based on applied @ContentEncoding meta-annotation

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  java.lang.String encoding
           
 
Constructor Summary
ContentEncodingHeaderInterceptor()
           
 
Method Summary
protected  boolean hasEncodingAnnotation(java.lang.annotation.Annotation[] annotations)
           
 void write(MessageBodyWriterContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

encoding

protected java.lang.String encoding
Constructor Detail

ContentEncodingHeaderInterceptor

public ContentEncodingHeaderInterceptor()
Method Detail

hasEncodingAnnotation

protected boolean hasEncodingAnnotation(java.lang.annotation.Annotation[] annotations)

write

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


Copyright © 2009. All Rights Reserved.