Class AppJavaEntityWriter
java.lang.Object
ee.jakarta.tck.ws.rs.spec.provider.writer.AppJavaEntityWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<EntityForWriter>
@Produces("application/java")
@Provider
public class AppJavaEntityWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<EntityForWriter>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(EntityForWriter t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) static void
setWritable
(boolean bool) void
writeTo
(EntityForWriter t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
AppJavaEntityWriter
public AppJavaEntityWriter()
-
-
Method Details
-
setWritable
public static void setWritable(boolean bool) -
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfacejakarta.ws.rs.ext.MessageBodyWriter<EntityForWriter>
-
getSize
public long getSize(EntityForWriter t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<EntityForWriter>
-
writeTo
public void writeTo(EntityForWriter t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter<EntityForWriter>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-