org.codehaus.xfire.spring
Class XFireExporter

java.lang.Object
  extended by org.springframework.remoting.support.RemoteExporter
      extended by org.codehaus.xfire.spring.XFireExporter
All Implemented Interfaces:
org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.web.servlet.mvc.Controller

public class XFireExporter
extends org.springframework.remoting.support.RemoteExporter
implements org.springframework.web.servlet.mvc.Controller, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanNameAware

Web controller that exports the specified service bean as a XFire Soap service endpoint.

Author:
Dan Diephouse , Arjen Poutsma

Field Summary
 
Fields inherited from class org.springframework.remoting.support.RemoteExporter
logger
 
Constructor Summary
XFireExporter()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process the incoming SOAP request and create a SOAP response.
 void setBeanName(java.lang.String beanName)
           
 void setName(java.lang.String name)
          Sets the service name.
 void setNamespace(java.lang.String namespace)
          Sets the service default namespace.
 void setServiceFactory(ServiceFactory serviceBuilder)
           
 void setSoapVersion(SoapVersion soapVersion)
          Sets the soap version to use for service creation.
 void setStyle(java.lang.String style)
          Sets the style to use for service creation.
 void setUse(java.lang.String use)
          Sets the use for service creation.
 void setXfire(XFire xFire)
           
 
Methods inherited from class org.springframework.remoting.support.RemoteExporter
checkService, checkServiceInterface, getProxyForService, getService, getServiceInterface, setService, setServiceInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XFireExporter

public XFireExporter()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

handleRequest

public org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)
                                                           throws java.lang.Exception
Process the incoming SOAP request and create a SOAP response.

Specified by:
handleRequest in interface org.springframework.web.servlet.mvc.Controller
Parameters:
request - current HTTP request
response - current HTTP response
Returns:
null
Throws:
java.lang.Exception - in case of errors

setServiceFactory

public void setServiceFactory(ServiceFactory serviceBuilder)

setXfire

public void setXfire(XFire xFire)

setName

public void setName(java.lang.String name)
Sets the service name. Default is the bean name of this exporter.


setNamespace

public void setNamespace(java.lang.String namespace)
Sets the service default namespace. Default is a namespace based on the package of the service interface.


setStyle

public void setStyle(java.lang.String style)
Sets the style to use for service creation. Default is wrapped.


setUse

public void setUse(java.lang.String use)
Sets the use for service creation. Default is literal.


setSoapVersion

public void setSoapVersion(SoapVersion soapVersion)
Sets the soap version to use for service creation. Default is Soap v.1.1.


setBeanName

public void setBeanName(java.lang.String beanName)
Specified by:
setBeanName in interface org.springframework.beans.factory.BeanNameAware