Get Named dispatcher.
@param name The name of the servlet. If null or empty string, the
containers default servlet is returned.
@return Request dispatcher for the named servlet.
163754
public RequestDispatcher getNamedDispatcher(String name)
    {
        if (name == null || name.length()==0)
            name=__DEFAULT_SERVLET;

        try { return new Dispatcher(ServletHandler.this,name); }
        catch(Exception e) {LogSupport.ignore(log,e);}
        
        return null;
    }
357130
public static Drawable getDrawable(String name) {
        Resources res = Resources.getSystem();
        int id = res.getIdentifier(name, TYPE_DRAWABLE, NATIVE_PACKAGE);
        return id == 0 ? null : res.getDrawable(id);
    }
625025
@Override
    public String getTrailer(String name) {
        HttpTrailers trailers = message.getTrailers();
        if (trailers != null)
            return trailers.getHeader(name).asString();
        else
            return null;
    }
907058
String getRequiredInitParameter(String name) throws ServletException {
        String value = getInitParameter(name);
        if (value == null) {
            throw new ServletException(MessageFormat.format(nls.getString("Missing.required.initialization.parameter","Missing required initialization parameter: {0}"), new Object[]{name}));
        }

        return value;
    }
872461
@NotNull
    public Optional<String> firstRequestHeader(@NotNull String name) throws IllegalStateException {
        List<String> list = requestHeader(name);
        if (list.isEmpty()) return Optional.absent();
        return Optional.of(list.get(0));
    }
1359835
public Parameterable getParameterableHeader(String name)
			throws ServletParseException {
		if(logger.isDebugEnabled()) {
			logger.debug("getParameterableHeader - name=" + name);
		}

		if (name == null)
			throw new NullPointerException(
					"Parametrable header name cant be null!!!");

		String nameToSearch = getCorrectHeaderName(name);

		Header h = this.message.getHeader(nameToSearch);

		if(!isParameterable(name)) {
			throw new ServletParseException(name + " header is not parameterable !");
		}

		if(h == null) {
			return null;
		}

		return createParameterable(h, getFullHeaderName(name), message instanceof Request);
	}
590991
@Nullable
  public URL getResource (final String name)
  {
    URL ret = null;

    if (m_aBestCandidate != null)
    {
      ret = m_aBestCandidate.getResource (name);
      if (ret != null)
        return ret;
      m_aBestCandidate = null;
    }

    IClassLoadHelper aLoadHelper = null;

    final Iterator <IClassLoadHelper> iter = m_aLoadHelpers.iterator ();
    while (iter.hasNext ())
    {
      aLoadHelper = iter.next ();
      ret = aLoadHelper.getResource (name);
      if (ret != null)
        break;
    }

    m_aBestCandidate = aLoadHelper;
    return ret;
  }
256186
public static service get(nitro_service service, String name) throws Exception{
		service obj = new service();
		obj.set_name(name);
		service response = (service) obj.get_resource(service);
		return response;
	}
1359064
@Override
    public PortletDelegationDispatcher createRequestDispatcher(
            PortletRequest portletRequest, String fName) {
        final IPortletDefinition portletDefinition =
                this.portletDefinitionRegistry.getPortletDefinitionByFname(fName);
        final IPortletDefinitionId portletDefinitionId = portletDefinition.getPortletDefinitionId();

        return this.createRequestDispatcher(portletRequest, portletDefinitionId);
    }
1119531
public String getHeader( final String name ) {
        List<String> headerVals = getRequestInfo().getHeader(name);
        if( headerVals != null && !headerVals.isEmpty() ) {
            return headerVals.get(0);
        }
        return null;
    }
918471
public static Logger getLogger(String name){
		if (name == null) {
			throw new IllegalArgumentException(
			        "The Logger name must not be null.");
		}

		return loggerRepository.getLogger(name);
	}
1179417
protected final Optional<URL> defaultGetResource(String name) {
        return Optional.ofNullable(getClassLoader().getResource(name));
    }
318958
private static Class getByClass(String name) {
        try {
            return Thread.currentThread().getContextClassLoader().loadClass(name);
        } catch (Throwable e) {
        }
        return null;
    }
835475
@Deprecated
    @Nullable
    public String getFirstHeader(String name) {
        requireNonNull(name);
        return getHeader(name);
    }
1104806
public String header(String name) {
    Objects.requireNonNull(name);
    return headers.get(name);
  }
873205
public static function getHandlerByName($name)
    {
        return isset(self::$namedRoutes[$name]) ? self::$namedRoutes[$name][1] : null;
    }
700054
@Override
  public URL getResource(String name) {

    URL result = null;

    if (bestCandidate != null) {
      result = bestCandidate.getResource(name);
      if (result == null) {
        bestCandidate = null;
      }
    }

    ClassLoadHelper loadHelper = null;

    Iterator<ClassLoadHelper> iter = loadHelpers.iterator();
    while (iter.hasNext()) {
      loadHelper = iter.next();

      result = loadHelper.getResource(name);
      if (result != null) {
        break;
      }
    }

    bestCandidate = loadHelper;
    return result;
  }