org.odata4j.format.json
Class JsonRequestEntryFormatWriter

java.lang.Object
  extended by org.odata4j.format.json.JsonFormatWriter<Entry>
      extended by org.odata4j.format.json.JsonRequestEntryFormatWriter
All Implemented Interfaces:
FormatWriter<Entry>

public class JsonRequestEntryFormatWriter
extends JsonFormatWriter<Entry>


Constructor Summary
JsonRequestEntryFormatWriter(String jsonpCallback)
           
 
Method Summary
 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  void writeContent(UriInfo uriInfo, JsonWriter jw, Entry target)
          A strategy method to actually write content objects
 
Methods inherited from class org.odata4j.format.json.JsonFormatWriter
getJsonpCallback, writeCollection, writeComplexObject, writeLinks, writeOEntity, writeOProperties, writeProperty, writeRequestLink, writeResponseLink, writeValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonRequestEntryFormatWriter

public JsonRequestEntryFormatWriter(String jsonpCallback)
Method Detail

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 documents
w - the underlying "stream" to write to
target - 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 are
jw - the JSON writer object
target - the content value to be written


http://odata4j.org