public static String getServiceRequestHeaderIfAny ( final HttpServletRequest context ) { if ( context == null ) { return null ; } var id = context . getHeader ( CasProtocolConstants . PARAMETER_SERVICE ) ; if ( StringUtils . isBlank ( id ) ) { id = context . getHeader ( "X-" . concat ( CasProtocolConstants . PARAMETER_SERVICE ) ) ; } return id ; }
Gets service request header if any .