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

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.Jaxws
All Implemented Interfaces:
DisposableBean, InitializingBean, ApplicationContextAware
Direct Known Subclasses:
JaxwsSoapHeaderContextPassing

public class Jaxws
extends AbstractInetSocketAddressWebProtocol

This class implements all needed things for the soap protocol using JAX-WS. Since EL4J 1.7 it is possible to define JaxWs handlers.

Author:
Stefan Wismer (SWI), Reynald Borer (RBR)
File-location:
Jaxws
Last check-in date:
2010-11-02 11:44:37 +0100 (Di, 02. Nov 2010) by swisswheel for revision 4204

Field Summary
protected static org.slf4j.Logger s_logger
          Private logger.
 
Fields inherited from class ch.elca.el4j.services.remoting.AbstractRemotingProtocol
m_parentApplicationContext
 
Constructor Summary
Jaxws()
           
 
Method Summary
protected  void adaptExporterService(org.jvnet.jax_ws_commons.spring.SpringService service)
          Method providing an extension point do adapt the exporter service.
protected  void adaptProxyService(Service service)
          Method providing an extension point do adapt the proxy service.
 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.
 List<Handler> getHandlers()
           
 boolean getProtocolSpecificContextPassing()
          Does this protocol handle context passing on its own?
 Class getProxyObjectType()
          Method to get the class type of the proxy object.
 void setHandlers(List<Handler> handlers)
           
 
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, 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

s_logger

protected static final org.slf4j.Logger s_logger
Private logger.

Constructor Detail

Jaxws

public Jaxws()
Method Detail

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.

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.

getProtocolSpecificContextPassing

public boolean getProtocolSpecificContextPassing()
Does this protocol handle context passing on its own? Yes.

Overrides:
getProtocolSpecificContextPassing in class AbstractRemotingProtocol
Returns:
Whether this protocol handles the context (true)

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.

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.

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.

adaptProxyService

protected void adaptProxyService(Service service)
Method providing an extension point do adapt the proxy service.

Parameters:
service - The service

adaptExporterService

protected void adaptExporterService(org.jvnet.jax_ws_commons.spring.SpringService service)
Method providing an extension point do adapt the exporter service.

Parameters:
service - The service

getHandlers

public List<Handler> getHandlers()
Returns:
Returns the JaxWs handlers.
Since:
1.7

setHandlers

public void setHandlers(List<Handler> handlers)
Parameters:
handlers - Are the JaxWs handlers to set.
Since:
1.7


Copyright © 2005-2011 ELCA. All Rights Reserved.