org.glassfish.jersey.examples.sysprops
Class PropertiesWriter
java.lang.Object
org.glassfish.jersey.examples.sysprops.PropertiesWriter
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyWriter<Set<String>>
@Produces(value="text/plain")
public class PropertiesWriter
- extends Object
- implements javax.ws.rs.ext.MessageBodyWriter<Set<String>>
- Author:
- Martin Matula (martin.matula at oracle.com)
|
Method Summary |
long |
getSize(Set<String> s,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
void |
writeTo(Set<String> s,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.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,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Set<String>>
getSize
public long getSize(Set<String> s,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Set<String>>
writeTo
public void writeTo(Set<String> s,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException,
javax.ws.rs.WebApplicationException
- Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Set<String>>
- Throws:
IOException
javax.ws.rs.WebApplicationException
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.