This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // a plugin to randomize Edge servers in a Wowza loadbalancer Origin/Edge scenario | |
| // just compile to a .jar, add to the lib folder and add this one to the Server or VHost.xml as per the documentation | |
| // then just add the ServerExtensionRandomizer to always return a random Edge server if all other decisions return more than one server in the end | |
| package com.wowza.plugin.xxx; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import java.util.Map; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| /** | |
| * @param $urlQuery Query taken from a www.europeana.eu search query | |
| * @return array Array with input for the query and qf parameter(s) to use in the API | |
| */ | |
| function europeanaCollectionsQueryToAPIQuery($urlQuery) { | |
| // Parameters, not qf's | |
| $parameters = array('MEDIA', 'COLOURPALETTE', 'REUSABILITY'); |