use of org.apache.abdera.model.Service in project datawave by NationalSecurityAgency.
the class AtomMessageBodyWriter method writeTo.
@Override
public void writeTo(Object message, Class<?> clazz, Type type, Annotation[] annotations, MediaType media, MultivaluedMap<String, Object> httpHeaders, OutputStream out) throws IOException, WebApplicationException {
if (Entry.class.isAssignableFrom(clazz)) {
Entry entry = (Entry) message;
entry.writeTo(out);
} else if (Feed.class.isAssignableFrom(clazz)) {
Feed feed = (Feed) message;
feed.writeTo(out);
} else if (Service.class.isAssignableFrom(clazz)) {
Service service = (Service) message;
service.writeTo(out);
} else if (Categories.class.isAssignableFrom(clazz)) {
Categories categories = (Categories) message;
categories.writeTo(out);
}
}
Aggregations