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