org.glassfish.jersey.media.json.internal.entity
Class JsonWithPaddingProvider
java.lang.Object
org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider<JsonWithPadding>
org.glassfish.jersey.media.json.internal.entity.JsonWithPaddingProvider
- All Implemented Interfaces:
- MessageBodyReader<JsonWithPadding>, MessageBodyWriter<JsonWithPadding>
public class JsonWithPaddingProvider
- extends AbstractMessageReaderWriterProvider<JsonWithPadding>
JSON media type message entity provider (reader & writer) for
JsonWithPadding.
- Author:
- Jakub Podlesak, Paul Sandoz
|
Method Summary |
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
|
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
|
JsonWithPadding |
readFrom(java.lang.Class<JsonWithPadding> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
java.io.InputStream entityStream)
|
void |
writeTo(JsonWithPadding t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
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 |
JsonWithPaddingProvider
public JsonWithPaddingProvider()
isReadable
public boolean isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
readFrom
public JsonWithPadding readFrom(java.lang.Class<JsonWithPadding> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
java.io.InputStream entityStream)
throws java.io.IOException,
WebApplicationException
- Throws:
java.io.IOException
WebApplicationException
isWriteable
public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
writeTo
public void writeTo(JsonWithPadding t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream)
throws java.io.IOException,
WebApplicationException
- Throws:
java.io.IOException
WebApplicationException
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.