Tabnine Logo
ApiClient.setUserAgent
Code IndexAdd Tabnine to your IDE (free)

How to use
setUserAgent
method
in
io.swagger.client.ApiClient

Best Java code snippets using io.swagger.client.ApiClient.setUserAgent (Showing top 2 results out of 315)

origin: MammatusTech/qbit-microservices-examples

public ApiClient() {
 // Use ISO 8601 format for date and datetime.
 // See https://en.wikipedia.org/wiki/ISO_8601
 this.dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
 // Use UTC as the default time zone.
 this.dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
 // Set default User-Agent.
 setUserAgent("Java-Swagger");
 // Setup authentications (key: authentication name, value: authentication).
 authentications = new HashMap<String, Authentication>();
 // Prevent the authentications from being modified.
 authentications = Collections.unmodifiableMap(authentications);
}
origin: de.adorsys.multibanking/finapi-adapter

public ApiClient() {
  httpClient = new OkHttpClient();
  verifyingSsl = true;
  json = new JSON();
  // Set default User-Agent.
  setUserAgent("Swagger-Codegen/1.0.0/java");
  // Setup authentications (key: authentication name, value: authentication).
  authentications = new HashMap<String, Authentication>();
  authentications.put("finapi_auth", new OAuth());
  // Prevent the authentications from being modified.
  authentications = Collections.unmodifiableMap(authentications);
}
io.swagger.clientApiClientsetUserAgent

Javadoc

Set the User-Agent header's value (by adding to the default header map).

Popular methods of ApiClient

  • <init>
  • addDefaultHeader
    Add a default header.
  • deserialize
    Deserialize response body to Java object, according to the return type and the Content-Type response
  • escapeString
    Escape the given string to be used as URL query value.
  • parameterToPairs
    Formats the specified collection query parameters to a list of Pair objects. Note that the values of
  • parameterToString
    Format the given parameter object into string.
  • selectHeaderAccept
    Select the Accept header's value from the given accepts array: if JSON exists in the given array, us
  • selectHeaderContentType
    Select the Content-Type header's value from the given array: if JSON exists in the given array, use
  • serialize
    Serialize the given Java object into request body according to the object's class and the request Co
  • updateParamsForAuth
    Update query and header parameters based on authentication settings.
  • applySslSettings
    Apply SSL related settings to httpClient according to the current values of verifyingSsl and sslCaCe
  • buildCall
    Build HTTP call with the given options.
  • applySslSettings,
  • buildCall,
  • buildRequest,
  • buildRequestBodyFormEncoding,
  • buildRequestBodyMultipart,
  • buildUrl,
  • downloadFileFromResponse,
  • execute,
  • executeAsync

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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