org.jibx.ws.http.servlet
Class WsSpringServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.springframework.web.servlet.HttpServletBean
              extended by org.springframework.web.servlet.FrameworkServlet
                  extended by org.jibx.ws.http.servlet.WsSpringServlet
All Implemented Interfaces:
Serializable, EventListener, Servlet, ServletConfig, ApplicationListener

public class WsSpringServlet
extends FrameworkServlet

JiBX/WS web service request handler servlet that is configured using the Spring Framework.

This servlet expects a ServiceMapper object to be available with the bean name defined by DEFAULT_SERVICE_MAPPER_BEAN_NAME. This bean name can be overridden using the method setServiceMapperBeanName(String). The ServiceMapper class maps the servlet request to a Service object.

As a special case, the request parameter "?WSDL" is recognized as a request for the WSDL service description.

See Also:
Serialized Form

Field Summary
static String DEFAULT_SERVICE_MAPPER_BEAN_NAME
          Well-known name for the ServiceMapper bean in the bean factory for this namespace.
 
Fields inherited from class org.springframework.web.servlet.FrameworkServlet
DEFAULT_CONTEXT_CLASS, DEFAULT_NAMESPACE_SUFFIX, SERVLET_CONTEXT_PREFIX
 
Constructor Summary
WsSpringServlet()
           
 
Method Summary
 String getServiceMapperBeanName()
          Returns the bean name used to lookup a ServiceMapper.
 void setServiceMapperBeanName(String serviceMapperBeanName)
          Sets the bean name used to lookup a ServiceMapper.
 
Methods inherited from class org.springframework.web.servlet.FrameworkServlet
destroy, getContextAttribute, getContextClass, getContextConfigLocation, getNamespace, getServletContextAttributeName, getWebApplicationContext, onApplicationEvent, refresh, setContextAttribute, setContextClass, setContextConfigLocation, setDispatchOptionsRequest, setDispatchTraceRequest, setNamespace, setPublishContext, setPublishEvents
 
Methods inherited from class org.springframework.web.servlet.HttpServletBean
getServletContext, getServletName, init
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SERVICE_MAPPER_BEAN_NAME

public static final String DEFAULT_SERVICE_MAPPER_BEAN_NAME
Well-known name for the ServiceMapper bean in the bean factory for this namespace.

See Also:
Constant Field Values
Constructor Detail

WsSpringServlet

public WsSpringServlet()
Method Detail

getServiceMapperBeanName

public String getServiceMapperBeanName()
Returns the bean name used to lookup a ServiceMapper.

Returns:
bean name

setServiceMapperBeanName

public void setServiceMapperBeanName(String serviceMapperBeanName)
Sets the bean name used to lookup a ServiceMapper. Defaults to DEFAULT_SERVICE_MAPPER_BEAN_NAME.

Parameters:
serviceMapperBeanName - the new name for the service mapper bean


Project Web Site