Class WriterUtility
java.lang.Object
org.jboss.resteasy.core.messagebody.WriterUtility
Utility for accessing RESTEasy's MessageBodyWrite setup
- Version:
- $Revision: 1 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ResteasyProviderFactoryprivate javax.ws.rs.ext.WriterInterceptor[] -
Constructor Summary
ConstructorsConstructorDescriptionWriterUtility(ResteasyProviderFactory factory, javax.ws.rs.ext.WriterInterceptor[] interceptors) -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringabstract RuntimeExceptioncreateWriterNotFound(Type genericType, javax.ws.rs.core.MediaType mediaType) voiddoWrite(Object toOutput, Class type, Type genericType, javax.ws.rs.core.MediaType mediaType, Annotation[] annotations, javax.ws.rs.core.MultivaluedMap<String, Object> requestHeaders, OutputStream outputStream) voiddoWrite(Object toOutput, Class type, Type genericType, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> requestHeaders, OutputStream os) voiddoWrite(Object toOutput, Class type, javax.ws.rs.core.MediaType mediaType, OutputStream os) voiddoWrite(Object toOutput, javax.ws.rs.core.MediaType mediaType, OutputStream os) voiddoWrite(HttpResponse response, Object toOutput, Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) static byte[]static voidwrite(Object toOutput, javax.ws.rs.core.MediaType mt, OutputStream os)
-
Field Details
-
factory
-
interceptors
private javax.ws.rs.ext.WriterInterceptor[] interceptors
-
-
Constructor Details
-
WriterUtility
public WriterUtility() -
WriterUtility
public WriterUtility(ResteasyProviderFactory factory, javax.ws.rs.ext.WriterInterceptor[] interceptors)
-
-
Method Details
-
asString
- Throws:
IOException
-
getBytes
- Throws:
IOException
-
write
public static void write(Object toOutput, javax.ws.rs.core.MediaType mt, OutputStream os) throws IOException - Throws:
IOException
-
doWrite
public void doWrite(Object toOutput, javax.ws.rs.core.MediaType mediaType, OutputStream os) throws IOException - Throws:
IOException
-
doWrite
public void doWrite(Object toOutput, Class type, javax.ws.rs.core.MediaType mediaType, OutputStream os) throws IOException - Throws:
IOException
-
doWrite
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- Throws:
IOException
-
doWrite
public void doWrite(HttpResponse response, Object toOutput, Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) throws IOException - Throws:
IOException
-
doWrite
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- Throws:
IOException
-
createWriterNotFound
public abstract RuntimeException createWriterNotFound(Type genericType, javax.ws.rs.core.MediaType mediaType)
-