org.codehaus.xfire.spring.remoting
Class Jsr181HandlerMapping

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.handler.AbstractHandlerMapping
              extended by org.springframework.web.servlet.handler.AbstractUrlHandlerMapping
                  extended by org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, org.springframework.web.servlet.HandlerMapping

public class Jsr181HandlerMapping
extends org.springframework.web.servlet.handler.AbstractUrlHandlerMapping

Implementation of the 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, WebServiceAnnotation

Field Summary
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
Jsr181HandlerMapping()
           
 
Method Summary
protected  void customizeService(java.lang.Object bean, org.codehaus.xfire.service.Service endpoint)
           
 java.util.List getFaultHandlers()
           
 java.util.List getInHandlers()
           
 java.util.List getOutHandlers()
           
 org.codehaus.xfire.annotations.AnnotationServiceFactory getServiceFactory()
           
 org.codehaus.xfire.XFire getXFire()
           
protected  void initApplicationContext()
           
 void setFaultHandlers(java.util.List faultHandlers)
           
 void setInHandlers(java.util.List inHandlers)
           
 void setOutHandlers(java.util.List outHandlers)
           
 void setServiceFactory(org.codehaus.xfire.annotations.AnnotationServiceFactory serviceFactory)
           
 void setServletControllerAdapterName(java.lang.String servletControllerAdapterName)
           
 void setTypeMappingRegistry(org.codehaus.xfire.aegis.type.TypeMappingRegistry typeMappingRegistry)
          Sets the type mapping registry.
 void setUrlPrefix(java.lang.String urlPrefix)
          Sets the url prefix used when exposing services.
 void setValidator(org.codehaus.xfire.annotations.AnnotationsValidator validator)
           
 void setWebAnnotations(org.codehaus.xfire.annotations.WebAnnotations webAnnotations)
          Sets the web annotations implementation to use.
 void setXfire(org.codehaus.xfire.XFire xFire)
          Sets the XFire instance.
 
Methods inherited from class org.springframework.web.servlet.handler.AbstractUrlHandlerMapping
getHandlerInternal, getHandlerMap, lookupHandler, registerHandler, setAlwaysUseFullPath, setLazyInitHandlers, setPathMatcher, setUrlDecode, setUrlPathHelper
 
Methods inherited from class org.springframework.web.servlet.handler.AbstractHandlerMapping
getDefaultHandler, getHandler, getOrder, setDefaultHandler, setInterceptors, setOrder
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, isContextRequired
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
 
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 org.springframework.beans.BeansException
Overrides:
initApplicationContext in class org.springframework.context.support.ApplicationObjectSupport
Throws:
org.springframework.beans.BeansException

getServiceFactory

public org.codehaus.xfire.annotations.AnnotationServiceFactory getServiceFactory()

setServiceFactory

public void setServiceFactory(org.codehaus.xfire.annotations.AnnotationServiceFactory serviceFactory)

customizeService

protected void customizeService(java.lang.Object bean,
                                org.codehaus.xfire.service.Service endpoint)

getXFire

public org.codehaus.xfire.XFire getXFire()

setWebAnnotations

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


setXfire

public void setXfire(org.codehaus.xfire.XFire xFire)
Sets the XFire instance.


setTypeMappingRegistry

public void setTypeMappingRegistry(org.codehaus.xfire.aegis.type.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)

getInHandlers

public java.util.List getInHandlers()

setInHandlers

public void setInHandlers(java.util.List inHandlers)

getOutHandlers

public java.util.List getOutHandlers()

setOutHandlers

public void setOutHandlers(java.util.List outHandlers)

getFaultHandlers

public java.util.List getFaultHandlers()

setFaultHandlers

public void setFaultHandlers(java.util.List faultHandlers)

setValidator

public void setValidator(org.codehaus.xfire.annotations.AnnotationsValidator validator)


Copyright © 2004-2010. All Rights Reserved.