1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.ksb.messaging.servlet;
17
18 import javax.servlet.http.HttpServletRequest;
19 import javax.xml.namespace.QName;
20
21 import org.kuali.rice.ksb.messaging.serviceexporters.ServiceExportManager;
22 import org.kuali.rice.ksb.service.KSBServiceLocator;
23 import org.springframework.web.servlet.HandlerMapping;
24 import org.springframework.web.servlet.handler.AbstractHandlerMapping;
25
26
27
28
29
30
31 public class KSBHttpInvokerHandler extends AbstractHandlerMapping {
32
33 protected Object getHandlerInternal(HttpServletRequest request) throws Exception {
34 QName serviceName = getServiceNameFromRequest(request);
35 ServiceExportManager serviceExportManager = KSBServiceLocator.getServiceExportManager();
36 return serviceExportManager.getService(serviceName);
37 }
38
39 public QName getServiceNameFromRequest(HttpServletRequest request) {
40 return KSBServiceLocator.getServiceExportManager().getServiceName(request.getRequestURL().toString());
41 }
42
43 }