public abstract class WriterUtility extends Object
Constructor and Description |
---|
WriterUtility() |
WriterUtility(ResteasyProviderFactory factory,
WriterInterceptor[] interceptors) |
Modifier and Type | Method and Description |
---|---|
static String |
asString(Object toOutput,
String contentType) |
abstract RuntimeException |
createWriterNotFound(Type genericType,
MediaType mediaType) |
void |
doWrite(HttpResponse response,
Object toOutput,
Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
void |
doWrite(Object toOutput,
Class type,
MediaType mediaType,
OutputStream os) |
void |
doWrite(Object toOutput,
Class type,
Type genericType,
MediaType mediaType,
Annotation[] annotations,
MultivaluedMap<String,Object> requestHeaders,
OutputStream outputStream) |
void |
doWrite(Object toOutput,
Class type,
Type genericType,
MediaType mediaType,
MultivaluedMap<String,Object> requestHeaders,
OutputStream os) |
void |
doWrite(Object toOutput,
MediaType mediaType,
OutputStream os) |
static byte[] |
getBytes(Object toOutput,
String contentType) |
static void |
write(Object toOutput,
MediaType mt,
OutputStream os) |
public WriterUtility()
public WriterUtility(ResteasyProviderFactory factory, WriterInterceptor[] interceptors)
public static String asString(Object toOutput, String contentType) throws IOException
IOException
public static byte[] getBytes(Object toOutput, String contentType) throws IOException
IOException
public static void write(Object toOutput, MediaType mt, OutputStream os) throws IOException
IOException
public void doWrite(Object toOutput, MediaType mediaType, OutputStream os) throws IOException
IOException
public void doWrite(Object toOutput, Class type, MediaType mediaType, OutputStream os) throws IOException
IOException
public void doWrite(Object toOutput, Class type, Type genericType, MediaType mediaType, MultivaluedMap<String,Object> requestHeaders, OutputStream os) throws IOException
IOException
public void doWrite(HttpResponse response, Object toOutput, Class type, Type genericType, Annotation[] annotations, MediaType mediaType) throws IOException
IOException
public void doWrite(Object toOutput, Class type, Type genericType, MediaType mediaType, Annotation[] annotations, MultivaluedMap<String,Object> requestHeaders, OutputStream outputStream) throws IOException
IOException
public abstract RuntimeException createWriterNotFound(Type genericType, MediaType mediaType)
Copyright © 2020 JBoss by Red Hat. All rights reserved.