public abstract class DelegateProvider<T>
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<T>, javax.ws.rs.ext.MessageBodyReader<T>
Modifier and Type | Field and Description |
---|---|
private javax.ws.rs.ext.MessageBodyReader<T> |
reader |
private javax.ws.rs.ext.MessageBodyWriter<T> |
writer |
Modifier | Constructor and Description |
---|---|
protected |
DelegateProvider(javax.ws.rs.ext.MessageBodyReader<T> reader,
javax.ws.rs.ext.MessageBodyWriter<T> writer) |
Modifier and Type | Method and Description |
---|---|
long |
getSize(T t,
java.lang.Class<?> rawType,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
private static boolean |
isJaxRs2() |
boolean |
isReadable(java.lang.Class<?> rawType,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(java.lang.Class<?> rawType,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
T |
readFrom(java.lang.Class<T> rawType,
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) |
protected boolean |
shouldThrowNoContentExceptionOnEmptyStreams() |
void |
writeTo(T t,
java.lang.Class<?> rawType,
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) |
private final javax.ws.rs.ext.MessageBodyReader<T> reader
private final javax.ws.rs.ext.MessageBodyWriter<T> writer
public boolean isReadable(java.lang.Class<?> rawType, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<T>
public T readFrom(java.lang.Class<T> rawType, 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
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<T>
java.io.IOException
public long getSize(T t, java.lang.Class<?> rawType, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<T>
public boolean isWriteable(java.lang.Class<?> rawType, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<T>
public void writeTo(T t, java.lang.Class<?> rawType, 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
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<T>
java.io.IOException
protected boolean shouldThrowNoContentExceptionOnEmptyStreams()
private static boolean isJaxRs2()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.