| | |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | |
| | | import org.opends.server.api.ClientConnection; |
| | |
| | | // Look at the controls included in the request and ensure that all |
| | | // critical controls are supported by the handler. |
| | | List<Control> requestControls = getRequestControls(); |
| | | if ((requestControls != null) && (! requestControls.isEmpty())) |
| | | if (requestControls != null && !requestControls.isEmpty()) |
| | | { |
| | | for (Control c : requestControls) |
| | | for (Iterator<Control> iter = requestControls.iterator(); iter |
| | | .hasNext();) |
| | | { |
| | | final Control c = iter.next(); |
| | | try |
| | | { |
| | | if (!AccessControlConfigManager.getInstance() |
| | |
| | | { |
| | | // We don't want to process this non-critical control, so |
| | | // remove it. |
| | | removeRequestControl(c); |
| | | iter.remove(); |
| | | continue; |
| | | } |
| | | } |