/** * Creates a new getDecoratedMessage() of SearchResultDoneDsml. * * @param codec The LDAP Service to use */ public SearchResultDoneDsml( LdapApiService codec ) { super( codec, new SearchResultDoneImpl() ); }
/** * {@inheritDoc} */ @Override public int hashCode() { int hash = 37; hash = hash * 17 + getLdapResult().hashCode(); hash = hash * 17 + super.hashCode(); return hash; }
/** * {@inheritDoc} */ @Override public SearchResultDone getResultResponse() { if ( response == null ) { response = new SearchResultDoneImpl( getMessageId() ); } return response; }
/** * {@inheritDoc} */ @Override public int hashCode() { int hash = 37; hash = hash * 17 + getLdapResult().hashCode(); hash = hash * 17 + super.hashCode(); return hash; }
/** * {@inheritDoc} */ @Override public SearchResultDone getResultResponse() { if ( response == null ) { response = new SearchResultDoneImpl( getMessageId() ); } return response; }
/** * {@inheritDoc} */ @Override public int hashCode() { int hash = 37; hash = hash * 17 + getLdapResult().hashCode(); hash = hash * 17 + super.hashCode(); return hash; }
/** * {@inheritDoc} */ @Override public SearchResultDone getResultResponse() { if ( response == null ) { response = new SearchResultDoneImpl( getMessageId() ); } return response; }
/** * 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 ); }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchResultDoneDecorator> container ) { // Now, we can allocate the SearchResultDone Object SearchResultDoneDecorator searchResultDone = new SearchResultDoneDecorator( container.getLdapCodecService(), new SearchResultDoneImpl( container.getMessageId() ) ); container.setMessage( searchResultDone ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05178_SEARCH_RESULT_DONE ) ); } } }
/** * 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 ); }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchResultDoneDecorator> container ) { // Now, we can allocate the SearchResultDone Object SearchResultDoneDecorator searchResultDone = new SearchResultDoneDecorator( container.getLdapCodecService(), new SearchResultDoneImpl( container.getMessageId() ) ); container.setMessage( searchResultDone ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05178_SEARCH_RESULT_DONE ) ); } } }
/** * 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 ); }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchResultDoneDecorator> container ) { // Now, we can allocate the SearchResultDone Object SearchResultDoneDecorator searchResultDone = new SearchResultDoneDecorator( container.getLdapCodecService(), new SearchResultDoneImpl( container.getMessageId() ) ); container.setMessage( searchResultDone ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05178_SEARCH_RESULT_DONE ) ); } } }
/** * 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 ); }
searchDoneResp = new SearchResultDoneImpl( messageId );
/** * 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 ); }
LOG.error( I18n.err( I18n.ERR_05114_ERROR_MESSAGE, msg, ine.getMessage() ) ); SearchResultDoneImpl response = new SearchResultDoneImpl( searchRequest.getMessageId() ); throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_DN_SYNTAX, Dn.EMPTY_DN, ine );
LOG.error( I18n.err( I18n.ERR_05114_ERROR_MESSAGE, msg, ine.getMessage() ) ); SearchResultDoneImpl response = new SearchResultDoneImpl( searchRequest.getMessageId() ); throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_DN_SYNTAX, Dn.EMPTY_DN, ine );