Am unable to find the way to convert StreamSource, SAXSource, DOMSource and Document Object to the User Entity. I have the following code.
Server Side:
@Path("/userResource")
public class UserResource {
@POST
@Path("StreamSource")
public StreamSource getStreamSource(StreamSource streamSource) {
return streamSource;
}
@POST
@Path("SAXSource")
public SAXSource getSAXSource(SAXSource saxSource) {
return saxSource;
}
@POST
@Path("DOMSource")
public DOMSource getDOMSource(DOMSource domSource) {
return domSource;
}
@POST
@Path("Document")
public Document getDocument(Document document) {
return document;
}
}
User Bean is send from Jersey Client API and in return its working properly. Just not getting how should i access the StreamSource, SAXSource, DOMSource and Document Object on Server Side.
Is there any API available for conversion ?