org.glassfish.jersey.examples.sysprops
Class PropertiesWriter
java.lang.Object
org.glassfish.jersey.examples.sysprops.PropertiesWriter
- All Implemented Interfaces:
- MessageBodyWriter<Set<String>>
public class PropertiesWriter
- extends Object
- implements MessageBodyWriter<Set<String>>
- Author:
- Martin Matula (martin.matula at oracle.com)
|
Method Summary |
long |
getSize(Set<String> s,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
void |
writeTo(Set<String> s,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesWriter
public PropertiesWriter()
isWriteable
public boolean isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
- Specified by:
isWriteable in interface MessageBodyWriter<Set<String>>
getSize
public long getSize(Set<String> s,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
- Specified by:
getSize in interface MessageBodyWriter<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:
writeTo in interface MessageBodyWriter<Set<String>>
- Throws:
IOException
WebApplicationException
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.