org.jboss.resteasy.core.messagebody
Class ReaderUtility
java.lang.Object
org.jboss.resteasy.core.messagebody.ReaderUtility
public abstract class ReaderUtility
- extends java.lang.Object
Utility for accessing RESTEasy's MessageBodyReader setup
- Version:
- $Revision: 1 $
- Author:
- Solomon Duskis
Method Summary |
abstract java.lang.RuntimeException |
createReaderNotFound(java.lang.reflect.Type genericType,
MediaType mediaType)
|
|
doRead(java.lang.Class<T> type,
MediaType mediaType,
java.io.InputStream is)
|
|
doRead(java.lang.Class<T> type,
java.lang.reflect.Type genericType,
MediaType mediaType,
java.lang.annotation.Annotation[] annotations,
MultivaluedMap<java.lang.String,java.lang.String> requestHeaders,
java.io.InputStream inputStream)
|
|
doRead(java.lang.Class<T> type,
java.lang.reflect.Type genericType,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.String> requestHeaders,
java.io.InputStream is)
|
java.lang.Object |
doRead(HttpRequest request,
java.lang.Class type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
|
static
|
read(java.lang.Class<T> type,
MediaType mediaType,
byte[] buffer)
|
static
|
read(java.lang.Class<T> type,
MediaType mt,
java.io.InputStream is)
|
static
|
read(java.lang.Class<T> type,
java.lang.String contentType,
byte[] buffer)
|
static
|
read(java.lang.Class<T> type,
java.lang.String contentType,
java.lang.String buffer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReaderUtility
public ReaderUtility()
ReaderUtility
public ReaderUtility(ResteasyProviderFactory factory,
MessageBodyReaderInterceptor[] interceptors)
read
public static <T> T read(java.lang.Class<T> type,
java.lang.String contentType,
java.lang.String buffer)
throws java.io.IOException
- Throws:
java.io.IOException
read
public static <T> T read(java.lang.Class<T> type,
java.lang.String contentType,
byte[] buffer)
throws java.io.IOException
- Throws:
java.io.IOException
read
public static <T> T read(java.lang.Class<T> type,
MediaType mediaType,
byte[] buffer)
throws java.io.IOException
- Throws:
java.io.IOException
read
public static <T> T read(java.lang.Class<T> type,
MediaType mt,
java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
doRead
public <T> T doRead(java.lang.Class<T> type,
MediaType mediaType,
java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
doRead
public <T> T doRead(java.lang.Class<T> type,
java.lang.reflect.Type genericType,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.String> requestHeaders,
java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
doRead
public java.lang.Object doRead(HttpRequest request,
java.lang.Class type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
throws java.io.IOException
- Throws:
java.io.IOException
doRead
public <T> T doRead(java.lang.Class<T> type,
java.lang.reflect.Type genericType,
MediaType mediaType,
java.lang.annotation.Annotation[] annotations,
MultivaluedMap<java.lang.String,java.lang.String> requestHeaders,
java.io.InputStream inputStream)
throws java.io.IOException
- Throws:
java.io.IOException
createReaderNotFound
public abstract java.lang.RuntimeException createReaderNotFound(java.lang.reflect.Type genericType,
MediaType mediaType)
Copyright © 2010. All Rights Reserved.