ASSIGNED - bug 71: Extend capabilities of web services
https://www.argeo.org/bugzilla/show_bug.cgi?id=71
git-svn-id: https://svn.argeo.org/slc/trunk@1966
4cfe0d0a-d680-48aa-b62c-
e0a02a3f76cc
+ @SuppressWarnings("unchecked")
protected <T> T unmarshal(StringResult xml) throws Exception {
return (T) unmarshaller.unmarshal(new StringSource(xml.toString()));
}
protected <T> T unmarshal(StringResult xml) throws Exception {
return (T) unmarshaller.unmarshal(new StringSource(xml.toString()));
}
+ @SuppressWarnings("unchecked")
protected <T> T marshUnmarsh(Object obj) throws Exception {
StringResult xml = marshalAndValidate(obj);
protected <T> T marshUnmarsh(Object obj) throws Exception {
StringResult xml = marshalAndValidate(obj);
+ return (T)unmarshal(xml);