congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
DME2Manager.newClient
Code IndexAdd Tabnine to your IDE (free)

How to use
newClient
method
in
com.att.aft.dme2.api.DME2Manager

Best Java code snippets using com.att.aft.dme2.api.DME2Manager.newClient (Showing top 2 results out of 315)

origin: com.att.cadi/cadi-aaf

  private static void dme2RawTest(DME2Manager dm, String aafurl, String user, String pass) {
    try { 
      if(dm==null) {
        return;
      }
      URI uri = new URI(aafurl);
      print(true,"DME2 Direct Client Coding Methodology",uri.toString());
      DME2Client client = dm.newClient( uri, 3000);
      client.setMethod("GET"); // FYI, DME2 defaults to "POST"
      client.setContext("/authz/perms/user/"+user); // DME2 direct requires separate setting of Context from URI
      if(pass!=null) { // rely on Cert if no pass
        client.setCredentials(user, pass);
      }
      client.setPayload(""); // DME2  will not send without something
      String resp = client.sendAndWait(7000);
      System.out.println(resp);
    } catch(Throwable e) {
      e.printStackTrace();
    }
  }
}
origin: org.onap.aaf.cadi/cadi-aaf

  private static void dme2RawTest(DME2Manager dm, String aafurl, String user, String pass) {
    try { 
      if(dm==null) {
        return;
      }
      URI uri = new URI(aafurl);
      print(true,"DME2 Direct Client Coding Methodology",uri.toString());
      DME2Client client = dm.newClient( uri, 3000);
      client.setMethod("GET"); // FYI, DME2 defaults to "POST"
      client.setContext("/authz/perms/user/"+user); // DME2 direct requires separate setting of Context from URI
      if(pass!=null) { // rely on Cert if no pass
        client.setCredentials(user, pass);
      }
      client.setPayload(""); // DME2  will not send without something
      String resp = client.sendAndWait(7000);
      System.out.println(resp);
    } catch(Throwable e) {
      e.printStackTrace();
    }
  }
}
com.att.aft.dme2.apiDME2ManagernewClient

Popular methods of DME2Manager

  • <init>
  • refresh
  • getDefaultInstance
  • getEndpointRegistry
  • findEndpoints
  • getConfig
  • getEndpoints
  • getHostname
  • getPort
  • getServer
  • setClientCredentials
  • setClientCredentials

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now