public class

JsonRequestEntryFormatWriter

extends JsonFormatWriter<T>
java.lang.Object
   ↳ org.odata4j.format.json.JsonFormatWriter<T>
     ↳ org.odata4j.format.json.JsonRequestEntryFormatWriter

Summary

[Expand]
Inherited Fields
From class org.odata4j.format.json.JsonFormatWriter
Public Constructors
JsonRequestEntryFormatWriter(String jsonpCallback, ODataVersion version)
Public Methods
String getContentType()
Recover the MIME content type for the stream
void write(UriInfo uriInfo, Writer w, Entry target)
Write an object to the formatted version of the stream
Protected Methods
void writeContent(UriInfo uriInfo, JsonWriter jw, Entry target)
A strategy method to actually write content objects
[Expand]
Inherited Methods
From class org.odata4j.format.json.JsonFormatWriter
From class java.lang.Object
From interface org.odata4j.format.FormatWriter

Public Constructors

public JsonRequestEntryFormatWriter (String jsonpCallback, ODataVersion version)

Parameters
jsonpCallback
version

Public Methods

public String getContentType ()

Recover the MIME content type for the stream

Returns
  • the MIME content type to be used for the content of this stream

public void write (UriInfo uriInfo, Writer w, Entry target)

Write an object to the formatted version of the stream

Parameters
uriInfo The base uri of the entity documents
w The underlying "stream" to write to
target The object to be written

Protected Methods

protected void writeContent (UriInfo uriInfo, JsonWriter jw, Entry target)

A strategy method to actually write content objects

Parameters
uriInfo The base URI that indicates where in the schema we are
jw The JSON writer object
target The content value to be written