public abstract class AbstractAtomProvider<T extends org.apache.abdera.model.Element> extends Object implements javax.ws.rs.ext.MessageBodyWriter<T>, javax.ws.rs.ext.MessageBodyReader<T>
Constructor and Description |
---|
AbstractAtomProvider() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.abdera.writer.Writer |
createWriter(String writerName) |
long |
getSize(T element,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt) |
T |
readFrom(Class<T> clazz,
Type t,
Annotation[] a,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream is) |
void |
setAutodetectCharset(boolean autodetectCharset) |
void |
setFormattedOutput(boolean formattedOutput) |
void |
writeTo(T element,
Class<?> clazz,
Type type,
Annotation[] a,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os) |
public long getSize(T element, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<T extends org.apache.abdera.model.Element>
public void writeTo(T element, Class<?> clazz, Type type, Annotation[] a, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream os) throws IOException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<T extends org.apache.abdera.model.Element>
IOException
protected org.apache.abdera.writer.Writer createWriter(String writerName)
public T readFrom(Class<T> clazz, Type t, Annotation[] a, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream is) throws IOException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<T extends org.apache.abdera.model.Element>
IOException
public void setFormattedOutput(boolean formattedOutput)
public void setAutodetectCharset(boolean autodetectCharset)
Apache CXF