org.jibx.ws.http.servlet
Class SingleServiceMapper

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

public final class SingleServiceMapper
extends Object
implements ServiceMapper

Maps all requests to a single service.


Constructor Summary
SingleServiceMapper()
           
 
Method Summary
 ServiceDefinition getServiceDefinition()
          Gets the service definition for the service.
 org.jibx.ws.server.Service getServiceInstance(HttpServletRequest req)
          Returns a service instance that can handle the servlet request.
 void setServiceDefinition(ServiceDefinition sdef)
          Sets the service definition for the service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleServiceMapper

public SingleServiceMapper()
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

getServiceDefinition

public ServiceDefinition getServiceDefinition()
Gets the service definition for the service.

Returns:
service definition

setServiceDefinition

public void setServiceDefinition(ServiceDefinition sdef)
Sets the service definition for the service.

Parameters:
sdef - service definition


Project Web Site