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
IOException
public static byte[] getBytes(Object toOutput, String contentType) throws IOException
IOException
public static void write(Object toOutput, javax.ws.rs.core.MediaType mt, OutputStream os) throws IOException
IOException
public void doWrite(Object toOutput, javax.ws.rs.core.MediaType mediaType, OutputStream os) throws IOException
IOException
public void doWrite(Object toOutput, Class type, javax.ws.rs.core.MediaType mediaType, OutputStream os) throws IOException
IOException
public 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
IOException
public void doWrite(HttpResponse response, Object toOutput, Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) throws IOException
IOException
public 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
IOException
public abstract RuntimeException createWriterNotFound(Type genericType, javax.ws.rs.core.MediaType mediaType)
Copyright © 2018 JBoss by Red Hat. All rights reserved.