org.apache.stanbol.entityhub.jersey.writers
Class JettisonWriter
java.lang.Object
org.apache.stanbol.entityhub.jersey.writers.JettisonWriter
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
public class JettisonWriter
- extends java.lang.Object
- implements javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
|
Method Summary |
long |
getSize(java.lang.Object result,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
void |
writeTo(java.lang.Object value,
java.lang.Class<?> doNotUse,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.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 |
DEFAULT_ENCODING
public static final java.lang.String DEFAULT_ENCODING
- See Also:
- Constant Field Values
JettisonWriter
public JettisonWriter()
getSize
public long getSize(java.lang.Object result,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
isWriteable
public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
writeTo
public void writeTo(java.lang.Object value,
java.lang.Class<?> doNotUse,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream)
throws java.io.IOException,
javax.ws.rs.WebApplicationException
- Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.