setDebug(String sessionID, boolean debug)
![]() |
sessionID-a string which identifies the session ID.
|
![]() |
debug-a boolean which enables or disables debug information. Valid values are true or false. If true, Interact logs debug information to the runtime server log.
|
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 2014. All Rights Reserved.
|