1 package org.onap.vid.logging
3 import org.onap.portalsdk.core.util.SystemProperties.ECOMP_REQUEST_ID
4 import org.springframework.stereotype.Component
5 import javax.servlet.http.HttpServletRequest
9 fun prioritizedRequestIdHeaders() = listOf(
16 fun highestPriorityHeader(httpRequest: HttpServletRequest): String? {
17 val headers = httpRequest.headerNames.asSequence().toSet().map { it.toUpperCase() }
18 return prioritizedRequestIdHeaders().firstOrNull { headers.contains(it.toUpperCase()) }