setDebug(String sessionID, boolean debug)
![]() |
sessionID - セッション ID を識別する文字列。
|
![]() |
debug - デバッグ情報を有効または無効にするブール。 有効な値は true または false です。 true の場合、Interact はランタイム・サーバー・ログにデバッグ情報を記録します。
|
boolean newDebugFlag=false;
/** make the call */
response = api.setDebug(sessionId, newDebugFlag);
/** Process the response appropriately */
// check if response is successful or not
if(response.getStatusCode() == Response.STATUS_SUCCESS)
{
System.out.println("setDebug call processed with no warnings or errors");
}
else if(response.getStatusCode() == Response.STATUS_WARNING)
{
System.out.println("setDebug call processed with a warning");
}
else
{
System.out.println("setDebug call processed with an error");
}
// For any non-successes, there should be advisory messages explaining why
if(response.getStatusCode() != Response.STATUS_SUCCESS)
printDetailMessageOfWarningOrError("setDebug",
response.getAdvisoryMessages());
Copyright IBM Corporation 2013. All Rights Reserved.
|