001/*
002 * The contents of this file are subject to the terms of the Common Development and
003 * Distribution License (the License). You may not use this file except in compliance with the
004 * License.
005 *
006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
007 * specific language governing permission and limitations under the License.
008 *
009 * When distributing Covered Software, include this CDDL Header Notice in each file and include
010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
011 * Header, with the fields enclosed by brackets [] replaced by your own identifying
012 * information: "Portions Copyright [year] [name of copyright owner]".
013 *
014 * Portions Copyright 2013-2016 ForgeRock AS.
015 */
016package org.opends.server.core;
017
018import org.forgerock.opendj.ldap.ByteString;
019
020/**
021 * This abstract class wraps/decorates a given extended operation. This class
022 * will be extended by sub-classes to enhance the functionality of the
023 * ExtendedOperationBasis.
024 */
025public abstract class ExtendedOperationWrapper extends
026    OperationWrapper<ExtendedOperation> implements ExtendedOperation
027{
028  /**
029   * Creates a new extended operation wrapper based on the provided extended
030   * operation.
031   *
032   * @param extended
033   *          The extended operation to wrap
034   */
035  public ExtendedOperationWrapper(ExtendedOperation extended)
036  {
037    super(extended);
038  }
039
040  @Override
041  public String getRequestOID()
042  {
043    return getOperation().getRequestOID();
044  }
045
046  @Override
047  public String getResponseOID()
048  {
049    return getOperation().getResponseOID();
050  }
051
052  @Override
053  public ByteString getRequestValue()
054  {
055    return getOperation().getRequestValue();
056  }
057
058  @Override
059  public ByteString getResponseValue()
060  {
061    return getOperation().getResponseValue();
062  }
063
064  @Override
065  public void setResponseOID(String responseOID)
066  {
067    getOperation().setResponseOID(responseOID);
068  }
069
070  @Override
071  public void setResponseValue(ByteString responseValue)
072  {
073    getOperation().setResponseValue(responseValue);
074  }
075}