Examples of TargetHost


Examples of com.alu.e3.data.model.sub.TargetHost

    return apiContext;
  }

  private static final TargetHost toDataModel(com.alu.e3.prov.restapi.model.TargetHost targetHost) {
    if (targetHost==null) throw new IllegalArgumentException("targetHost must not be null");
    TargetHost t = new TargetHost();
    t.setUrl        (targetHost.getUrl());
    t.setSite        (targetHost.getSite());
    t.setAuthentication    (toDataModel(targetHost.getAuthentication()));
    if (targetHost.getConnectionParameters() != null)
      t.setConnectionParameters(toDataModel(targetHost.getConnectionParameters()));
   
    return t;
  }
View Full Code Here

Examples of com.alu.e3.data.model.sub.TargetHost

    }
   
    // loop on target references
    for(TargetReference targetReference : mergedList) {
     
      TargetHost targetHost = targetReference.getTargetHost();
     
      // get first proxy settings find (they are all equals)
      if(forwardProxy == null) {
        forwardProxy = targetHost.getForwardProxy();
      }
     
      Integer maxConnectionPerRoute = E3HttpClientConfigurer.DEFAULT_CONNECTIONS_PER_ROUTE;
     
      ConnectionParameters connectionParameters = targetHost.getConnectionParameters();
     
      if(connectionParameters != null) {
     
        // get first socket timeout settings find (they are all equals)
        if(socketTimeOut == null) {
View Full Code Here

Examples of com.alu.e3.data.model.sub.TargetHost

    api.getApiDetail().getContexts().add(context2);
    return api;
  }
 
  protected TargetHost targetHostWithUrlAndSite(String url, String site) {
    TargetHost target = new TargetHost();
    target.setUrl(url);
    target.setSite(site);
   
    return target;
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.TargetHost

    pauth.getAuths().add(AuthType.AUTHKEY);
    pauth.getAuths().add(AuthType.BASIC);
    pauth.getAuths().add(AuthType.IP_WHITE_LIST);


    TargetHost th = new TargetHost();
    th.setUrl("http://www.yahoo.com");

    TargetHost th2 = new TargetHost();
    th2.setUrl("http://www.google.com");

    Authentication auth = new Authentication();
    auth.setType("NoAuth");
    Data d = new Data();
    Key k = new Key();
    k.setName("aKey00");
    k.setValue("key000Val");
    d.setKey(Arrays.asList(k));
    auth.setData(d);
    th.setAuthentication(auth);
    th2.setAuthentication(auth);

    env.setTargetHosts(Arrays.asList(th, th2));
    api.setTdrEnabled(new TdrEnabled());
    api.getTdrEnabled().setEnabled("true");
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.TargetHost

    List<TargetHost> targetList = new ArrayList<TargetHost>();

    api.setEndpoint("www.yahoo.fr");

    TargetHost to1 = new TargetHost();
    to1.setUrl("http://www.google.com");
    targetList.add(to1);

    TargetHost to2 = new TargetHost();
    to2.setUrl("http://www.google.com?toto=tutu");
    targetList.add(to2);

    TargetHost to3 = new TargetHost();
    to3.setUrl("http://www.google.com?toto=tutu&tata=tete&titi=toto");
    targetList.add(to3);

    env.setTargetHosts(targetList);

    TdrEnabled tdr = new TdrEnabled();
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.TargetHost

    pauth.getAuths().add(AuthType.AUTHKEY);
    pauth.getAuths().add(AuthType.BASIC);
    pauth.getAuths().add(AuthType.IP_WHITE_LIST);

    TargetHost th = new TargetHost();
    th.setUrl("http://www.yahoo.com");

    TargetHost th2 = new TargetHost();
    th2.setUrl("http://www.google.com");

    Authentication auth = new Authentication();
    auth.setType("NoAuth");
    Data d = new Data();
    Key k = new Key();
    k.setName("aKey00");
    k.setValue("key000Val");
    d.setKey(Arrays.asList(k));
    auth.setData(d);
    th.setAuthentication(auth);
    th2.setAuthentication(auth);

    env.setTargetHosts(Arrays.asList(th, th2));
    api.setTdrEnabled(new TdrEnabled());
    api.getTdrEnabled().setEnabled("true");
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.TargetHost

    List<TargetHost> targetList = new ArrayList<TargetHost>();

    api.setEndpoint("www.yahoo.fr");

    TargetHost to1 = new TargetHost();
    to1.setUrl("http://www.google.com");
    targetList.add(to1);

    TargetHost to2 = new TargetHost();
    to2.setUrl("http://www.google.com?toto=tutu");
    targetList.add(to2);

    TargetHost to3 = new TargetHost();
    to3.setUrl("http://www.google.com?toto=tutu&tata=tete&titi=toto");
    targetList.add(to3);

    env.setTargetHosts(targetList);

    TdrEnabled tdr = new TdrEnabled();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.