| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.sdk.responses; |
| | |
| | | import com.sun.opends.sdk.util.Validator; |
| | | |
| | | |
| | | |
| | | /** |
| | | * Modifiable response implementation. |
| | | * |
| | |
| | | |
| | | |
| | | /** |
| | | * Creates a new abstract response that is an exact copy of the provided |
| | | * response. |
| | | * |
| | | * @param response |
| | | * The response to be copied. |
| | | * @throws NullPointerException |
| | | * If {@code response} was {@code null} . |
| | | */ |
| | | AbstractResponseImpl(Response response) throws NullPointerException |
| | | { |
| | | Validator.ensureNotNull(response); |
| | | controls.addAll(response.getControls()); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public final S addControl(final Control control) throws NullPointerException |