setDebug
setDebug(String sessionID, boolean debug)
setDebug メソッドを使用して、セッションのすべてのコード・パスのロギング冗長レベルを設定できます。
*
sessionID - セッション ID を識別する文字列。
*
debug - デバッグ情報を有効または無効にするブール。 有効な値は true または false です。 true の場合、Interact はランタイム・サーバー・ログにデバッグ情報を記録します。
戻り値
ランタイム・サーバーは、以下の属性が設定されたレスポンス・オブジェクトを使用して setDebug に応答します。
*
*
*
*
以下の例は、セッションのデバッグ・レベルの変更を示します。
sessionId は、このセッションを開始した startSession 呼び出しで使用されるセッションを識別する同じ文字列です。
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());