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.transport.http.HTTPConstants; 61 import org.jboss.logging.Logger; 62 63 64 71 public class URLMapper extends BasicHandler 72 { 73 private static Logger log = Logger.getLogger(URLMapper.class.getName()); 74 75 public void invoke(MessageContext msgContext) throws AxisFault 76 { 77 log.debug("Enter: URLMapper::invoke"); 78 79 81 if (msgContext.getService() == null) 82 { 83 String path = (String )msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETPATHINFO); 85 if (path != null && path.startsWith("/")) 86 { 87 msgContext.setTargetService(path.substring(1)); 88 } 89 } 90 91 log.debug("Exit: URLMapper::invoke"); 92 } 93 94 public void generateWSDL(MessageContext msgContext) throws AxisFault 95 { 96 invoke(msgContext); 97 } 98 } 99 | Popular Tags |