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