com.sun.jersey.json.impl.provider.entity
Class JSONWithPaddingProvider
java.lang.Object
com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider<JSONWithPadding>
com.sun.jersey.json.impl.provider.entity.JSONWithPaddingProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<JSONWithPadding>, javax.ws.rs.ext.MessageBodyWriter<JSONWithPadding>
public class JSONWithPaddingProvider
- extends AbstractMessageReaderWriterProvider<JSONWithPadding>
- Author:
- Jakub.Podlesak@Sun.COM, Paul.Sandoz@Sun.COM
Method Summary |
boolean |
isReadable(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)
|
JSONWithPadding |
readFrom(Class<JSONWithPadding> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
void |
writeTo(JSONWithPadding 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 |
JSONWithPaddingProvider
public JSONWithPaddingProvider()
isReadable
public boolean isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
readFrom
public JSONWithPadding readFrom(Class<JSONWithPadding> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
throws IOException,
javax.ws.rs.WebApplicationException
- Throws:
IOException
javax.ws.rs.WebApplicationException
isWriteable
public boolean isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
writeTo
public void writeTo(JSONWithPadding 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,
javax.ws.rs.WebApplicationException
- Throws:
IOException
javax.ws.rs.WebApplicationException
Copyright © 2011 Oracle Corporation. All Rights Reserved.