StringBuilder buffer = new StringBuilder(100);
appendHeader(bindOperation, "BIND", CATEGORY_RESPONSE, buffer);
buffer.append(" result=");
buffer.append(bindOperation.getResultCode().getIntValue());
MessageBuilder msg = bindOperation.getErrorMessage();
if ((msg != null) && (msg.length() > 0))
{
buffer.append(" message=\"");
buffer.append(msg);
buffer.append('\"');
}
Message failureMessage = bindOperation.getAuthFailureReason();
if (failureMessage != null)
{
buffer.append(" authFailureID=");
buffer.append(failureMessage.getDescriptor().getId());
buffer.append(" authFailureReason=\"");
buffer.append(failureMessage);
buffer.append('\"');
}
msg = bindOperation.getAdditionalLogMessage();
if ((msg != null) && (msg.length() > 0))
{
buffer.append(" additionalInfo=\"");
buffer.append(msg);
buffer.append('\"');
}