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.
|