org.jboss.resteasy.plugins.providers.multipart
Class XopWithMultipartRelatedJAXBProvider

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.AbstractEntityProvider<T>
      extended by org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBProvider<java.lang.Object>
          extended by org.jboss.resteasy.plugins.providers.multipart.XopWithMultipartRelatedJAXBProvider
All Implemented Interfaces:
MessageBodyReader<java.lang.Object>, MessageBodyWriter<java.lang.Object>

public class XopWithMultipartRelatedJAXBProvider
extends AbstractJAXBProvider<java.lang.Object>

A special JAXB Provider. It is not a real provider, it is only used as a helper class inside XopWithMultipartRelatedReader and XopWithMultipartRelatedWriter.

Version:
$Revision: 1 $
Author:
Attila Kiraly

Field Summary
 
Fields inherited from class org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBProvider
providers
 
Constructor Summary
XopWithMultipartRelatedJAXBProvider(Providers providers)
           
 
Method Summary
protected  boolean isReadWritable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
          FIXME Comment this
 java.lang.Object readFrom(java.lang.Class<java.lang.Object> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream, MultipartRelatedInput xopPackage)
           
 void writeTo(java.lang.Object t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, MultipartRelatedOutput xopPackage)
           
 
Methods inherited from class org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBProvider
decorateMarshaller, decorateUnmarshaller, findJAXBContext, getCharset, getMarshaller, isReadable, isWriteable, readFrom, setCharset, writeTo
 
Methods inherited from class org.jboss.resteasy.plugins.providers.AbstractEntityProvider
getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XopWithMultipartRelatedJAXBProvider

public XopWithMultipartRelatedJAXBProvider(Providers providers)
Method Detail

isReadWritable

protected boolean isReadWritable(java.lang.Class<?> type,
                                 java.lang.reflect.Type genericType,
                                 java.lang.annotation.Annotation[] annotations,
                                 MediaType mediaType)
Description copied from class: AbstractJAXBProvider
FIXME Comment this

Specified by:
isReadWritable in class AbstractJAXBProvider<java.lang.Object>
Returns:

readFrom

public java.lang.Object readFrom(java.lang.Class<java.lang.Object> type,
                                 java.lang.reflect.Type genericType,
                                 java.lang.annotation.Annotation[] annotations,
                                 MediaType mediaType,
                                 MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
                                 java.io.InputStream entityStream,
                                 MultipartRelatedInput xopPackage)
                          throws java.io.IOException
Throws:
java.io.IOException

writeTo

public void writeTo(java.lang.Object t,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    MediaType mediaType,
                    MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
                    MultipartRelatedOutput xopPackage)
             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.