org.odata4j.format.json
Class JsonRequestEntryFormatWriter
java.lang.Object
org.odata4j.format.json.JsonFormatWriter<Entry>
org.odata4j.format.json.JsonRequestEntryFormatWriter
- All Implemented Interfaces:
- FormatWriter<Entry>
public class JsonRequestEntryFormatWriter
- extends JsonFormatWriter<Entry>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonRequestEntryFormatWriter
public JsonRequestEntryFormatWriter(String jsonpCallback)
getContentType
public String getContentType()
- Description copied from interface:
FormatWriter
- Recover the MIME content type for the stream
- Specified by:
getContentType
in interface FormatWriter<Entry>
- Overrides:
getContentType
in class JsonFormatWriter<Entry>
- Returns:
- the MIME content type to be used for the content of this stream
write
public void write(UriInfo uriInfo,
Writer w,
Entry target)
- Description copied from interface:
FormatWriter
- Write an object to the formatted version of the stream
- Specified by:
write
in interface FormatWriter<Entry>
- Overrides:
write
in class JsonFormatWriter<Entry>
- Parameters:
uriInfo
- the base uri of the entity documentsw
- the underlying "stream" to write totarget
- the object to be written
writeContent
protected void writeContent(UriInfo uriInfo,
JsonWriter jw,
Entry target)
- Description copied from class:
JsonFormatWriter
- A strategy method to actually write content objects
- Specified by:
writeContent
in class JsonFormatWriter<Entry>
- Parameters:
uriInfo
- the base URI that indicates where in the schema we arejw
- the JSON writer objecttarget
- the content value to be written
http://odata4j.org