org.glassfish.jersey.jettison.internal.entity
Class JettisonObjectProvider
java.lang.Object
org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider<T>
org.glassfish.jersey.jettison.internal.entity.JettisonLowLevelProvider<org.codehaus.jettison.json.JSONObject>
org.glassfish.jersey.jettison.internal.entity.JettisonObjectProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<org.codehaus.jettison.json.JSONObject>, javax.ws.rs.ext.MessageBodyWriter<org.codehaus.jettison.json.JSONObject>
- Direct Known Subclasses:
- JettisonObjectProvider.App, JettisonObjectProvider.General
public class JettisonObjectProvider
- extends JettisonLowLevelProvider<org.codehaus.jettison.json.JSONObject>
Low-level JSON media type message entity provider (reader & writer) for
JSONObject.
- Author:
- Jakub Podlesak (jakub.podlesak at oracle.com)
|
Method Summary |
org.codehaus.jettison.json.JSONObject |
readFrom(Class<org.codehaus.jettison.json.JSONObject> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
void |
writeTo(org.codehaus.jettison.json.JSONObject t,
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 |
readFrom
public org.codehaus.jettison.json.JSONObject readFrom(Class<org.codehaus.jettison.json.JSONObject> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
throws IOException
- Throws:
IOException
writeTo
public void writeTo(org.codehaus.jettison.json.JSONObject t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException
- Throws:
IOException
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.