Java Doc for HessianClientInterceptor.java in  » J2EE » spring-framework-2.5 » org » springframework » remoting » caucho » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » spring framework 2.5 » org.springframework.remoting.caucho 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.remoting.support.UrlBasedRemoteAccessor
   org.springframework.remoting.caucho.HessianClientInterceptor

All known Subclasses:   org.springframework.remoting.caucho.HessianProxyFactoryBean,
HessianClientInterceptor
public class HessianClientInterceptor extends UrlBasedRemoteAccessor implements MethodInterceptor(Code)
org.aopalliance.intercept.MethodInterceptor for accessing a Hessian service. Supports authentication via username and password. The service URL must be an HTTP URL exposing a Hessian service.

Hessian is a slim, binary RPC protocol. For information on Hessian, see the Hessian website

Note: There is no requirement for services accessed with this proxy factory to have been exported using Spring's HessianServiceExporter , as there is no special handling involved. As a consequence, you can also access services that have been exported using Caucho's com.caucho.hessian.server.HessianServlet .
author:
   Juergen Hoeller
since:
   29.09.2003
See Also:   HessianClientInterceptor.setServiceInterface
See Also:   HessianClientInterceptor.setServiceUrl
See Also:   HessianClientInterceptor.setUsername
See Also:   HessianClientInterceptor.setPassword
See Also:   HessianServiceExporter
See Also:   HessianProxyFactoryBean
See Also:   com.caucho.hessian.client.HessianProxyFactory
See Also:   com.caucho.hessian.server.HessianServlet





Method Summary
public  voidafterPropertiesSet()
    
protected  RemoteAccessExceptionconvertHessianAccessException(Throwable ex)
     Convert the given Hessian access exception to an appropriate Spring RemoteAccessException.
protected  ObjectcreateHessianProxy(HessianProxyFactory proxyFactory)
     Create the Hessian proxy that is wrapped by this interceptor.
public  Objectinvoke(MethodInvocation invocation)
    
public  voidprepare()
     Initialize the Hessian proxy for this interceptor.
public  voidsetOverloadEnabled(boolean overloadEnabled)
     Set whether overloaded methods should be enabled for remote invocations.
public  voidsetPassword(String password)
     Set the password that this factory should use to access the remote service.
public  voidsetProxyFactory(HessianProxyFactory proxyFactory)
     Set the HessianProxyFactory instance to use.
public  voidsetSendCollectionType(boolean sendCollectionType)
     Set whether to send the Java collection type for each serialized collection.
public  voidsetSerializerFactory(SerializerFactory serializerFactory)
     Specify the Hessian SerializerFactory to use.
public  voidsetUsername(String username)
     Set the username that this factory should use to access the remote service.



Method Detail
afterPropertiesSet
public void afterPropertiesSet()(Code)



convertHessianAccessException
protected RemoteAccessException convertHessianAccessException(Throwable ex)(Code)
Convert the given Hessian access exception to an appropriate Spring RemoteAccessException.
Parameters:
  ex - the exception to convert the RemoteAccessException to throw



createHessianProxy
protected Object createHessianProxy(HessianProxyFactory proxyFactory) throws MalformedURLException(Code)
Create the Hessian proxy that is wrapped by this interceptor.
Parameters:
  proxyFactory - the proxy factory to use the Hessian proxy
throws:
  MalformedURLException - if thrown by the proxy factory
See Also:   com.caucho.hessian.client.HessianProxyFactory.create



invoke
public Object invoke(MethodInvocation invocation) throws Throwable(Code)



prepare
public void prepare() throws RemoteLookupFailureException(Code)
Initialize the Hessian proxy for this interceptor.
throws:
  RemoteLookupFailureException - if the service URL is invalid



setOverloadEnabled
public void setOverloadEnabled(boolean overloadEnabled)(Code)
Set whether overloaded methods should be enabled for remote invocations. Default is "false".
See Also:   com.caucho.hessian.client.HessianProxyFactory.setOverloadEnabled



setPassword
public void setPassword(String password)(Code)
Set the password that this factory should use to access the remote service. Default is none.

The password will be sent by Hessian via HTTP Basic Authentication.
See Also:   com.caucho.hessian.client.HessianProxyFactory.setPassword




setProxyFactory
public void setProxyFactory(HessianProxyFactory proxyFactory)(Code)
Set the HessianProxyFactory instance to use. If not specified, a default HessianProxyFactory will be created.

Allows to use an externally configured factory instance, in particular a custom HessianProxyFactory subclass.




setSendCollectionType
public void setSendCollectionType(boolean sendCollectionType)(Code)
Set whether to send the Java collection type for each serialized collection. Default is "true".



setSerializerFactory
public void setSerializerFactory(SerializerFactory serializerFactory)(Code)
Specify the Hessian SerializerFactory to use.

This will typically be passed in as an inner bean definition of type com.caucho.hessian.io.SerializerFactory, with custom bean property values applied.




setUsername
public void setUsername(String username)(Code)
Set the username that this factory should use to access the remote service. Default is none.

The username will be sent by Hessian via HTTP Basic Authentication.
See Also:   com.caucho.hessian.client.HessianProxyFactory.setUser




Methods inherited from org.springframework.remoting.support.UrlBasedRemoteAccessor
public void afterPropertiesSet()(Code)(Java Doc)
public String getServiceUrl()(Code)(Java Doc)
public void setServiceUrl(String serviceUrl)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.