Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
07fba932
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
07fba932
编写于
3月 27, 2009
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updated to Hessian 3.2.1 (remaining compatible with Hessian 3.1.3 and above)
上级
81e683b3
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
281 addition
and
283 deletion
+281
-283
org.springframework.web/ivy.xml
org.springframework.web/ivy.xml
+1
-1
org.springframework.web/src/main/java/org/springframework/remoting/caucho/HessianExporter.java
.../org/springframework/remoting/caucho/HessianExporter.java
+32
-33
org.springframework.web/src/main/java/org/springframework/remoting/caucho/HessianServiceExporter.java
...ringframework/remoting/caucho/HessianServiceExporter.java
+2
-3
org.springframework.web/src/main/java/org/springframework/remoting/caucho/SimpleHessianServiceExporter.java
...amework/remoting/caucho/SimpleHessianServiceExporter.java
+2
-2
org.springframework.web/web.iml
org.springframework.web/web.iml
+244
-244
未找到文件。
org.springframework.web/ivy.xml
浏览文件 @
07fba932
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</publications>
</publications>
<dependencies>
<dependencies>
<dependency
org=
"com.caucho"
name=
"com.springsource.com.caucho"
rev=
"3.
1.5
"
<dependency
org=
"com.caucho"
name=
"com.springsource.com.caucho"
rev=
"3.
2.1
"
conf=
"optional, hessian, burlap->compile"
/>
conf=
"optional, hessian, burlap->compile"
/>
<dependency
org=
"javax.el"
name=
"com.springsource.javax.el"
rev=
"1.0.0"
conf=
"provided, el->compile"
/>
<dependency
org=
"javax.el"
name=
"com.springsource.javax.el"
rev=
"1.0.0"
conf=
"provided, el->compile"
/>
<dependency
org=
"javax.faces"
name=
"com.springsource.javax.faces"
rev=
"1.2.0.08"
<dependency
org=
"javax.faces"
name=
"com.springsource.javax.faces"
rev=
"1.2.0.08"
...
...
org.springframework.web/src/main/java/org/springframework/remoting/caucho/HessianExporter.java
浏览文件 @
07fba932
/*
/*
* Copyright 2002-200
8
the original author or authors.
* Copyright 2002-200
9
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -21,11 +21,13 @@ import java.io.InputStream;
...
@@ -21,11 +21,13 @@ import java.io.InputStream;
import
java.io.OutputStream
;
import
java.io.OutputStream
;
import
java.io.PrintWriter
;
import
java.io.PrintWriter
;
import
com.caucho.hessian.io.AbstractHessianInput
;
import
com.caucho.hessian.io.AbstractHessianOutput
;
import
com.caucho.hessian.io.AbstractHessianOutput
;
import
com.caucho.hessian.io.Hessian2Input
;
import
com.caucho.hessian.io.Hessian2Input
;
import
com.caucho.hessian.io.Hessian2Output
;
import
com.caucho.hessian.io.Hessian2Output
;
import
com.caucho.hessian.io.HessianDebugInputStream
;
import
com.caucho.hessian.io.HessianDebugInputStream
;
import
com.caucho.hessian.io.HessianDebugOutputStream
;
import
com.caucho.hessian.io.HessianDebugOutputStream
;
import
com.caucho.hessian.io.HessianInput
;
import
com.caucho.hessian.io.HessianOutput
;
import
com.caucho.hessian.io.HessianOutput
;
import
com.caucho.hessian.io.SerializerFactory
;
import
com.caucho.hessian.io.SerializerFactory
;
import
com.caucho.hessian.server.HessianSkeleton
;
import
com.caucho.hessian.server.HessianSkeleton
;
...
@@ -34,7 +36,6 @@ import org.apache.commons.logging.Log;
...
@@ -34,7 +36,6 @@ import org.apache.commons.logging.Log;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.remoting.support.RemoteExporter
;
import
org.springframework.remoting.support.RemoteExporter
;
import
org.springframework.util.Assert
;
import
org.springframework.util.Assert
;
import
org.springframework.util.ClassUtils
;
import
org.springframework.util.CommonsLogWriter
;
import
org.springframework.util.CommonsLogWriter
;
/**
/**
...
@@ -43,7 +44,7 @@ import org.springframework.util.CommonsLogWriter;
...
@@ -43,7 +44,7 @@ import org.springframework.util.CommonsLogWriter;
* <p>Hessian is a slim, binary RPC protocol.
* <p>Hessian is a slim, binary RPC protocol.
* For information on Hessian, see the
* For information on Hessian, see the
* <a href="http://www.caucho.com/hessian">Hessian website</a>.
* <a href="http://www.caucho.com/hessian">Hessian website</a>.
* This exporter requires Hessian 3.
0.20
or above.
* This exporter requires Hessian 3.
1.3
or above.
*
*
* @author Juergen Hoeller
* @author Juergen Hoeller
* @since 2.5.1
* @since 2.5.1
...
@@ -53,9 +54,6 @@ import org.springframework.util.CommonsLogWriter;
...
@@ -53,9 +54,6 @@ import org.springframework.util.CommonsLogWriter;
*/
*/
public
class
HessianExporter
extends
RemoteExporter
implements
InitializingBean
{
public
class
HessianExporter
extends
RemoteExporter
implements
InitializingBean
{
private
static
final
boolean
debugOutputStreamAvailable
=
ClassUtils
.
isPresent
(
"com.caucho.hessian.io.HessianDebugOutputStream"
,
HessianExporter
.
class
.
getClassLoader
());
private
SerializerFactory
serializerFactory
=
new
SerializerFactory
();
private
SerializerFactory
serializerFactory
=
new
SerializerFactory
();
private
Log
debugLogger
;
private
Log
debugLogger
;
...
@@ -129,31 +127,43 @@ public class HessianExporter extends RemoteExporter implements InitializingBean
...
@@ -129,31 +127,43 @@ public class HessianExporter extends RemoteExporter implements InitializingBean
if
(
this
.
debugLogger
!=
null
&&
this
.
debugLogger
.
isDebugEnabled
())
{
if
(
this
.
debugLogger
!=
null
&&
this
.
debugLogger
.
isDebugEnabled
())
{
PrintWriter
debugWriter
=
new
PrintWriter
(
new
CommonsLogWriter
(
this
.
debugLogger
));
PrintWriter
debugWriter
=
new
PrintWriter
(
new
CommonsLogWriter
(
this
.
debugLogger
));
isToUse
=
new
HessianDebugInputStream
(
inputStream
,
debugWriter
);
isToUse
=
new
HessianDebugInputStream
(
inputStream
,
debugWriter
);
if
(
debugOutputStreamAvailable
)
{
osToUse
=
new
HessianDebugOutputStream
(
outputStream
,
debugWriter
);
osToUse
=
DebugStreamFactory
.
createDebugOutputStream
(
outputStream
,
debugWriter
);
}
}
}
Hessian2Input
in
=
new
Hessian2Input
(
isToUse
);
int
code
=
isToUse
.
read
();
if
(
this
.
serializerFactory
!=
null
)
{
int
major
;
in
.
setSerializerFactory
(
this
.
serializerFactory
);
int
minor
;
}
int
code
=
in
.
read
();
AbstractHessianInput
in
;
if
(
code
!=
'c'
)
{
AbstractHessianOutput
out
;
throw
new
IOException
(
"expected 'c' in hessian input at "
+
code
);
}
AbstractHessianOutput
out
=
null
;
if
(
code
==
'H'
)
{
int
major
=
in
.
read
();
major
=
isToUse
.
read
();
int
minor
=
in
.
read
();
minor
=
isToUse
.
read
();
if
(
major
!=
0x02
)
{
throw
new
IOException
(
"Version "
+
major
+
"."
+
minor
+
" is not understood"
);
}
in
=
new
Hessian2Input
(
isToUse
);
out
=
new
Hessian2Output
(
osToUse
);
in
.
readCall
();
}
else
if
(
code
==
'c'
)
{
major
=
isToUse
.
read
();
minor
=
isToUse
.
read
();
in
=
new
HessianInput
(
isToUse
);
if
(
major
>=
2
)
{
if
(
major
>=
2
)
{
out
=
new
Hessian2Output
(
osToUse
);
out
=
new
Hessian2Output
(
osToUse
);
}
}
else
{
else
{
out
=
new
HessianOutput
(
osToUse
);
out
=
new
HessianOutput
(
osToUse
);
}
}
}
else
{
throw
new
IOException
(
"Expected 'H' (Hessian 2.0) or 'c' (Hessian 1.0) in hessian input at "
+
code
);
}
if
(
this
.
serializerFactory
!=
null
)
{
if
(
this
.
serializerFactory
!=
null
)
{
in
.
setSerializerFactory
(
this
.
serializerFactory
);
out
.
setSerializerFactory
(
this
.
serializerFactory
);
out
.
setSerializerFactory
(
this
.
serializerFactory
);
}
}
...
@@ -178,15 +188,4 @@ public class HessianExporter extends RemoteExporter implements InitializingBean
...
@@ -178,15 +188,4 @@ public class HessianExporter extends RemoteExporter implements InitializingBean
}
}
}
}
/**
* Inner class to avoid hard dependency on Hessian 3.1.3's HessianDebugOutputStream.
*/
private
static
class
DebugStreamFactory
{
public
static
OutputStream
createDebugOutputStream
(
OutputStream
os
,
PrintWriter
debug
)
{
return
new
HessianDebugOutputStream
(
os
,
debug
);
}
}
}
}
org.springframework.web/src/main/java/org/springframework/remoting/caucho/HessianServiceExporter.java
浏览文件 @
07fba932
/*
/*
* Copyright 2002-200
8
the original author or authors.
* Copyright 2002-200
9
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
package
org.springframework.remoting.caucho
;
package
org.springframework.remoting.caucho
;
import
java.io.IOException
;
import
java.io.IOException
;
import
javax.servlet.ServletException
;
import
javax.servlet.ServletException
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -36,7 +35,7 @@ import org.springframework.web.util.NestedServletException;
...
@@ -36,7 +35,7 @@ import org.springframework.web.util.NestedServletException;
* <p>Hessian is a slim, binary RPC protocol.
* <p>Hessian is a slim, binary RPC protocol.
* For information on Hessian, see the
* For information on Hessian, see the
* <a href="http://www.caucho.com/hessian">Hessian website</a>.
* <a href="http://www.caucho.com/hessian">Hessian website</a>.
* This exporter requires Hessian 3.
0.20
or above.
* This exporter requires Hessian 3.
1.3
or above.
*
*
* <p>Note: Hessian services exported with this class can be accessed by
* <p>Note: Hessian services exported with this class can be accessed by
* any Hessian client, as there isn't any special handling involved.
* any Hessian client, as there isn't any special handling involved.
...
...
org.springframework.web/src/main/java/org/springframework/remoting/caucho/SimpleHessianServiceExporter.java
浏览文件 @
07fba932
/*
/*
* Copyright 2002-200
8
the original author or authors.
* Copyright 2002-200
9
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -33,7 +33,7 @@ import org.springframework.util.FileCopyUtils;
...
@@ -33,7 +33,7 @@ import org.springframework.util.FileCopyUtils;
* <p>Hessian is a slim, binary RPC protocol.
* <p>Hessian is a slim, binary RPC protocol.
* For information on Hessian, see the
* For information on Hessian, see the
* <a href="http://www.caucho.com/hessian">Hessian website</a>.
* <a href="http://www.caucho.com/hessian">Hessian website</a>.
* This exporter requires Hessian 3.
0.20
or above.
* This exporter requires Hessian 3.
1.3
or above.
*
*
* <p>Note: Hessian services exported with this class can be accessed by
* <p>Note: Hessian services exported with this class can be accessed by
* any Hessian client, as there isn't any special handling involved.
* any Hessian client, as there isn't any special handling involved.
...
...
org.springframework.web/web.iml
浏览文件 @
07fba932
...
@@ -83,11 +83,11 @@
...
@@ -83,11 +83,11 @@
<orderEntry
type=
"module-library"
>
<orderEntry
type=
"module-library"
>
<library>
<library>
<CLASSES>
<CLASSES>
<root
url=
"jar://$IVY_CACHE$/com.caucho/com.springsource.com.caucho/3.
1.5/com.springsource.com.caucho-3.1.5.jar!/"
/>
<root
url=
"jar://$IVY_CACHE$/com.caucho/com.springsource.com.caucho/3.
2.1/com.springsource.com.caucho-3.2.1.jar!/"
/>
</CLASSES>
</CLASSES>
<JAVADOC
/>
<JAVADOC
/>
<SOURCES>
<SOURCES>
<root
url=
"jar://$IVY_CACHE$/com.caucho/com.springsource.com.caucho/3.
1.5/com.springsource.com.caucho-sources-3.1.5.jar!/"
/>
<root
url=
"jar://$IVY_CACHE$/com.caucho/com.springsource.com.caucho/3.
2.1/com.springsource.com.caucho-sources-3.2.1.jar!/"
/>
</SOURCES>
</SOURCES>
</library>
</library>
</orderEntry>
</orderEntry>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录