com.sun.jersey.json.impl.provider.entity
Class JSONObjectProvider
java.lang.Object
com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider<org.codehaus.jettison.json.JSONObject>
com.sun.jersey.json.impl.provider.entity.JSONObjectProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<org.codehaus.jettison.json.JSONObject>, javax.ws.rs.ext.MessageBodyWriter<org.codehaus.jettison.json.JSONObject>
public class JSONObjectProvider
- extends AbstractMessageReaderWriterProvider<org.codehaus.jettison.json.JSONObject>
- Author:
- japod
|
Method Summary |
boolean |
isReadable(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)
|
org.codehaus.jettison.json.JSONObject |
readFrom(java.lang.Class<org.codehaus.jettison.json.JSONObject> type,
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.String> httpHeaders,
java.io.InputStream entityStream)
|
void |
writeTo(org.codehaus.jettison.json.JSONObject t,
java.lang.Class<?> type,
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 |
JSONObjectProvider
public JSONObjectProvider()
isReadable
public boolean isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
readFrom
public org.codehaus.jettison.json.JSONObject readFrom(java.lang.Class<org.codehaus.jettison.json.JSONObject> type,
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.String> httpHeaders,
java.io.InputStream entityStream)
throws java.io.IOException
- Throws:
java.io.IOException
isWriteable
public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
writeTo
public void writeTo(org.codehaus.jettison.json.JSONObject t,
java.lang.Class<?> type,
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
- Throws:
java.io.IOException
Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved.