public function getServletByMapping($urlMapping)
    {
        if (isset($this->servletMappings[$urlMapping])) {
            return $this->getServlet($this->servletMappings[$urlMapping]);
        }
    }
public function getServletByMapping($urlMapping)
    {
        if (isset($this->servletMappings[$urlMapping])) {
            return $this->getServlet($this->servletMappings[$urlMapping]);
        }
    }
public function getServletByMapping ( $ urlMapping ) { if ( isset ( $ this -> servletMappings [ $ urlMapping ] ) ) { return $ this -> getServlet ( $ this -> servletMappings [ $ urlMapping ] ) ; } }
Returns the servlet for the passed URL mapping.

@param string $urlMapping The URL mapping to return the servlet for

@return \AppserverIo\Psr\Servlet\ServletInterface The servlet instance
Returns the servlet for the passed URL mapping .