org.odata4j.format.json
Class JsonErrorFormatWriter

java.lang.Object
  extended by org.odata4j.format.json.JsonErrorFormatWriter
All Implemented Interfaces:
FormatWriter<ErrorResponse>

public class JsonErrorFormatWriter
extends Object
implements FormatWriter<ErrorResponse>


Constructor Summary
JsonErrorFormatWriter(String jsonpCallback)
           
 
Method Summary
 String getContentType()
          Recover the MIME content type for the stream
 void write(UriInfo uriInfo, Writer w, ErrorResponse target)
          Write an object to the formatted version of the stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonErrorFormatWriter

public JsonErrorFormatWriter(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<ErrorResponse>
Returns:
the MIME content type to be used for the content of this stream

write

public void write(UriInfo uriInfo,
                  Writer w,
                  ErrorResponse target)
Description copied from interface: FormatWriter
Write an object to the formatted version of the stream

Specified by:
write in interface FormatWriter<ErrorResponse>
Parameters:
uriInfo - the base uri of the entity documents
w - the underlying "stream" to write to
target - the object to be written


http://odata4j.org