Class PropertiesWriter
- java.lang.Object
-
- org.glassfish.jersey.examples.sysprops.PropertiesWriter
-
- All Implemented Interfaces:
MessageBodyWriter<Set<String>>
@Produces("text/plain") public class PropertiesWriter extends Object implements MessageBodyWriter<Set<String>>
- Author:
- Martin Matula
-
-
Constructor Summary
Constructors Constructor Description PropertiesWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(Set<String> s, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)voidwriteTo(Set<String> s, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
- Specified by:
isWriteablein interfaceMessageBodyWriter<Set<String>>
-
getSize
public long getSize(Set<String> s, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
- Specified by:
getSizein interfaceMessageBodyWriter<Set<String>>
-
writeTo
public void writeTo(Set<String> s, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException
- Specified by:
writeToin interfaceMessageBodyWriter<Set<String>>- Throws:
IOExceptionWebApplicationException
-
-