org.jibx.ws.http.servlet
Class PathBasedServiceMapper

java.lang.Object
  extended by org.jibx.ws.http.servlet.PathBasedServiceMapper
All Implemented Interfaces:
ServiceMapper

public final class PathBasedServiceMapper
extends Object
implements ServiceMapper

Maps a servlet request to a Service instance, based on the servlet path. This attempts to match the request to a ServiceDefinition defined in the init-params for this servlet. The request is matched using:

  1. The extra path information between the servlet path and query string, or
  2. If no extra path information present, the servlet path.


Method Summary
 org.jibx.ws.server.Service getServiceInstance(HttpServletRequest req)
          Returns a service instance that can handle the servlet request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServiceInstance

public org.jibx.ws.server.Service getServiceInstance(HttpServletRequest req)
                                              throws WsException
Returns a service instance that can handle the servlet request.

Specified by:
getServiceInstance in interface ServiceMapper
Parameters:
req - the servlet request
Returns:
service instance
Throws:
WsException - on error creating the service instance


Project Web Site