Exemplo n.º 1
0
 protected void configClient(HttpClientBuilder cb, Settings settings) throws HTTPException {
   cb.useSystemProperties();
   String agent = (String) settings.get(Prop.USER_AGENT);
   if (agent != null) cb.setUserAgent(agent);
   setInterceptors(cb);
   cb.setContentDecoderRegistry(contentDecoderMap);
 }
Exemplo n.º 2
0
 public Object getSetting(String key) {
   return localsettings.get(key);
 }
Exemplo n.º 3
0
 public static synchronized Object getGlobalSetting(String key) {
   return globalsettings.get(key);
 }