public void writeReadEntitySet(EdmEntityType entityType, EntityCollection entitySet) throws SerializerException { assert (!isClosed()); if (entitySet == null) { writeNotFound(true); return; } if (ContentTypeHelper.isODataMetadataFull(this.responseContentType)) { buildOperations(entityType, entitySet); } // write the whole collection to response this.response.setContent(this.serializer.entityCollection(metadata, entityType, entitySet, this.options) .getContent()); writeOK(responseContentType); close(); }
public void writeReadEntitySet(EdmEntityType entityType, EntityCollection entitySet) throws SerializerException { assert (!isClosed()); if (entitySet == null) { writeNotFound(true); return; } if (ContentTypeHelper.isODataMetadataFull(this.responseContentType)) { buildOperations(entityType, entitySet); } // write the whole collection to response this.response.setContent(this.serializer.entityCollection(metadata, entityType, entitySet, this.options) .getContent()); writeOK(responseContentType); close(); }