org.jibx.ws.http.servlet
Class PathBasedServiceMapper
java.lang.Object
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:
- The extra path information between the servlet path and query string, or
- If no extra path information present, the servlet path.
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