/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer bb = ByteBuffer.wrap( controlBytes ); SyncRequestValueContainer container = new SyncRequestValueContainer( this ); DECODER.decode( bb, container ); return this; } }
/** * Creates a new SyncRequestValueControlContainer object. We will store one grammar, * it's enough ... */ public SyncRequestValueContainer() { super(); setGrammar( SyncRequestValueGrammar.getInstance() ); setTransition( SyncRequestValueStatesEnum.START_STATE ); }
public void action( SyncRequestValueContainer 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.getSyncRequestValueControl().setCookie( cookie ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
public void action( SyncRequestValueContainer 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.getSyncRequestValueControl().setCookie( cookie ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
public void action( SyncRequestValueContainer 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.getSyncRequestValueControl().setCookie( cookie ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
/** * Creates a new SyncRequestValueControlContainer object. We will store one grammar, * it's enough ... */ public SyncRequestValueContainer() { super(); setGrammar( SyncRequestValueGrammar.getInstance() ); setTransition( SyncRequestValueStatesEnum.START_STATE ); }
/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer bb = ByteBuffer.wrap( controlBytes ); SyncRequestValueContainer container = new SyncRequestValueContainer( this ); DECODER.decode( bb, container ); return this; } }
public void action( SyncRequestValueContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { boolean reloadHint = BooleanDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08104_RELOAD_HINT, reloadHint ) ); } container.getSyncRequestValueControl().setReloadHint( reloadHint ); // We can have an END transition container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException bde ) { String msg = I18n.err( I18n.ERR_08101_RELOAD_HINT_DECODING_FAILED ); LOG.error( msg, bde ); throw new DecoderException( msg, bde ); } } } );
/** * Creates a new SyncRequestValueControlContainer object. We will store one grammar, * it's enough ... */ public SyncRequestValueContainer() { super(); setGrammar( SyncRequestValueGrammar.getInstance() ); setTransition( SyncRequestValueStatesEnum.START_STATE ); }
/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer bb = ByteBuffer.wrap( controlBytes ); SyncRequestValueContainer container = new SyncRequestValueContainer( this ); DECODER.decode( bb, container ); return this; } }
public void action( SyncRequestValueContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { boolean reloadHint = BooleanDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08104_RELOAD_HINT, reloadHint ) ); } container.getSyncRequestValueControl().setReloadHint( reloadHint ); // We can have an END transition container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException bde ) { String msg = I18n.err( I18n.ERR_08101_RELOAD_HINT_DECODING_FAILED ); LOG.error( msg, bde ); throw new DecoderException( msg, bde ); } } } );
/** * Creates a new SyncRequestValueControlContainer object. We will store one grammar, * it's enough ... * * @param control The control to store */ public SyncRequestValueContainer( SyncRequestValue control ) { super(); this.control = control; setGrammar( SyncRequestValueGrammar.getInstance() ); setTransition( SyncRequestValueStatesEnum.START_STATE ); }
public void action( SyncRequestValueContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { boolean reloadHint = BooleanDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08104_RELOAD_HINT, reloadHint ) ); } container.getSyncRequestValueControl().setReloadHint( reloadHint ); // We can have an END transition container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException bde ) { String msg = I18n.err( I18n.ERR_08101_RELOAD_HINT_DECODING_FAILED ); LOG.error( msg, bde ); throw new DecoderException( msg, bde ); } } } );
/** * Creates a new SyncRequestValueControlContainer object. We will store one grammar, * it's enough ... * * @param control The control to store */ public SyncRequestValueContainer( SyncRequestValue control ) { super(); this.control = control; setGrammar( SyncRequestValueGrammar.getInstance() ); setTransition( SyncRequestValueStatesEnum.START_STATE ); }
public void action( SyncRequestValueContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { boolean reloadHint = BooleanDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08104_RELOAD_HINT, reloadHint ) ); } container.getSyncRequestValueControl().setReloadHint( reloadHint ); // We can have an END transition container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException bde ) { String msg = I18n.err( I18n.ERR_08101_RELOAD_HINT_DECODING_FAILED ); LOG.error( msg, bde ); throw new DecoderException( msg, bde ); } } } );
/** * Creates a new SyncRequestValueControlContainer object. We will store one grammar, * it's enough ... * * @param control The control to store */ public SyncRequestValueContainer( SyncRequestValue control ) { super(); this.control = control; setGrammar( SyncRequestValueGrammar.getInstance() ); setTransition( SyncRequestValueStatesEnum.START_STATE ); }
public void action( SyncRequestValueContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { boolean reloadHint = BooleanDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08104_RELOAD_HINT, reloadHint ) ); } container.getSyncRequestValueControl().setReloadHint( reloadHint ); // We can have an END transition container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException bde ) { String msg = I18n.err( I18n.ERR_08101_RELOAD_HINT_DECODING_FAILED ); LOG.error( msg, bde ); throw new DecoderException( msg, bde ); } } } );
public void action( SyncRequestValueContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { boolean reloadHint = BooleanDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08104_RELOAD_HINT, reloadHint ) ); } container.getSyncRequestValueControl().setReloadHint( reloadHint ); // We can have an END transition container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException bde ) { String msg = I18n.err( I18n.ERR_08101_RELOAD_HINT_DECODING_FAILED ); LOG.error( msg, bde ); throw new DecoderException( msg, bde ); } } } );
public void action( SyncRequestValueContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { // Check that the value is into the allowed interval int mode = IntegerDecoder.parse( value, SynchronizationModeEnum.UNUSED.getValue(), SynchronizationModeEnum.REFRESH_AND_PERSIST.getValue() ); SynchronizationModeEnum modeEnum = SynchronizationModeEnum.getSyncMode( mode ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08100_MODE, modeEnum ) ); } container.getSyncRequestValueControl().setMode( modeEnum ); // We can have an END transition container.setGrammarEndAllowed( true ); } catch ( IntegerDecoderException ide ) { String msg = I18n.err( I18n.ERR_08100_SYNC_REQUEST_VALUE_MODE_DECODING_FAILED ); LOG.error( msg, ide ); throw new DecoderException( msg, ide ); } } } );
public void action( SyncRequestValueContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { // Check that the value is into the allowed interval int mode = IntegerDecoder.parse( value, SynchronizationModeEnum.UNUSED.getValue(), SynchronizationModeEnum.REFRESH_AND_PERSIST.getValue() ); SynchronizationModeEnum modeEnum = SynchronizationModeEnum.getSyncMode( mode ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08100_MODE, modeEnum ) ); } container.getSyncRequestValueControl().setMode( modeEnum ); // We can have an END transition container.setGrammarEndAllowed( true ); } catch ( IntegerDecoderException ide ) { String msg = I18n.err( I18n.ERR_08100_SYNC_REQUEST_VALUE_MODE_DECODING_FAILED ); LOG.error( msg, ide ); throw new DecoderException( msg, ide ); } } } );