org.jboss.resteasy.core.messagebody
Class WriterUtility
java.lang.Object
org.jboss.resteasy.core.messagebody.WriterUtility
public abstract class WriterUtility
- extends java.lang.Object
Utility for accessing RESTEasy's MessageBodyWrite setup
- Version:
- $Revision: 1 $
- Author:
- Solomon Duskis
Method Summary |
static java.lang.String |
asString(java.lang.Object toOutput,
java.lang.String contentType)
|
abstract java.lang.RuntimeException |
createWriterNotFound(java.lang.reflect.Type genericType,
MediaType mediaType)
|
void |
doWrite(HttpResponse response,
java.lang.Object toOutput,
java.lang.Class type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
|
void |
doWrite(java.lang.Object toOutput,
java.lang.Class type,
MediaType mediaType,
java.io.OutputStream os)
|
void |
doWrite(java.lang.Object toOutput,
java.lang.Class type,
java.lang.reflect.Type genericType,
MediaType mediaType,
java.lang.annotation.Annotation[] annotations,
MultivaluedMap<java.lang.String,java.lang.Object> requestHeaders,
java.io.OutputStream outputStream)
|
void |
doWrite(java.lang.Object toOutput,
java.lang.Class type,
java.lang.reflect.Type genericType,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.Object> requestHeaders,
java.io.OutputStream os)
|
void |
doWrite(java.lang.Object toOutput,
MediaType mediaType,
java.io.OutputStream os)
|
static byte[] |
getBytes(java.lang.Object toOutput,
java.lang.String contentType)
|
static void |
write(java.lang.Object toOutput,
MediaType mt,
java.io.OutputStream os)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WriterUtility
public WriterUtility()
WriterUtility
public WriterUtility(ResteasyProviderFactory factory,
MessageBodyWriterInterceptor[] interceptors)
asString
public static java.lang.String asString(java.lang.Object toOutput,
java.lang.String contentType)
throws java.io.IOException
- Throws:
java.io.IOException
getBytes
public static byte[] getBytes(java.lang.Object toOutput,
java.lang.String contentType)
throws java.io.IOException
- Throws:
java.io.IOException
write
public static void write(java.lang.Object toOutput,
MediaType mt,
java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
doWrite
public void doWrite(java.lang.Object toOutput,
MediaType mediaType,
java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
doWrite
public void doWrite(java.lang.Object toOutput,
java.lang.Class type,
MediaType mediaType,
java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
doWrite
public void doWrite(java.lang.Object toOutput,
java.lang.Class type,
java.lang.reflect.Type genericType,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.Object> requestHeaders,
java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
doWrite
public void doWrite(HttpResponse response,
java.lang.Object toOutput,
java.lang.Class type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
throws java.io.IOException
- Throws:
java.io.IOException
doWrite
public void doWrite(java.lang.Object toOutput,
java.lang.Class type,
java.lang.reflect.Type genericType,
MediaType mediaType,
java.lang.annotation.Annotation[] annotations,
MultivaluedMap<java.lang.String,java.lang.Object> requestHeaders,
java.io.OutputStream outputStream)
throws java.io.IOException
- Throws:
java.io.IOException
createWriterNotFound
public abstract java.lang.RuntimeException createWriterNotFound(java.lang.reflect.Type genericType,
MediaType mediaType)
Copyright © 2009. All Rights Reserved.