setAppContext API | Java SDK | Teradata AppCenter - 2.0 - setAppContext API - Teradata AppCenter

Teradata® AppCenter Java SDK User Guide

Product
Teradata AppCenter
Release Number
2.0
Published
September 2020
Language
English (United States)
Last Update
2020-09-28
dita:mapPath
hzw1594325354077.ditamap
dita:ditavalPath
ft:empty

Purpose

The setAppContext API changes the context of an existing AppCenterclient instance. It is primarily used with the getSystems API to set a new system in the client context. However, you can use it to set any other variable.

Java Code Example

AppContext appContext = new AppContext() 
.system(“aster-system”) 
.user("") 
.password("") 
.build(); 
client.setAppContext(appContext);