This project has retired. For details please refer to its
        
        Attic page.
      
org.apache.wink.providers.jettison
Class JettisonJAXBElementProvider
java.lang.Object
   org.apache.wink.common.internal.providers.entity.xml.AbstractJAXBProvider
org.apache.wink.common.internal.providers.entity.xml.AbstractJAXBProvider
       org.apache.wink.providers.jettison.JettisonJAXBElementProvider
org.apache.wink.providers.jettison.JettisonJAXBElementProvider
- All Implemented Interfaces: 
- javax.ws.rs.ext.MessageBodyReader<javax.xml.bind.JAXBElement<?>>, javax.ws.rs.ext.MessageBodyWriter<javax.xml.bind.JAXBElement<?>>
- @Provider
public class JettisonJAXBElementProvider 
- extends org.apache.wink.common.internal.providers.entity.xml.AbstractJAXBProvider- implements javax.ws.rs.ext.MessageBodyReader<javax.xml.bind.JAXBElement<?>>, javax.ws.rs.ext.MessageBodyWriter<javax.xml.bind.JAXBElement<?>>
A Jettison JAXBElement provider. By default, use the BadgerFishConvention.
 Namespace mapping needs to be set if namespaces are used. In Application
 sub-class, use Application.getSingletons() to add to application.
 
| Method Summary | 
|  long | getSize(javax.xml.bind.JAXBElement<?> t,
        java.lang.Class<?> type,
        java.lang.reflect.Type genericType,
        java.lang.annotation.Annotation[] annotations,
        javax.ws.rs.core.MediaType mediaType)
 | 
|  boolean | isReadable(java.lang.Class<?> type,
           java.lang.reflect.Type genericType,
           java.lang.annotation.Annotation[] annotations,
           javax.ws.rs.core.MediaType mediaType)
 | 
|  boolean | isWriteable(java.lang.Class<?> type,
            java.lang.reflect.Type genericType,
            java.lang.annotation.Annotation[] annotations,
            javax.ws.rs.core.MediaType mediaType)
 | 
|  javax.xml.bind.JAXBElement<?> | readFrom(java.lang.Class<javax.xml.bind.JAXBElement<?>> type,
         java.lang.reflect.Type genericType,
         java.lang.annotation.Annotation[] annotations,
         javax.ws.rs.core.MediaType mediaType,
         javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
         java.io.InputStream entityStream)
 | 
|  void | setUseAsReader(boolean isReadable)
 | 
|  void | setUseAsWriter(boolean isWritable)
 | 
|  void | writeTo(javax.xml.bind.JAXBElement<?> t,
        java.lang.Class<?> type,
        java.lang.reflect.Type genericType,
        java.lang.annotation.Annotation[] annotations,
        javax.ws.rs.core.MediaType mediaType,
        javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
        java.io.OutputStream entityStream)
 | 
 
| Methods inherited from class org.apache.wink.common.internal.providers.entity.xml.AbstractJAXBProvider | 
| getEntityToMarshal, getMarshaller, getUnmarshaller, isJAXBElement, isJAXBObject, isSupportedMediaType | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
JettisonJAXBElementProvider
public JettisonJAXBElementProvider()
JettisonJAXBElementProvider
public JettisonJAXBElementProvider(boolean isBadgerFishConventionUsed,
                                   org.codehaus.jettison.mapped.Configuration reader,
                                   org.codehaus.jettison.mapped.Configuration writer)
setUseAsReader
public void setUseAsReader(boolean isReadable)
- 
 
- 
 
setUseAsWriter
public void setUseAsWriter(boolean isWritable)
- 
 
- 
 
isReadable
public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations,
                          javax.ws.rs.core.MediaType mediaType)
- 
- Specified by:
- isReadablein interface- javax.ws.rs.ext.MessageBodyReader<javax.xml.bind.JAXBElement<?>>
 
- 
 
readFrom
public javax.xml.bind.JAXBElement<?> readFrom(java.lang.Class<javax.xml.bind.JAXBElement<?>> type,
                                              java.lang.reflect.Type genericType,
                                              java.lang.annotation.Annotation[] annotations,
                                              javax.ws.rs.core.MediaType mediaType,
                                              javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
                                              java.io.InputStream entityStream)
                                       throws java.io.IOException,
                                              javax.ws.rs.WebApplicationException
- 
- Specified by:
- readFromin interface- javax.ws.rs.ext.MessageBodyReader<javax.xml.bind.JAXBElement<?>>
 
- 
- Throws:
- java.io.IOException
- javax.ws.rs.WebApplicationException
 
getSize
public long getSize(javax.xml.bind.JAXBElement<?> t,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)
- 
- Specified by:
- getSizein interface- javax.ws.rs.ext.MessageBodyWriter<javax.xml.bind.JAXBElement<?>>
 
- 
 
isWriteable
public boolean isWriteable(java.lang.Class<?> type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] annotations,
                           javax.ws.rs.core.MediaType mediaType)
- 
- Specified by:
- isWriteablein interface- javax.ws.rs.ext.MessageBodyWriter<javax.xml.bind.JAXBElement<?>>
 
- 
 
writeTo
public void writeTo(javax.xml.bind.JAXBElement<?> t,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
                    java.io.OutputStream entityStream)
             throws java.io.IOException,
                    javax.ws.rs.WebApplicationException
- 
- Specified by:
- writeToin interface- javax.ws.rs.ext.MessageBodyWriter<javax.xml.bind.JAXBElement<?>>
 
- 
- Throws:
- java.io.IOException
- javax.ws.rs.WebApplicationException
 
Copyright © 2009 The Apache Software Foundation. All Rights Reserved.