浏览 2210 次
|
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
|---|---|
| 作者 | 正文 |
|
最后更新时间:2007-03-29
我想,这部分是此框架的精华之一了,而且学习此部分的代码,应该非常有助于我们开展其他AJAX后台框架(如DWR),乃至xml<->javabeans框架(如xstream)的代码学习工作。
声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
|
|
| 返回顶楼 | |
|
最后更新时间:2007-03-29
均为protocol下的类图,各位先参考。
|
|
| 返回顶楼 | |
|
最后更新时间:2007-03-29
我通过Basic的例子,关注simpleService.randomComplexUser的marshal过程,以分析协议对复杂对象的解析和处理。
下面是返回的XML例子: <buffalo-reply> <map> <type>net.buffalo.demo.simple.ComplexUser</type> <string>name</string> <map> <type>net.buffalo.demo.simple.Name</type> <string>firstName</string> <string>John</string> <string>middleName</string> <string>M</string> <string>familyName</string> <string>Smith</string> </map> <string>friends</string> <list> <type>[net.buffalo.demo.simple.ComplexUser</type> <length>2</length> <map> <type>net.buffalo.demo.simple.ComplexUser</type> <string>name</string> <map> <type>net.buffalo.demo.simple.Name</type> <string>firstName</string> <string>Friend</string> <string>middleName</string> <string>H</string> <string>familyName</string> <string>Johnson</string> </map> <string>friends</string> <list> <type>[net.buffalo.demo.simple.ComplexUser</type> <length>2</length> <ref>0</ref> <map> <type>net.buffalo.demo.simple.ComplexUser</type> <string>name</string> <map> <type>net.buffalo.demo.simple.Name</type> <string>firstName</string> <string>Michael</string> <string>middleName</string> <string>J</string> <string>familyName</string> <string>Jordon</string> </map> <string>friends</string> <list> <type>[net.buffalo.demo.simple.ComplexUser</type> <length>2</length> <ref>3</ref> <ref>0</ref> </list> </map> </list> </map> <ref>6</ref> </list> </map> </buffalo-reply> |
|
| 返回顶楼 | |
|
最后更新时间:2007-03-29
Buffalo.BOCLASS的设计和考虑让人惊喜,学习中……
|
|
| 返回顶楼 | |


