1 16 package org.apache.axis2.engine; 17 18 import org.apache.axis2.context.MessageContext; 19 import org.apache.axis2.description.HandlerDescription; 20 import org.apache.axis2.description.OperationDescription; 21 import org.apache.axis2.description.ServiceDescription; 22 23 import javax.xml.namespace.QName ; 24 25 28 public class SOAPActionBasedDispatcher extends AbstractDispatcher { 29 32 public static final QName NAME = 33 new QName ("http://axis.ws.apache.org", "SOAPActionBasedDispatcher"); 34 35 public SOAPActionBasedDispatcher() { 36 init(new HandlerDescription(NAME)); 37 } 38 39 public OperationDescription findOperation( 40 ServiceDescription service, 41 MessageContext messageContext) 42 throws AxisFault { 43 44 String action = (String ) messageContext.getSoapAction(); 45 if (action != null) { 46 OperationDescription op = service.getOperationBySOAPAction(action); 47 if(op == null){ 48 op = service.getOperation(new QName (action)); 49 } 50 return op; 51 } 52 return null; 53 } 54 55 58 public ServiceDescription findService(MessageContext messageContext) throws AxisFault { 59 return null; 60 } 61 62 } 63 | Popular Tags |