Seialization of an HttpResponse/getting the OutputStream
Hi there,
Im developing a REST Service based on JRS. For my Server Im using the org.apache.http Lib, as proposed in the SDK Wiki-examples. One of my resources is a Tree-Structure, which implements java.io.Serializable, and the only way to get RESTful access to it, is responding to GET-request with the serialized version of the tree. Am I right or did i miss something? I domt want to serialize the data file-based, but stream-based. Therefore I need an (Object-)OutputStream attatched to the response. I tried it with org.apache.http.entity.SerializableEntity, but still dont find any OutputStream connected with the response. How do I get the OutputStream? private static TreeNode<TransferInformation> TREE = null; Greetings, Thomas |
Be the first one to answer this question!
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.