org.codehaus.xfire.spring.remoting
Class Jsr181HandlerMapping

java.lang.Object
  extended by AbstractUrlHandlerMapping
      extended by org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping

public class Jsr181HandlerMapping
extends AbstractUrlHandlerMapping

Implementation of the org.springframework.web.servlet.HandlerMapping interface that recognizes web service annotations on Spring-managed beans and automatically wires them into the current servlet's WebApplicationContext.

All beans Services are exposed by their service name, with a defined prefix. For instance, a bean annotated with the service name EchoService will be exposed as /services/EchoService.

Author:
Arjen Poutsma
See Also:
WebAnnotations, org.codehaus.xfire.annotations.WebServiceAnnotation

Constructor Summary
Jsr181HandlerMapping()
           
 
Method Summary
protected  void initApplicationContext()
           
 void setServletControllerAdapterName(java.lang.String servletControllerAdapterName)
           
 void setTypeMappingRegistry(TypeMappingRegistry typeMappingRegistry)
          Sets the type mapping registry.
 void setUrlPrefix(java.lang.String urlPrefix)
          Sets the url prefix used when exposing services.
 void setWebAnnotations(WebAnnotations webAnnotations)
          Sets the web annotations implementation to use.
 void setXfire(XFire xFire)
          Sets the XFire instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jsr181HandlerMapping

public Jsr181HandlerMapping()
Method Detail

initApplicationContext

protected void initApplicationContext()
                               throws BeansException
Throws:
BeansException

setWebAnnotations

public void setWebAnnotations(WebAnnotations webAnnotations)
Sets the web annotations implementation to use.


setXfire

public void setXfire(XFire xFire)
Sets the XFire instance.


setTypeMappingRegistry

public void setTypeMappingRegistry(TypeMappingRegistry typeMappingRegistry)
Sets the type mapping registry.


setUrlPrefix

public void setUrlPrefix(java.lang.String urlPrefix)
Sets the url prefix used when exposing services. Defaults to /services/.


setServletControllerAdapterName

public void setServletControllerAdapterName(java.lang.String servletControllerAdapterName)


Copyright © 2004-2006 Envoi Solutions LLC. All Rights Reserved.