public abstract class WriterUtility
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ResteasyProviderFactory |
factory |
private javax.ws.rs.ext.WriterInterceptor[] |
interceptors |
Constructor and Description |
---|
WriterUtility() |
WriterUtility(ResteasyProviderFactory factory,
javax.ws.rs.ext.WriterInterceptor[] interceptors) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
asString(java.lang.Object toOutput,
java.lang.String contentType) |
abstract java.lang.RuntimeException |
createWriterNotFound(java.lang.reflect.Type genericType,
javax.ws.rs.core.MediaType mediaType) |
void |
doWrite(HttpResponse response,
java.lang.Object toOutput,
java.lang.Class type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
doWrite(java.lang.Object toOutput,
java.lang.Class type,
javax.ws.rs.core.MediaType mediaType,
java.io.OutputStream os) |
void |
doWrite(java.lang.Object toOutput,
java.lang.Class type,
java.lang.reflect.Type genericType,
javax.ws.rs.core.MediaType mediaType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.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,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> requestHeaders,
java.io.OutputStream os) |
void |
doWrite(java.lang.Object toOutput,
javax.ws.rs.core.MediaType mediaType,
java.io.OutputStream os) |
static byte[] |
getBytes(java.lang.Object toOutput,
java.lang.String contentType) |
static void |
write(java.lang.Object toOutput,
javax.ws.rs.core.MediaType mt,
java.io.OutputStream os) |
private ResteasyProviderFactory factory
private javax.ws.rs.ext.WriterInterceptor[] interceptors
public WriterUtility()
public WriterUtility(ResteasyProviderFactory factory, javax.ws.rs.ext.WriterInterceptor[] interceptors)
public static java.lang.String asString(java.lang.Object toOutput, java.lang.String contentType) throws java.io.IOException
java.io.IOException
public static byte[] getBytes(java.lang.Object toOutput, java.lang.String contentType) throws java.io.IOException
java.io.IOException
public static void write(java.lang.Object toOutput, javax.ws.rs.core.MediaType mt, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public void doWrite(java.lang.Object toOutput, javax.ws.rs.core.MediaType mediaType, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public void doWrite(java.lang.Object toOutput, java.lang.Class type, javax.ws.rs.core.MediaType mediaType, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public void doWrite(java.lang.Object toOutput, java.lang.Class type, java.lang.reflect.Type genericType, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> requestHeaders, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public void doWrite(HttpResponse response, java.lang.Object toOutput, java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) throws java.io.IOException
java.io.IOException
public void doWrite(java.lang.Object toOutput, java.lang.Class type, java.lang.reflect.Type genericType, javax.ws.rs.core.MediaType mediaType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> requestHeaders, java.io.OutputStream outputStream) throws java.io.IOException
java.io.IOException
public abstract java.lang.RuntimeException createWriterNotFound(java.lang.reflect.Type genericType, javax.ws.rs.core.MediaType mediaType)