public interface ODataWriter
Modifier and Type | Method and Description |
---|---|
InputStream |
writeEntities(Collection<ClientEntity> entities,
ContentType contentType)
Writes a collection of OData entities.
|
InputStream |
writeEntity(ClientEntity entity,
ContentType format)
Serializes a single OData entity.
|
InputStream |
writeLink(ClientLink link,
ContentType format)
Writes an OData link.
|
InputStream |
writeProperty(ClientProperty property,
ContentType format)
Writes a single OData entity property.
|
InputStream |
writeReference(ResWrap<URI> reference,
ContentType format)
Writes a entity reference
|
InputStream writeEntities(Collection<ClientEntity> entities, ContentType contentType) throws ODataSerializerException
entities
- entities to be serialized.contentType
- serialization format.ODataSerializerException
InputStream writeEntity(ClientEntity entity, ContentType format) throws ODataSerializerException
entity
- entity to be serialized.contentType
- serialization format.ODataSerializerException
InputStream writeProperty(ClientProperty property, ContentType format) throws ODataSerializerException
property
- entity property to be serialized.contentType
- serialization format.ODataSerializerException
InputStream writeLink(ClientLink link, ContentType format) throws ODataSerializerException
link
- link to be serialized.contentType
- serialization format.ODataSerializerException
InputStream writeReference(ResWrap<URI> reference, ContentType format) throws ODataSerializerException
reference
- reference to be serializedcontentType
- serialization formatODataSerializerException
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.