Beispiel #1
0
 static {
   DEFAULT = new ProxyConfig();
   DEFAULT.mode = Mode.HOSTNAMEORMIMETYPE;
   DEFAULT.hostnameWhitelist = new LinkedHashSet<String>();
   DEFAULT.mimetypeWhitelist =
       new LinkedHashSet<String>(
           Arrays.asList(
               "application/xml",
               "text/xml",
               "application/vnd.ogc.se_xml", // OGC Service Exception
               "application/vnd.ogc.se+xml", // OGC Service Exception
               "application/vnd.ogc.success+xml", // OGC Success (SLD Put)
               "application/vnd.ogc.wms_xml", // WMS Capabilities
               "application/vnd.ogc.context+xml", // WMC
               "application/vnd.ogc.gml", // GML
               "application/vnd.ogc.sld+xml", // SLD
               "application/vnd.google-earth.kml+xml" // KML;
               ));
 }
Beispiel #2
0
 @Override
 protected List<String> getItems() {
   return new ArrayList<String>(ProxyConfig.loadConfFromDisk().mimetypeWhitelist);
 }