/** * Creates a new SyncDoneValueControlContainer object. * * @param codec The LDAP Service to use * @param control The control to decorate */ public SyncDoneValueContainer( LdapApiService codec, SyncDoneValue control ) { super(); this.codec = codec; this.control = control; setGrammar( SyncDoneValueGrammar.getInstance() ); setTransition( SyncDoneValueStatesEnum.START_STATE ); }
public void action( SyncDoneValueContainer container ) { // As all the values are optional or defaulted, we can end here container.setGrammarEndAllowed( true ); } } );
public void action( SyncDoneValueContainer container ) { BerValue value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08000_COOKIE, Strings.dumpBytes( cookie ) ) ); } container.getSyncDoneValueControl().setCookie( cookie ); container.setGrammarEndAllowed( true ); } } );
/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer bb = ByteBuffer.wrap( controlBytes ); SyncDoneValueContainer container = new SyncDoneValueContainer( getCodecService(), this ); DECODER.decode( bb, container ); return this; } }
public void action( SyncDoneValueContainer container ) { BerValue value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08000_COOKIE, Strings.dumpBytes( cookie ) ) ); } container.getSyncDoneValueControl().setCookie( cookie ); container.setGrammarEndAllowed( true ); } } );
/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer bb = ByteBuffer.wrap( controlBytes ); SyncDoneValueContainer container = new SyncDoneValueContainer( getCodecService(), this ); DECODER.decode( bb, container ); return this; } }
public void action( SyncDoneValueContainer container ) { BerValue value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08000_COOKIE, Strings.dumpBytes( cookie ) ) ); } container.getSyncDoneValueControl().setCookie( cookie ); container.setGrammarEndAllowed( true ); } } );
/** * Creates a new SyncDoneValueControlContainer object. * * @param codec The LDAP Service to use * @param control The control to decorate */ public SyncDoneValueContainer( LdapApiService codec, SyncDoneValue control ) { super(); this.codec = codec; this.control = control; setGrammar( SyncDoneValueGrammar.getInstance() ); setTransition( SyncDoneValueStatesEnum.START_STATE ); }
public void action( SyncDoneValueContainer container ) { // As all the values are optional or defaulted, we can end here container.setGrammarEndAllowed( true ); } } );
/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer bb = ByteBuffer.wrap( controlBytes ); SyncDoneValueContainer container = new SyncDoneValueContainer( getCodecService(), this ); DECODER.decode( bb, container ); return this; } }
public void action( SyncDoneValueContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { boolean refreshDeletes = BooleanDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08001_REFRESH_DELETES, refreshDeletes ) ); } container.getSyncDoneValueControl().setRefreshDeletes( refreshDeletes ); // the END transition for grammar container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException be ) { String msg = I18n.err( I18n.ERR_08001_CANNOT_DECODE_REFRESH_DELETES ); LOG.error( msg, be ); throw new DecoderException( msg, be ); } } };
/** * Creates a new SyncDoneValueControlContainer object. * * @param codec The LDAP Service to use * @param control The control to decorate */ public SyncDoneValueContainer( LdapApiService codec, SyncDoneValue control ) { super(); this.codec = codec; this.control = control; setGrammar( SyncDoneValueGrammar.getInstance() ); setTransition( SyncDoneValueStatesEnum.START_STATE ); }
public void action( SyncDoneValueContainer container ) { // As all the values are optional or defaulted, we can end here container.setGrammarEndAllowed( true ); } } );
public void action( SyncDoneValueContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { boolean refreshDeletes = BooleanDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08001_REFRESH_DELETES, refreshDeletes ) ); } container.getSyncDoneValueControl().setRefreshDeletes( refreshDeletes ); // the END transition for grammar container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException be ) { String msg = I18n.err( I18n.ERR_08001_CANNOT_DECODE_REFRESH_DELETES ); LOG.error( msg, be ); throw new DecoderException( msg, be ); } } };
/** * Creates a new SyncDoneValueControlContainer object. * * @param codec The LDAP Service to use */ public SyncDoneValueContainer( LdapApiService codec ) { super(); this.codec = codec; this.control = new SyncDoneValueDecorator( codec ); setGrammar( SyncDoneValueGrammar.getInstance() ); setTransition( SyncDoneValueStatesEnum.START_STATE ); }
public void action( SyncDoneValueContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { boolean refreshDeletes = BooleanDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08001_REFRESH_DELETES, refreshDeletes ) ); } container.getSyncDoneValueControl().setRefreshDeletes( refreshDeletes ); // the END transition for grammar container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException be ) { String msg = I18n.err( I18n.ERR_08001_CANNOT_DECODE_REFRESH_DELETES ); LOG.error( msg, be ); throw new DecoderException( msg, be ); } } };
/** * Creates a new SyncDoneValueControlContainer object. * * @param codec The LDAP Service to use */ public SyncDoneValueContainer( LdapApiService codec ) { super(); this.codec = codec; this.control = new SyncDoneValueDecorator( codec ); setGrammar( SyncDoneValueGrammar.getInstance() ); setTransition( SyncDoneValueStatesEnum.START_STATE ); }
/** * Creates a new SyncDoneValueControlContainer object. * * @param codec The LDAP Service to use */ public SyncDoneValueContainer( LdapApiService codec ) { super(); this.codec = codec; this.control = new SyncDoneValueDecorator( codec ); setGrammar( SyncDoneValueGrammar.getInstance() ); setTransition( SyncDoneValueStatesEnum.START_STATE ); }