1 54 55 package org.jboss.axis.handlers.http; 56 57 import org.jboss.axis.AxisFault; 58 import org.jboss.axis.MessageContext; 59 import org.jboss.axis.handlers.BasicHandler; 60 import org.jboss.axis.utils.Messages; 61 import org.jboss.logging.Logger; 62 63 64 76 public class HTTPActionHandler extends BasicHandler 77 { 78 private static Logger log = Logger.getLogger(HTTPActionHandler.class.getName()); 79 80 public void invoke(MessageContext msgContext) throws AxisFault 81 { 82 log.debug("Enter: HTTPActionHandler::invoke"); 83 84 86 if (msgContext.getService() == null) 87 { 88 String action = (String )msgContext.getSOAPActionURI(); 89 log.debug(" HTTP SOAPAction: " + action); 90 91 95 if (action == null) 96 { 97 throw new AxisFault("Server.NoHTTPSOAPAction", 98 Messages.getMessage("noSOAPAction00"), 99 null, null); 100 } 101 102 action = action.trim(); 103 104 if (action.length() > 0 && action.charAt(0) == '\"') 106 { 107 if (action.equals("\"\"")) 109 { 110 action = ""; 111 } 112 else 113 { 114 action = action.substring(1, action.length() - 1); 115 } 116 } 117 118 if (action.length() > 0) 120 { 121 msgContext.setTargetService(action); 122 } 123 } 124 125 log.debug("Exit: HTTPActionHandler::invoke"); 126 } 127 } 128 | Popular Tags |