| | |
| | | |
| | | |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | import org.opends.sdk.ResultCode; |
| | | |
| | | |
| | | |
| | | /** |
| | | * Unmodifiable result implementation. |
| | | * |
| | | * |
| | | * @param <S> |
| | | * The type of result. |
| | | */ |
| | |
| | | |
| | | /** |
| | | * Creates a new unmodifiable result implementation. |
| | | * |
| | | * |
| | | * @param impl |
| | | * The underlying result implementation to be made |
| | | * unmodifiable. |
| | | * The underlying result implementation to be made unmodifiable. |
| | | */ |
| | | AbstractUnmodifiableResultImpl(S impl) |
| | | AbstractUnmodifiableResultImpl(final S impl) |
| | | { |
| | | super(impl); |
| | | this.impl = impl; |
| | |
| | | |
| | | |
| | | |
| | | public final S addReferralURI(String uri) |
| | | public final S addReferralURI(final String uri) |
| | | throws UnsupportedOperationException, NullPointerException |
| | | { |
| | | throw new UnsupportedOperationException(); |
| | |
| | | |
| | | |
| | | |
| | | public final S clearReferralURIs() |
| | | throws UnsupportedOperationException |
| | | { |
| | | throw new UnsupportedOperationException(); |
| | | } |
| | | |
| | | |
| | | |
| | | public final Throwable getCause() |
| | | { |
| | | return impl.getCause(); |
| | |
| | | |
| | | |
| | | |
| | | public final Iterable<String> getReferralURIs() |
| | | public final List<String> getReferralURIs() |
| | | { |
| | | return impl.getReferralURIs(); |
| | | return Collections.unmodifiableList(impl.getReferralURIs()); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | public final boolean hasReferralURIs() |
| | | { |
| | | return impl.hasReferralURIs(); |
| | | } |
| | | |
| | | |
| | | |
| | | public final boolean isReferral() |
| | | { |
| | | return impl.isReferral(); |
| | |
| | | |
| | | |
| | | |
| | | public final S setCause(Throwable cause) |
| | | public final S setCause(final Throwable cause) |
| | | throws UnsupportedOperationException |
| | | { |
| | | throw new UnsupportedOperationException(); |
| | |
| | | |
| | | |
| | | |
| | | public final S setDiagnosticMessage(String message) |
| | | public final S setDiagnosticMessage(final String message) |
| | | throws UnsupportedOperationException |
| | | { |
| | | throw new UnsupportedOperationException(); |
| | |
| | | |
| | | |
| | | |
| | | public final S setMatchedDN(String dn) |
| | | public final S setMatchedDN(final String dn) |
| | | throws UnsupportedOperationException |
| | | { |
| | | throw new UnsupportedOperationException(); |
| | |
| | | |
| | | |
| | | |
| | | public final S setResultCode(ResultCode resultCode) |
| | | public final S setResultCode(final ResultCode resultCode) |
| | | throws UnsupportedOperationException, NullPointerException |
| | | { |
| | | throw new UnsupportedOperationException(); |