ch.elca.el4j.services.remoting.protocol
Class Hessian

java.lang.Object
  extended by ch.elca.el4j.services.remoting.AbstractRemotingProtocol
      extended by ch.elca.el4j.services.remoting.protocol.AbstractInetSocketAddressProtocol
          extended by ch.elca.el4j.services.remoting.protocol.AbstractInetSocketAddressWebProtocol
              extended by ch.elca.el4j.services.remoting.protocol.Hessian
All Implemented Interfaces:
DisposableBean, InitializingBean, ApplicationContextAware

public class Hessian
extends AbstractInetSocketAddressWebProtocol

This class implements all needed things for the hessian protocol.

Author:
Martin Zeltner (MZE)
File-location:
Hessian
Last check-in date:
2010-11-02 11:44:37 +0100 (Di, 02. Nov 2010) by swisswheel for revision 4204

Field Summary
protected  Map<String,Object> m_serviceProperties
          Additional properties to set.
 
Fields inherited from class ch.elca.el4j.services.remoting.AbstractRemotingProtocol
m_parentApplicationContext
 
Constructor Summary
Hessian()
           
 
Method Summary
 Object createExporterBean(RemotingServiceExporter exporterBean, Class serviceInterfaceWithContext, Object serviceProxy)
          Method to create the exporter bean.
 Object createProxyBean(RemotingProxyFactoryBean proxyBean, Class serviceInterfaceWithContext)
          Method to create the proxy bean.
 String generateUrl(AbstractRemotingBase remoteBase)
          Method to generate the url to be able to access the service.
 Class getExporterObjectType()
          Method to get the class type of the exporter object.
 Class getProxyObjectType()
          Method to get the class type of the proxy object.
 Map<String,Object> getServiceProperties()
           
 void setServiceProperties(Map<String,Object> serviceProperties)
           
 
Methods inherited from class ch.elca.el4j.services.remoting.protocol.AbstractInetSocketAddressWebProtocol
afterPropertiesSet, finalizeExporterDependentBeans, getContextPath, prepareExporterDependentBeans, setContextPath
 
Methods inherited from class ch.elca.el4j.services.remoting.protocol.AbstractInetSocketAddressProtocol
getServiceHost, getServicePort, getServiceProtocol, setServiceHost, setServicePort, setServiceProtocol
 
Methods inherited from class ch.elca.el4j.services.remoting.AbstractRemotingProtocol
checkRemotingExporter, checkRemotingProxy, destroy, getChlidApplicationContexts, getClientContextInvocationHandler, getImplicitContextPassingRegistry, getProtocolSpecificConfiguration, getProtocolSpecificContextPassing, getProxyInterface, isDoNotForcePreInstantiationOfExporterObject, registerChildApplicationContext, setApplicationContext, setDoNotForcePreInstantiationOfExporterObject, setImplicitContextPassingRegistry, setProtocolSpecificConfiguration, setProtocolSpecificContextPassing, unregisterChildApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_serviceProperties

protected Map<String,Object> m_serviceProperties
Additional properties to set.

Constructor Detail

Hessian

public Hessian()
Method Detail

createProxyBean

public Object createProxyBean(RemotingProxyFactoryBean proxyBean,
                              Class serviceInterfaceWithContext)
Method to create the proxy bean.

Specified by:
createProxyBean in class AbstractRemotingProtocol
Parameters:
proxyBean - Is the bean where the method gets information about the proxy bean.
serviceInterfaceWithContext - Is the modified interface.
Returns:
Returns the created proxy bean.

createExporterBean

public Object createExporterBean(RemotingServiceExporter exporterBean,
                                 Class serviceInterfaceWithContext,
                                 Object serviceProxy)
Method to create the exporter bean.

Specified by:
createExporterBean in class AbstractRemotingProtocol
Parameters:
exporterBean - Is the bean where the method gets information about the exporter bean.
serviceInterfaceWithContext - Is the modified interface.
serviceProxy - Is the bean which has to wrapped.
Returns:
Returns the generated exporter bean.

getProxyObjectType

public Class getProxyObjectType()
Method to get the class type of the proxy object.

Specified by:
getProxyObjectType in class AbstractRemotingProtocol
Returns:
Returns the class type.

getExporterObjectType

public Class getExporterObjectType()
Method to get the class type of the exporter object.

Specified by:
getExporterObjectType in class AbstractRemotingProtocol
Returns:
Returns the class type.

generateUrl

public String generateUrl(AbstractRemotingBase remoteBase)
Method to generate the url to be able to access the service.

Specified by:
generateUrl in class AbstractInetSocketAddressProtocol
Parameters:
remoteBase - Is the reference to get information about the service.
Returns:
Returns the generated service url.

getServiceProperties

public Map<String,Object> getServiceProperties()
Returns:
the additional service properties

setServiceProperties

public void setServiceProperties(Map<String,Object> serviceProperties)
Parameters:
serviceProperties - the additional service properties to set


Copyright © 2005-2011 ELCA. All Rights Reserved.