@ SneakyThrows public static String getCasServerHostName ( ) { val hostName = InetAddress . getLocalHost ( ) . getHostName ( ) ; val index = hostName . indexOf ( ' ' ) ; if ( index > 0 ) { return hostName . substring ( 0 , index ) ; } return hostName ; }
Gets cas server host name .