mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
28.47.2010 f2160f4bd1c8ac67e5a86a6710d431e8932877f9
sdk/src/org/opends/sdk/responses/AbstractIntermediateResponse.java
@@ -31,12 +31,14 @@
import org.opends.sdk.ByteString;
import com.sun.opends.sdk.util.StaticUtils;
/**
 * An abstract Intermediate response which can be used as the basis for
 * implementing new Intermediate responses.
 *
 *
 * @param <S>
 *          The type of Intermediate response.
 */
@@ -57,28 +59,38 @@
  /**
   * {@inheritDoc}
   */
  public abstract String getResponseName();
  public abstract String getOID();
  /**
   * {@inheritDoc}
   */
  public abstract ByteString getResponseValue();
  public abstract ByteString getValue();
  /**
   * {@inheritDoc}
   */
  public abstract boolean hasValue();
  /**
   * {@inheritDoc}
   */
  @Override
  public String toString()
  {
    final StringBuilder builder = new StringBuilder();
    builder.append("IntermediateResponse(responseName=");
    builder.append(getResponseName() == null ? "" : getResponseName());
    builder.append(", responseValue=");
    final ByteString value = getResponseValue();
    builder.append(value == null ? ByteString.empty() : value);
    builder.append(getOID() == null ? "" : getOID());
    if (hasValue())
    {
      builder.append(", responseValue=");
      StaticUtils.toHexPlusAscii(getValue(), builder, 4);
    }
    builder.append(", controls=");
    builder.append(getControls());
    builder.append(")");
@@ -90,6 +102,7 @@
  /**
   * {@inheritDoc}
   */
  @Override
  @SuppressWarnings("unchecked")
  final S getThis()
  {