FileDocCategorySizeDatePackage
URLMapper.javaAPI DocApache Axis 1.42125Sat Apr 22 18:57:28 BST 2006org.apache.axis.handlers.http

URLMapper

public class URLMapper extends org.apache.axis.handlers.BasicHandler
An URLMapper attempts to use the extra path info of this request as the service name.
author
Glen Daniels (gdaniels@apache.org)

Fields Summary
protected static Log
log
Constructors Summary
Methods Summary
public voidgenerateWSDL(org.apache.axis.MessageContext msgContext)

        invoke(msgContext);
    
public voidinvoke(org.apache.axis.MessageContext msgContext)


         
    
        log.debug("Enter: URLMapper::invoke");

        /** If there's already a targetService then just return.
         */
        if ( msgContext.getService() == null ) {
        	// path may or may not start with a "/". see http://issues.apache.org/jira/browse/AXIS-1372
            String path = (String)msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETPATHINFO);
            if ((path != null) && (path.length() >= 1)) { //rules out the cases of path="", path=null
            	if(path.startsWith("/"))
            		path = path.substring(1); //chop the extra "/"            		

                msgContext.setTargetService( path );
            }
        }

        log.debug("Exit: URLMapper::invoke");