com.sun.jersey.moxy
Class MoxyMessageBodyWorker

java.lang.Object
  extended by com.sun.jersey.moxy.MoxyMessageBodyWorker
All Implemented Interfaces:
MessageBodyReader, MessageBodyWriter
Direct Known Subclasses:
MoxyListMessageBodyWorker

@Provider
public class MoxyMessageBodyWorker
extends java.lang.Object
implements MessageBodyWriter, MessageBodyReader

Author:
Jakub Podlesak

Nested Class Summary
static class MoxyMessageBodyWorker.JaxbDollType
           
 
Constructor Summary
MoxyMessageBodyWorker(MessageBodyWorkers mbw, FeaturesAndProperties fap)
           
 
Method Summary
 long getSize(java.lang.Object t, java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
           
 boolean isReadable(java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
           
 boolean isWriteable(java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
           
 java.lang.Object readFrom(java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap httpHeaders, java.io.InputStream entityStream)
           
 void writeTo(java.lang.Object t, java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap httpHeaders, java.io.OutputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoxyMessageBodyWorker

public MoxyMessageBodyWorker(@Context
                             MessageBodyWorkers mbw,
                             @Context
                             FeaturesAndProperties fap)
Method Detail

isWriteable

public boolean isWriteable(java.lang.Class type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] annotations,
                           MediaType mediaType)
Specified by:
isWriteable in interface MessageBodyWriter

getSize

public long getSize(java.lang.Object t,
                    java.lang.Class type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    MediaType mediaType)
Specified by:
getSize in interface MessageBodyWriter

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 httpHeaders,
                    java.io.OutputStream entityStream)
             throws java.io.IOException,
                    WebApplicationException
Specified by:
writeTo in interface MessageBodyWriter
Throws:
java.io.IOException
WebApplicationException

isReadable

public boolean isReadable(java.lang.Class type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations,
                          MediaType mediaType)
Specified by:
isReadable in interface MessageBodyReader

readFrom

public java.lang.Object readFrom(java.lang.Class type,
                                 java.lang.reflect.Type genericType,
                                 java.lang.annotation.Annotation[] annotations,
                                 MediaType mediaType,
                                 MultivaluedMap httpHeaders,
                                 java.io.InputStream entityStream)
                          throws java.io.IOException,
                                 WebApplicationException
Specified by:
readFrom in interface MessageBodyReader
Throws:
java.io.IOException
WebApplicationException


Copyright © 2012 Oracle Corporation. All Rights Reserved.