protected Map < URI , AttributeValue > getEnvironment ( HttpServletRequest request ) { Map < URI , AttributeValue > envAttr = new HashMap < URI , AttributeValue > ( ) ; String ip = request . getRemoteAddr ( ) ; if ( ip != null && ! ip . isEmpty ( ) ) { envAttr . put ( Constants . HTTP_REQUEST . CLIENT_IP_ADDRESS . getURI ( ) , new StringAttribute ( ip ) ) ; } return envAttr ; }
Returns a map of environment attributes .