org.codehaus.xfire.spring.remoting
Class XFireServletControllerAdapter
java.lang.Object
org.codehaus.xfire.transport.http.XFireServletController
org.codehaus.xfire.spring.remoting.XFireServletControllerAdapter
- All Implemented Interfaces:
- org.springframework.web.servlet.mvc.Controller
- public class XFireServletControllerAdapter
- extends org.codehaus.xfire.transport.http.XFireServletController
- implements org.springframework.web.servlet.mvc.Controller
An adapter for the XFireServletController
so that it conforms to Springs MVC Controller
interface.
- Author:
- Dan Diephouse, Arjen Poutsma
Nested classes inherited from class org.codehaus.xfire.transport.http.XFireServletController |
org.codehaus.xfire.transport.http.XFireServletController.FaultResponseCodeHandler |
Fields inherited from class org.codehaus.xfire.transport.http.XFireServletController |
transport, xfire |
Constructor Summary |
XFireServletControllerAdapter(org.codehaus.xfire.XFire xfire)
Initializes a new instance of the adapter with the given XFire instance. |
XFireServletControllerAdapter(org.codehaus.xfire.XFire xfire,
javax.xml.namespace.QName serviceName)
Initializes a new instance of the adapter with the given XFire instance and service name. |
Method Summary |
protected java.lang.String |
getService(javax.servlet.http.HttpServletRequest request)
|
protected org.codehaus.xfire.service.Service |
getService(java.lang.String name)
|
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 |
setServiceName(javax.xml.namespace.QName serviceName)
|
Methods inherited from class org.codehaus.xfire.transport.http.XFireServletController |
doService, generateService, generateServices, generateWSDL, getRequest, getResponse, getServiceRegistry, getTransportManager, getXFire, invoke |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XFireServletControllerAdapter
public XFireServletControllerAdapter(org.codehaus.xfire.XFire xfire,
javax.xml.namespace.QName serviceName)
- Initializes a new instance of the adapter with the given XFire instance and service name.
- Parameters:
xfire
- the XFire instanceserviceName
- the name of the service
XFireServletControllerAdapter
public XFireServletControllerAdapter(org.codehaus.xfire.XFire xfire)
- Initializes a new instance of the adapter with the given XFire instance.
- Parameters:
xfire
- the XFire instance
getService
protected java.lang.String getService(javax.servlet.http.HttpServletRequest request)
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 requestresponse
- current HTTP response
- Returns:
null
- Throws:
java.lang.Exception
- in case of errors
getService
protected org.codehaus.xfire.service.Service getService(java.lang.String name)
setServiceName
public void setServiceName(javax.xml.namespace.QName serviceName)
Copyright © 2004-2006 null. All Rights Reserved.