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

Teradata® AppCenter Java SDK User Guide

prodname
Teradata AppCenter
vrm_release
2.0
created_date
September 2020
category
Programming Reference
User Guide
featnum
B035-1118-090K

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);