Resteasy JAXB Provider 2.3.6.Final-redhat-1

org.jboss.resteasy.plugins.providers.jaxb
Class AbstractJAXBProvider<T>

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.AbstractEntityProvider<T>
      extended by org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBProvider<T>
Type Parameters:
T -
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<T>, javax.ws.rs.ext.MessageBodyWriter<T>
Direct Known Subclasses:
JAXBElementProvider, JAXBXmlRootElementProvider, JAXBXmlSeeAlsoProvider, JAXBXmlTypeProvider

public abstract class AbstractJAXBProvider<T>
extends AbstractEntityProvider<T>

A AbstractJAXBProvider.

Version:
$Revision:$
Author:
Ryan J. McDonough

Field Summary
protected  javax.ws.rs.ext.Providers providers
           
 
Constructor Summary
AbstractJAXBProvider()
           
 
Method Summary
static Marshaller decorateMarshaller(Class type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, Marshaller marshaller)
           
static Unmarshaller decorateUnmarshaller(Class type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, Unmarshaller marshaller)
           
 JAXBContext findJAXBContext(Class<?> type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, boolean reader)
           
static String getCharset(javax.ws.rs.core.MediaType mediaType)
          FIXME Comment this
protected  Marshaller getMarshaller(Class<?> type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
          FIXME Comment this
 boolean isExpandEntityReferences()
           
 boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
protected abstract  boolean isReadWritable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
          FIXME Comment this
 boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
protected  T processWithoutEntityExpansion(Unmarshaller unmarshaller, InputStream entityStream)
           
 T readFrom(Class<T> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
static void setCharset(javax.ws.rs.core.MediaType mediaType, Marshaller marshaller)
           
 void setExpandEntityReferences(boolean expandEntityReferences)
           
protected  boolean suppressExpandEntityExpansion()
           
 void writeTo(T t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream outputStream)
           
 
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
 

Field Detail

providers

@Context
protected javax.ws.rs.ext.Providers providers
Constructor Detail

AbstractJAXBProvider

public AbstractJAXBProvider()
Method Detail

findJAXBContext

public JAXBContext findJAXBContext(Class<?> type,
                                   Annotation[] annotations,
                                   javax.ws.rs.core.MediaType mediaType,
                                   boolean reader)
                            throws JAXBException
Throws:
JAXBException

decorateMarshaller

public static Marshaller decorateMarshaller(Class type,
                                            Annotation[] annotations,
                                            javax.ws.rs.core.MediaType mediaType,
                                            Marshaller marshaller)
                                     throws JAXBException
Throws:
JAXBException

decorateUnmarshaller

public static Unmarshaller decorateUnmarshaller(Class type,
                                                Annotation[] annotations,
                                                javax.ws.rs.core.MediaType mediaType,
                                                Unmarshaller marshaller)
                                         throws JAXBException
Throws:
JAXBException

readFrom

public T readFrom(Class<T> type,
                  Type genericType,
                  Annotation[] annotations,
                  javax.ws.rs.core.MediaType mediaType,
                  javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
                  InputStream entityStream)
           throws IOException
Throws:
IOException

writeTo

public void writeTo(T t,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
                    OutputStream outputStream)
             throws IOException
Throws:
IOException

getMarshaller

protected Marshaller getMarshaller(Class<?> type,
                                   Annotation[] annotations,
                                   javax.ws.rs.core.MediaType mediaType)
FIXME Comment this

Parameters:
type -
mediaType -
httpHeaders -
Returns:

setCharset

public static void setCharset(javax.ws.rs.core.MediaType mediaType,
                              Marshaller marshaller)
                       throws PropertyException
Throws:
PropertyException

isReadWritable

protected abstract boolean isReadWritable(Class<?> type,
                                          Type genericType,
                                          Annotation[] annotations,
                                          javax.ws.rs.core.MediaType mediaType)
FIXME Comment this

Parameters:
type -
genericType -
annotations -
Returns:

isReadable

public boolean isReadable(Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          javax.ws.rs.core.MediaType mediaType)

isWriteable

public boolean isWriteable(Class<?> type,
                           Type genericType,
                           Annotation[] annotations,
                           javax.ws.rs.core.MediaType mediaType)

getCharset

public static String getCharset(javax.ws.rs.core.MediaType mediaType)
FIXME Comment this

Parameters:
mediaType -
Returns:

isExpandEntityReferences

public boolean isExpandEntityReferences()

setExpandEntityReferences

public void setExpandEntityReferences(boolean expandEntityReferences)

suppressExpandEntityExpansion

protected boolean suppressExpandEntityExpansion()

processWithoutEntityExpansion

protected T processWithoutEntityExpansion(Unmarshaller unmarshaller,
                                          InputStream entityStream)
                                   throws JAXBException
Throws:
JAXBException

Resteasy JAXB Provider 2.3.6.Final-redhat-1

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