This method returns the "List containing SIDestinationAddress" form of the
forward routing path that will be set into the message.

Note that this takes the 'big' destination as being the end of the forward
routing path.
169073
protected List getConvertedFRP() {

        List theList = null;
        StringArrayWrapper saw = (StringArrayWrapper) properties.get(FORWARD_ROUTING_PATH);
        if (saw != null) {
            // This list is the forward routing path for the message.
            theList = saw.getMsgForwardRoutingPath();
        }
        return theList;
    }
51696
@Pure
	public static List<String> getPreferredAttributeValuesForTrafficDirection(TrafficDirection direction) {
		final List<String> array = new ArrayList<>();
		int i = 0;
		String value = getPreferredAttributeValueForTrafficDirection(direction, i);
		while (value != null) {
			array.add(value);
			value = getPreferredAttributeValueForTrafficDirection(direction, ++i);
		}
		return array;
	}
251711
public SIDestinationAddress[] getDefaultForwardRoutingPath()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {
      SibTr.entry(tc, "getDefaultForwardRoutingPath");
      SibTr.exit(tc, "getDefaultForwardRoutingPath", null);
    }
    // No op for foreign destinations
    // TODO: It is possible that a slight rearrangement of the class hierachy 
    // could reduce the risk of defects like 301491. We should bear this in mind.
    return null;
  }
124382
public JsDestinationAddress getRoutingDestination() {
    String name = (String)jmo.getField(ControlAccess.ROUTINGDESTINATION_VALUE_NAME);
    /* If the name is null, the RoutingDestination has never been set.        */
    if (name != null) {
      byte[] b = (byte[])jmo.getField(ControlAccess.ROUTINGDESTINATION_VALUE_MEID);
      return new JsDestinationAddressImpl(name
                                         ,false
                                         ,(b == null) ? null : new SIBUuid8(b)
                                         ,(String)jmo.getField(ControlAccess.ROUTINGDESTINATION_VALUE_BUSNAME)
                                         );
    }
    else {
      return null;
    }
  }
1156572
def access_route(self):
        
        if "HTTP_X_FORWARDED_FOR" in self.environ:
            addr = self.environ["HTTP_X_FORWARDED_FOR"].split(",")
            return self.list_storage_class([x.strip() for x in addr])
        elif "REMOTE_ADDR" in self.environ:
            return self.list_storage_class([self.environ["REMOTE_ADDR"]])
        return self.list_storage_class()
421780
public Set<Address> getDestination(MessageID messageID) {
        MessageInfo messageInfo = sentMessages.get(messageID);
        Set<Address> destination;
        if (messageInfo != null) {
            destination = new HashSet<>(messageInfo.destinations);
        } else {
            destination = Collections.emptySet();
        }
        return destination;
    }
564046
def getaddrlist(self):
        
        result = []
        while self.pos < len(self.field):
            ad = self.getaddress()
            if ad:
                result += ad
            else:
                result.append(('', ''))
        return result
637634
protected String getRemoteAddress() {
        String ipAddress = this.response.getRequest().getHeader("x-forwarded-for");
        if (ipAddress == null) {
            ipAddress = this.response.getRequest().getHeader("X_FORWARDED_FOR");
            if (ipAddress == null){
                ipAddress = this.response.getRequest().getRemoteAddr();
            }
        }
        return this.response.getRequest().getScheme() + "://" + ipAddress;
    }
410027
function findRouteByIdentifier(sIdf){
			var i;
			for (i = 0 ; i < routes.length ; i++) {
				if (routes[i].sIdentifier === sIdf) {
					return routes[i];
				}
			}
		}
90219
function path(){
      var nodeList = [];
      var weight = 0;
      var node = destination;
      while(p[node]){
        nodeList.push(node);
        weight += getEdgeWeight(p[node], node);
        node = p[node];
      }
      if (node !== source) {
        throw new Error("No path found");
      }
      nodeList.push(node);
      nodeList.reverse();
      nodeList.weight = weight;
      return nodeList;
    }
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;
	}
1305531
public List<RoutableDestination<T>> getDestinations(String path) {

    String cleanPath = (path.endsWith("/") && path.length() > 1)
      ? path.substring(0, path.length() - 1) : path;

    List<RoutableDestination<T>> result = new ArrayList<>();

    for (ImmutablePair<Pattern, RouteDestinationWithGroups> patternRoute : patternRouteList) {
      Map<String, String> groupNameValuesBuilder = new HashMap<>();
      Matcher matcher =  patternRoute.getFirst().matcher(cleanPath);
      if (matcher.matches()) {
        int matchIndex = 1;
        for (String name : patternRoute.getSecond().getGroupNames()) {
          String value = matcher.group(matchIndex);
          groupNameValuesBuilder.put(name, value);
          matchIndex++;
        }
        result.add(new RoutableDestination<>(patternRoute.getSecond().getDestination(), groupNameValuesBuilder));
      }
    }
    return result;
  }
379433
@Override
    public void setForwardRoutingPath(String[] forwardPath) throws JMSException {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setForwardRoutingPath", (forwardPath == null ? null : Arrays.asList(forwardPath)));

        // If it is an empty array then we consider it to be the same as null.
        if ((forwardPath != null) && (forwardPath.length == 0)) {
            forwardPath = null;
        }

        // Now check that none of the elements is null.
        if (forwardPath != null) {
            // Note that at this point we know that it has at least one element.
            for (int i = 0; i < forwardPath.length; i++) {
                if (forwardPath[i] == null) {
                    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                        SibTr.debug(this, tc, "Element " + i + " of the array is null.");
                    throw (JMSException) JmsErrorUtils.newThrowable(JMSException.class
                                                                    , "INVALID_VALUE_CWSIA0281"
                                                                    , new Object[] { "forwardPath[" + i + "]", "null" }
                                                                    , tc
                                    );
                }
            }
        }

        // Clear the cache of the encoding string since we are changing properties.
        clearCachedEncodings();

        // Clear the cached producerDestinationAddress, as it may now be incorrect
        clearCachedProducerDestinationAddress();

        // Now store or remove the property
        if (forwardPath != null) {
            properties.put(FORWARD_ROUTING_PATH, StringArrayWrapper.create(forwardPath, getDestName()));
        }
        else {
            properties.remove(FORWARD_ROUTING_PATH);
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setForwardRoutingPath");
    }
667540
@Override
    public final void setReverseRoutingPath(List<SIDestinationAddress> value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setReverseRoutingPath", value);
        /* It is OK to pass in null for the List */
        if (value != null) {

            for (int i = 0; i < value.size(); i++) {
                /* It is not valid to have a null entry in the List */
                if (value.get(i) == null) {
                    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                        SibTr.exit(this, tc, "setReverseRoutingPath", "NullPointerException");
                    throw new NullPointerException();
                }
                /* All values must be instances of SIDestinationAddress */
                if (!(value.get(i) instanceof SIDestinationAddress)) {
                    IllegalArgumentException e = new IllegalArgumentException(value.toString());
                    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                        SibTr.exit(this, tc, "setReverseRoutingPath", e);
                    throw e;
                }
            }
        }
        setRRP(value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setReverseRoutingPath");
    }
1257124
public java.util.List<RouteFilterPrefix> getRequestedAllowedPrefixesToDirectConnectGateway() {
        if (requestedAllowedPrefixesToDirectConnectGateway == null) {
            requestedAllowedPrefixesToDirectConnectGateway = new com.amazonaws.internal.SdkInternalList<RouteFilterPrefix>();
        }
        return requestedAllowedPrefixesToDirectConnectGateway;
    }
1344988
def paths_wanted(self):
        """"""
        return set(address.new(b, target='all') for b in self.missing_nodes)
61309
public java.util.List<RouteFilterPrefix> getOverrideAllowedPrefixesToDirectConnectGateway() {
        if (overrideAllowedPrefixesToDirectConnectGateway == null) {
            overrideAllowedPrefixesToDirectConnectGateway = new com.amazonaws.internal.SdkInternalList<RouteFilterPrefix>();
        }
        return overrideAllowedPrefixesToDirectConnectGateway;
    }