private int getRemotePort(Request request) {
        for (String header : getConnector(request).connectorConfig().accessLog().remotePortHeaders()) {
            String value = request.getHeaders().get(header);
            if (value != null) {
                OptionalInt maybePort = parsePort(value);
                if (maybePort.isPresent()) return maybePort.getAsInt();
            }
        }
        return Request.getRemotePort(request);
    }
Implements the request accessing logging for Jetty.

@author Oyvind Bakksjo
@author bjorncs
container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/AccessLogRequestLog.java