/** * {@inheritDoc} */ @Override public int hashCode() { int hash = 37; hash = hash * 17 + getLdapResult().hashCode(); hash = hash * 17 + super.hashCode(); return hash; }
/** * {@inheritDoc} */ @Override public int hashCode() { int hash = 37; hash = hash * 17 + getLdapResult().hashCode(); hash = hash * 17 + super.hashCode(); return hash; }
/** * {@inheritDoc} */ @Override public int hashCode() { int hash = 37; hash = hash * 17 + getLdapResult().hashCode(); hash = hash * 17 + super.hashCode(); return hash; }
/** * Checks for equality by using the underlying LdapResult objects of this * SearchResponseDone stub. * * @param obj * the object to be tested for equality * @return true if obj is equivalent to this SearchResponseDone impl */ @Override public boolean equals( Object obj ) { // quickly return if the obj is this object if ( obj == this ) { return true; } if ( !super.equals( obj ) ) { return false; } LdapResult result = ( ( SearchResultDone ) obj ).getLdapResult(); return getLdapResult().equals( result ); }
/** * Checks for equality by using the underlying LdapResult objects of this * SearchResponseDone stub. * * @param obj * the object to be tested for equality * @return true if obj is equivalent to this SearchResponseDone impl */ @Override public boolean equals( Object obj ) { // quickly return if the obj is this object if ( obj == this ) { return true; } if ( !super.equals( obj ) ) { return false; } LdapResult result = ( ( SearchResultDone ) obj ).getLdapResult(); return getLdapResult().equals( result ); }
/** * Creates a new instance of NoticeOfDisconnect. * * @param rcode The {@link ResultCodeEnum} value to wrap */ private SearchNoDResponse( ResultCodeEnum rcode ) { super(); switch ( rcode ) { case UNAVAILABLE: break; case PROTOCOL_ERROR: break; case STRONG_AUTH_REQUIRED: break; default: throw new IllegalArgumentException( I18n.err( I18n.ERR_13503_RESULT_CODE_SHOULD_BE_IN, ResultCodeEnum.UNAVAILABLE, ResultCodeEnum.PROTOCOL_ERROR, ResultCodeEnum.STRONG_AUTH_REQUIRED ) ); } super.getLdapResult().setDiagnosticMessage( rcode.toString() + ": The server will disconnect!" ); super.getLdapResult().setMatchedDn( null ); super.getLdapResult().setResultCode( rcode ); }
/** * Creates a new instance of NoticeOfDisconnect. * * @param rcode The {@link ResultCodeEnum} value to wrap */ private SearchNoDResponse( ResultCodeEnum rcode ) { super(); switch ( rcode ) { case UNAVAILABLE: break; case PROTOCOL_ERROR: break; case STRONG_AUTH_REQUIRED: break; default: throw new IllegalArgumentException( I18n.err( I18n.ERR_13503_RESULT_CODE_SHOULD_BE_IN, ResultCodeEnum.UNAVAILABLE, ResultCodeEnum.PROTOCOL_ERROR, ResultCodeEnum.STRONG_AUTH_REQUIRED ) ); } super.getLdapResult().setDiagnosticMessage( rcode.toString() + ": The server will disconnect!" ); super.getLdapResult().setMatchedDn( null ); super.getLdapResult().setResultCode( rcode ); }
/** * Creates a new instance of NoticeOfDisconnect. * * @param rcode The {@link ResultCodeEnum} value to wrap */ private SearchNoDResponse( ResultCodeEnum rcode ) { super(); switch ( rcode ) { case UNAVAILABLE: break; case PROTOCOL_ERROR: break; case STRONG_AUTH_REQUIRED: break; default: throw new IllegalArgumentException( I18n.err( I18n.ERR_13503_RESULT_CODE_SHOULD_BE_IN, ResultCodeEnum.UNAVAILABLE, ResultCodeEnum.PROTOCOL_ERROR, ResultCodeEnum.STRONG_AUTH_REQUIRED ) ); } super.getLdapResult().setDiagnosticMessage( rcode.toString() + ": The server will disconnect!" ); super.getLdapResult().setMatchedDn( null ); super.getLdapResult().setResultCode( rcode ); }
/** * Checks for equality by using the underlying LdapResult objects of this * SearchResponseDone stub. * * @param obj * the object to be tested for equality * @return true if obj is equivalent to this SearchResponseDone impl */ @Override public boolean equals( Object obj ) { // quickly return if the obj is this object if ( obj == this ) { return true; } if ( !super.equals( obj ) ) { return false; } LdapResult result = ( ( SearchResultDone ) obj ).getLdapResult(); return getLdapResult().equals( result ); }