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

org.jboss.resteasy.plugins.providers
Class DefaultTextPlain

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.DefaultTextPlain
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader, javax.ws.rs.ext.MessageBodyWriter

@Provider
public class DefaultTextPlain
extends Object
implements javax.ws.rs.ext.MessageBodyReader, javax.ws.rs.ext.MessageBodyWriter

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
DefaultTextPlain()
           
 
Method Summary
 long getSize(Object o, Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isReadable(Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isWriteable(Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 Object readFrom(Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap httpHeaders, InputStream entityStream)
           
 void writeTo(Object o, Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap httpHeaders, OutputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTextPlain

public DefaultTextPlain()
Method Detail

isReadable

public boolean isReadable(Class type,
                          Type genericType,
                          Annotation[] annotations,
                          javax.ws.rs.core.MediaType mediaType)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader

readFrom

public Object readFrom(Class type,
                       Type genericType,
                       Annotation[] annotations,
                       javax.ws.rs.core.MediaType mediaType,
                       javax.ws.rs.core.MultivaluedMap httpHeaders,
                       InputStream entityStream)
                throws IOException,
                       javax.ws.rs.WebApplicationException
Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader
Throws:
IOException
javax.ws.rs.WebApplicationException

isWriteable

public boolean isWriteable(Class type,
                           Type genericType,
                           Annotation[] annotations,
                           javax.ws.rs.core.MediaType mediaType)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter

getSize

public long getSize(Object o,
                    Class type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter

writeTo

public void writeTo(Object o,
                    Class type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap httpHeaders,
                    OutputStream entityStream)
             throws IOException,
                    javax.ws.rs.WebApplicationException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter
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.