# File config_manager.rb, line 108 def get_external_context(url=nil) context = request.env['HTTP_MOBIO_CONTEXT'] if url if context and context != '' external_context = MOBIO_CONFIG[url].gsub(EXTERNAL_CONTEXT_PROP, context) RAILS_DEFAULT_LOGGER.debug 'ConfigManager: Setting the uri to: "' + external_context + '" for the current request.' unless not defined? RAILS_DEFAULT_LOGGER return external_context else return MOBIO_CONFIG[url].gsub('/' + EXTERNAL_CONTEXT_PROP, '') end end end