Class JsonEntityWriter
java.lang.Object
org.codegist.crest.serializer.jackson.JsonEntityWriter
- All Implemented Interfaces:
org.codegist.crest.entity.EntityWriter
Custom jsonentitywriter to add
SomePOJO doSomething(SomePOJO pojo)
.. support to Crest.
See https://groups.google.com/forum/?fromgroups=#!topic/codegist-crest/YWHtkjkR4xs
- Author:
- Marko Kanala
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getContentLength
(org.codegist.crest.io.Request httpRequest) getContentType
(org.codegist.crest.io.Request request) void
writeTo
(org.codegist.crest.io.Request request, OutputStream outputStream)
-
Field Details
-
MIME
- See Also:
-
-
Constructor Details
-
JsonEntityWriter
public JsonEntityWriter(org.codegist.crest.CRestConfig crestConfig)
-
-
Method Details
-
getContentType
- Specified by:
getContentType
in interfaceorg.codegist.crest.entity.EntityWriter
-
getContentLength
public int getContentLength(org.codegist.crest.io.Request httpRequest) - Specified by:
getContentLength
in interfaceorg.codegist.crest.entity.EntityWriter
-
writeTo
public void writeTo(org.codegist.crest.io.Request request, OutputStream outputStream) throws Exception - Specified by:
writeTo
in interfaceorg.codegist.crest.entity.EntityWriter
- Throws:
Exception
-