/*
(non-Javadoc)

@see com.ibm.ws.sib.processor.impl.interfaces.DestinationHandler#getDefaultForwardRoutingPath()
494713
@Override
    public SIDestinationAddress[] getDefaultForwardRoutingPath()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        {
            SibTr.entry(tc, "getDefaultForwardRoutingPath");
            SibTr.exit(tc, "getDefaultForwardRoutingPath", _defaultFrp);
        }

        return _defaultFrp;
    }
591467
public String getRequestPath() {
        Map<String,String> requestHeaders = getRequestHeaders();
        if (requestHeaders == null)
            return null;
        String path = requestHeaders.get(Listener.METAINFO_REQUEST_PATH);
        return path.startsWith("/") ? path : "/" + path;
    }
408435
@Override
    public List<String> getDefaultProviderChain() {
        List<String> list = new ArrayList<>(getProviderNames());
        Collections.sort(list);
        return list;
    }
451128
public String getRawPath() {
    List<String> pathParts = this.pathParts;
    if (pathParts == null) {
      return null;
    }
    StringBuilder buf = new StringBuilder();
    appendRawPathFromParts(buf);
    return buf.toString();
  }
1257124
public java.util.List<RouteFilterPrefix> getRequestedAllowedPrefixesToDirectConnectGateway() {
        if (requestedAllowedPrefixesToDirectConnectGateway == null) {
            requestedAllowedPrefixesToDirectConnectGateway = new com.amazonaws.internal.SdkInternalList<RouteFilterPrefix>();
        }
        return requestedAllowedPrefixesToDirectConnectGateway;
    }
154689
@SuppressWarnings("deprecation")
    @Override
    public String getRealPath(String arg0) {
        try {
            collaborator.preInvoke(componentMetaData);
            return request.getRealPath(arg0);
        } finally {
            collaborator.postInvoke();
        }
    }
656971
public ProteusApplication addDefaultRoutes(RoutingHandler router)
    {

        if (config.hasPath("health.statusPath")) {
            try {
                final String statusPath = config.getString("health.statusPath");

                router.add(Methods.GET, statusPath, (final HttpServerExchange exchange) ->
                {
                    exchange.getResponseHeaders().add(Headers.CONTENT_TYPE, MediaType.TEXT_PLAIN);
                    exchange.getResponseSender().send("OK");
                });

                this.registeredEndpoints.add(EndpointInfo.builder().withConsumes("*/*").withProduces("text/plain").withPathTemplate(statusPath).withControllerName("Internal").withMethod(Methods.GET).build());

            } catch (Exception e) {
                log.error("Error adding health status route.", e.getMessage());
            }
        }

        if (config.hasPath("application.favicon")) {
            try {

                final ByteBuffer faviconImageBuffer;

                final File faviconFile = new File(config.getString("application.favicon"));

                if (!faviconFile.exists()) {
                    try (final InputStream stream = this.getClass().getResourceAsStream(config.getString("application.favicon"))) {
                        ByteArrayOutputStream baos = new ByteArrayOutputStream();

                        byte[] buffer = new byte[4096];
                        int read = 0;
                        while (read != -1) {
                            read = stream.read(buffer);
                            if (read > 0) {
                                baos.write(buffer, 0, read);
                            }
                        }

                        faviconImageBuffer = ByteBuffer.wrap(baos.toByteArray());
                    }

                } else {
                    try (final InputStream stream = Files.newInputStream(Paths.get(config.getString("application.favicon")))) {
                        ByteArrayOutputStream baos = new ByteArrayOutputStream();

                        byte[] buffer = new byte[4096];
                        int read = 0;
                        while (read != -1) {
                            read = stream.read(buffer);
                            if (read > 0) {
                                baos.write(buffer, 0, read);
                            }
                        }

                        faviconImageBuffer = ByteBuffer.wrap(baos.toByteArray());
                    }
                }

                router.add(Methods.GET, "favicon.ico", (final HttpServerExchange exchange) ->
                {
                    exchange.getResponseHeaders().add(Headers.CONTENT_TYPE, io.sinistral.proteus.server.MediaType.IMAGE_X_ICON.toString());
                    exchange.getResponseSender().send(faviconImageBuffer);
                });

            } catch (Exception e) {
                log.error("Error adding favicon route.", e.getMessage());
            }
        }

        return this;
    }
107025
public static String getSourcePathForClass(String className, String defaultValue) {

	try {

	    return getSourcePathForClass(ClassUtil.loadClass(className), defaultValue);
	}
	catch (Throwable t) {
	    ExceptionUtil.rethrowIfNecessary(t);
	}

	return defaultValue;
    }
1348903
public JsDestinationAddress getRoutingDestination() {
        String name = (String) getHdr2().getField(JsHdr2Access.ROUTINGDESTINATION_VALUE_NAME);
        /* If the name is null, the RoutingDestination has never been set. */
        if (name != null) {
            byte[] b = (byte[]) getHdr2().getField(JsHdr2Access.ROUTINGDESTINATION_VALUE_MEID);
            return new JsDestinationAddressImpl(name
                            , false
                            , (b == null) ? null : new SIBUuid8(b)
                            , (String) getHdr2().getField(JsHdr2Access.ROUTINGDESTINATION_VALUE_BUSNAME));
        }
        else {
            return null;
        }
    }
293849
@Pure
	public static String getSystemDefault(RoadType type) {
		switch (type) {
		case OTHER:
			return DEFAULT_OTHER_ROAD_TYPE;
		case PRIVACY_PATH:
			return DEFAULT_PRIVACY_ROAD_TYPE;
		case TRACK:
			return DEFAULT_TRACK_ROAD_TYPE;
		case BIKEWAY:
			return DEFAULT_BIKEWAY_ROAD_TYPE;
		case LOCAL_ROAD:
			return DEFAULT_LOCAL_ROAD_ROAD_TYPE;
		case INTERCHANGE_RAMP:
			return DEFAULT_INTERCHANGE_RAMP_ROAD_TYPE;
		case MAJOR_URBAN_AXIS:
			return DEFAULT_MAJOR_URBAN_ROAD_TYPE;
		case SECONDARY_ROAD:
			return DEFAULT_SECONDARY_ROAD_TYPE;
		case MAJOR_ROAD:
			return DEFAULT_MAJOR_ROAD_TYPE;
		case FREEWAY:
			return DEFAULT_FREEWAY_ROAD_TYPE;
		default:
		}
		throw new IllegalArgumentException();
	}
1165197
public String getIDPath()
    {
        String strIDPath = this.getID();
        if (this.getParentProxy() != null)
        {
            String strParentPath = this.getParentProxy().getIDPath();
            if (strParentPath != null)
                strIDPath = strParentPath + PATH_SEPARATOR + strIDPath;
        }
        return strIDPath;
    }
1317265
public String getDefaultListName() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
        if (cachedDefaultListName != null) {
            return cachedDefaultListName;
        }
        return getPrivacyWithListNames().getDefaultName();
    }
1085011
private function getDefaultRoutePath(): string
    {
        $pattern = $this
            ->adminConfiguration
            ->getParameter('routing_url_pattern')
        ;
        $path = str_replace('{admin}', $this->adminName, $pattern);
        $path = str_replace('{action}', $this->actionName, $path);

        if (in_array($this->actionName, ['edit', 'delete'])) {
            $path .= '/{id}';
        }

        return $path;
    }
30817
@Override
    public String getPath() {
        final String fullPath = request.getRequestURI();
        // it shouldn't be null, but in case it is, it's better to return empty string
        if (fullPath == null) {
            return "";
        }
        final String context = request.getContextPath();
        // this one shouldn't be null either, but in case it is, then let's consider it is empty
        if (context != null) {
            return fullPath.substring(context.length());
        }
        return fullPath;
    }
478142
@Pure
	public static List<String> getSystemDefaults(TrafficDirection direction) {
		final List<String> array = new ArrayList<>();
		try {
			int i = 0;
			while (true) {
				array.add(getSystemDefault(direction, i));
				++i;
			}
		} catch (AssertionError e) {
			throw e;
		} catch (Throwable exception) {
			//
		}
		return array;
	}
1014643
private DefaultSipApplicationRouterInfo getFirstRequestApplicationEntry(
            List<? extends SipApplicationRouterInfo> defaultSipApplicationRouterInfoList, SipServletRequest initialRequest) {
        SipSession sipSession = initialRequest.getSession(false);
        if (sipSession != null) {
            String appName = sipSession.getApplicationSession().getApplicationName();
            Iterator<? extends SipApplicationRouterInfo> iterator = defaultSipApplicationRouterInfoList.iterator();
            while (iterator.hasNext()) {
                DefaultSipApplicationRouterInfo next = (DefaultSipApplicationRouterInfo) iterator.next();
                if (next.getApplicationName().equals(appName))
                    return next;
            }
        }
        return null;
    }
1267986
@Override
    public IPortalUrlBuilder getDefaultUrl(HttpServletRequest request) {
        final IUrlNodeSyntaxHelper urlNodeSyntaxHelper =
                this.urlNodeSyntaxHelperRegistry.getCurrentUrlNodeSyntaxHelper(request);
        final String defaultLayoutNodeId = urlNodeSyntaxHelper.getDefaultLayoutNodeId(request);
        return this.getPortalUrlBuilderByLayoutNode(request, defaultLayoutNodeId, UrlType.RENDER);
    }