org.apache.wink.providers.abdera
Class AbderaAtomEntryProvider
java.lang.Object
org.apache.wink.providers.abdera.AbderaAtomEntryProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<org.apache.abdera.model.Entry>, javax.ws.rs.ext.MessageBodyWriter<org.apache.abdera.model.Entry>
@Provider
public class AbderaAtomEntryProvider
- extends Object
- implements javax.ws.rs.ext.MessageBodyReader<org.apache.abdera.model.Entry>, javax.ws.rs.ext.MessageBodyWriter<org.apache.abdera.model.Entry>
Method Summary |
long |
getSize(org.apache.abdera.model.Entry entry,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
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)
|
org.apache.abdera.model.Entry |
readFrom(Class<org.apache.abdera.model.Entry> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
void |
writeTo(org.apache.abdera.model.Entry entry,
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 |
AbderaAtomEntryProvider
public AbderaAtomEntryProvider()
getSize
public long getSize(org.apache.abdera.model.Entry entry,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.abdera.model.Entry>
isWriteable
public boolean isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.abdera.model.Entry>
writeTo
public void writeTo(org.apache.abdera.model.Entry entry,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException
- Specified by:
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.abdera.model.Entry>
- Throws:
IOException
isReadable
public boolean isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<org.apache.abdera.model.Entry>
readFrom
public org.apache.abdera.model.Entry readFrom(Class<org.apache.abdera.model.Entry> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
throws IOException
- Specified by:
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<org.apache.abdera.model.Entry>
- Throws:
IOException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.