RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

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 Object
implements MessageBodyWriterInterceptor

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

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  String encoding
           
 
Constructor Summary
ContentEncodingHeaderInterceptor()
           
 
Method Summary
protected  boolean hasEncodingAnnotation(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 String encoding
Constructor Detail

ContentEncodingHeaderInterceptor

public ContentEncodingHeaderInterceptor()
Method Detail

hasEncodingAnnotation

protected boolean hasEncodingAnnotation(Annotation[] annotations)

write

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

RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.