论坛首页 AJAX版 Buffalo

在啃protocol部分,有兴趣的一起来吧,也请mechiland多指点

浏览 1808 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
时间:2007-03-29
我想,这部分是此框架的精华之一了,而且学习此部分的代码,应该非常有助于我们开展其他AJAX后台框架(如DWR),乃至xml<->javabeans框架(如xstream)的代码学习工作。
  • Fdfe2ba5-d7a6-442f-942c-5f01ec4a35e9-thumb
  • 描述: collection
  • 大小: 12.2 KB
  • 查看次数: 22
  • C917d6c8-edcd-4a59-9bd8-01f7ab9e488e-thumb
  • 描述: converters
  • 大小: 12.2 KB
  • 查看次数: 9
   
时间:2007-03-29
均为protocol下的类图,各位先参考。
  • F62f9a94-b2bc-4911-81c3-7ce6df5d9595-thumb
  • 描述: io
  • 大小: 350.6 KB
  • 查看次数: 24
  • 8fe591f7-1130-4592-a09d-5e7b0807c6e0-thumb
  • 描述: map
  • 大小: 133.3 KB
  • 查看次数: 7
  • E4ca6faf-7001-400e-a5f0-29df6088c0f8-thumb
  • 描述: protocal
  • 大小: 234.8 KB
  • 查看次数: 7
   
0 请登录后投票
时间: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>
   
0 请登录后投票
时间:2007-03-29
Buffalo.BOCLASS的设计和考虑让人惊喜,学习中……
   
0 请登录后投票
论坛首页 AJAX版 Buffalo

跳转论坛:
JavaEye推荐