org.jboss.resteasy.core.messagebody
Class ReaderUtility
java.lang.Object
org.jboss.resteasy.core.messagebody.ReaderUtility
public abstract class ReaderUtility
- extends Object
Utility for accessing RESTEasy's MessageBodyReader setup
- Version:
- $Revision: 1 $
- Author:
- Solomon Duskis
Method Summary |
abstract RuntimeException |
createReaderNotFound(Type genericType,
MediaType mediaType)
|
|
doRead(Class<T> type,
MediaType mediaType,
InputStream is)
|
|
doRead(Class<T> type,
Type genericType,
MediaType mediaType,
Annotation[] annotations,
MultivaluedMap<String,String> requestHeaders,
InputStream inputStream)
|
|
doRead(Class<T> type,
Type genericType,
MediaType mediaType,
MultivaluedMap<String,String> requestHeaders,
InputStream is)
|
Object |
doRead(HttpRequest request,
Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
static
|
read(Class<T> type,
MediaType mediaType,
byte[] buffer)
|
static
|
read(Class<T> type,
MediaType mt,
InputStream is)
|
static
|
read(Class<T> type,
String contentType,
byte[] buffer)
|
static
|
read(Class<T> type,
String contentType,
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,
ReaderInterceptor[] interceptors)
read
public static <T> T read(Class<T> type,
String contentType,
String buffer)
throws IOException
- Throws:
IOException
read
public static <T> T read(Class<T> type,
String contentType,
byte[] buffer)
throws IOException
- Throws:
IOException
read
public static <T> T read(Class<T> type,
MediaType mediaType,
byte[] buffer)
throws IOException
- Throws:
IOException
read
public static <T> T read(Class<T> type,
MediaType mt,
InputStream is)
throws IOException
- Throws:
IOException
doRead
public <T> T doRead(Class<T> type,
MediaType mediaType,
InputStream is)
throws IOException
- Throws:
IOException
doRead
public <T> T doRead(Class<T> type,
Type genericType,
MediaType mediaType,
MultivaluedMap<String,String> requestHeaders,
InputStream is)
throws IOException
- Throws:
IOException
doRead
public Object doRead(HttpRequest request,
Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
throws IOException
- Throws:
IOException
doRead
public <T> T doRead(Class<T> type,
Type genericType,
MediaType mediaType,
Annotation[] annotations,
MultivaluedMap<String,String> requestHeaders,
InputStream inputStream)
throws IOException
- Throws:
IOException
createReaderNotFound
public abstract RuntimeException createReaderNotFound(Type genericType,
MediaType mediaType)
Copyright © 2013. All Rights Reserved.