/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer bb = ByteBuffer.wrap( controlBytes ); AdDirSyncContainer container = new AdDirSyncContainer( getCodecService(), this ); DECODER.decode( bb, container ); return this; } }
public void action( AdDirSyncContainer 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.getAdDirSyncControl().setCookie( cookie ); container.setGrammarEndAllowed( true ); } } );
/** * Creates a new AdDirSyncControl object. * * @param codec The LDAP Service to use * @param control The AdDirSync control to decorate */ public AdDirSyncContainer( LdapApiService codec, AdDirSync control ) { super(); this.codec = codec; this.control = control; setGrammar( AdDirSyncGrammar.getInstance() ); setTransition( AdDirSyncStatesEnum.START_STATE ); }
public void action( AdDirSyncContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { int maxReturnLength = IntegerDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08102_MAX_RETURN_LENGTH, maxReturnLength ) ); } container.getAdDirSyncControl().setMaxReturnLength( maxReturnLength ); } catch ( IntegerDecoderException ide ) { String msg = I18n.err( I18n.ERR_08106_AD_DIR_SYNC_MAX_RETURN_LENGTH_DECODING_ERROR, ide.getMessage() ); LOG.error( msg, ide ); throw new DecoderException( msg, ide ); } } } );
public void action( AdDirSyncContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { int maxReturnLength = IntegerDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08102_MAX_RETURN_LENGTH, maxReturnLength ) ); } container.getAdDirSyncControl().setMaxReturnLength( maxReturnLength ); } catch ( IntegerDecoderException ide ) { String msg = I18n.err( I18n.ERR_08106_AD_DIR_SYNC_MAX_RETURN_LENGTH_DECODING_ERROR, ide.getMessage() ); LOG.error( msg, ide ); throw new DecoderException( msg, ide ); } } } );
public void action( AdDirSyncContainer 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.getAdDirSyncControl().setCookie( cookie ); container.setGrammarEndAllowed( true ); } } );
/** * Creates a new AdDirSyncControl object. * * @param codec The LDAP Service to use * @param control The AdDirSync control to decorate */ public AdDirSyncContainer( LdapApiService codec, AdDirSync control ) { super(); this.codec = codec; this.control = control; setGrammar( AdDirSyncGrammar.getInstance() ); setTransition( AdDirSyncStatesEnum.START_STATE ); }
public void action( AdDirSyncContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { int maxReturnLength = IntegerDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_08102_MAX_RETURN_LENGTH, maxReturnLength ) ); } container.getAdDirSyncControl().setMaxReturnLength( maxReturnLength ); } catch ( IntegerDecoderException ide ) { String msg = I18n.err( I18n.ERR_08106_AD_DIR_SYNC_MAX_RETURN_LENGTH_DECODING_ERROR, ide.getMessage() ); LOG.error( msg, ide ); throw new DecoderException( msg, ide ); } } } );
/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer bb = ByteBuffer.wrap( controlBytes ); AdDirSyncContainer container = new AdDirSyncContainer( getCodecService(), this ); DECODER.decode( bb, container ); return this; } }
public void action( AdDirSyncContainer 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.getAdDirSyncControl().setCookie( cookie ); container.setGrammarEndAllowed( true ); } } );
/** * Creates a new AdDirSyncControl object. * * @param codec The LDAP Service to use * @param control The AdDirSync control to decorate */ public AdDirSyncContainer( LdapApiService codec, AdDirSync control ) { super(); this.codec = codec; this.control = control; setGrammar( AdDirSyncGrammar.getInstance() ); setTransition( AdDirSyncStatesEnum.START_STATE ); }
public void action( AdDirSyncContainer container ) throws DecoderException BerValue value = container.getCurrentTLV().getValue(); container.getAdDirSyncControl().setFlags( flags );
/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer bb = ByteBuffer.wrap( controlBytes ); AdDirSyncContainer container = new AdDirSyncContainer( getCodecService(), this ); DECODER.decode( bb, container ); return this; } }
/** * Creates a new AdDirSyncControl Container object. * * @param codec The LDAP Service to use */ public AdDirSyncContainer( LdapApiService codec ) { super(); this.codec = codec; this.control = new AdDirSyncDecorator( codec ); setGrammar( AdDirSyncGrammar.getInstance() ); setTransition( AdDirSyncStatesEnum.START_STATE ); }
public void action( AdDirSyncContainer container ) throws DecoderException BerValue value = container.getCurrentTLV().getValue(); container.getAdDirSyncControl().setFlags( flags );
/** * Creates a new AdDirSyncControl Container object. * * @param codec The LDAP Service to use */ public AdDirSyncContainer( LdapApiService codec ) { super(); this.codec = codec; this.control = new AdDirSyncDecorator( codec ); setGrammar( AdDirSyncGrammar.getInstance() ); setTransition( AdDirSyncStatesEnum.START_STATE ); }
public void action( AdDirSyncContainer container ) throws DecoderException BerValue value = container.getCurrentTLV().getValue(); container.getAdDirSyncControl().setFlags( flags );
/** * Creates a new AdDirSyncControl Container object. * * @param codec The LDAP Service to use */ public AdDirSyncContainer( LdapApiService codec ) { super(); this.codec = codec; this.control = new AdDirSyncDecorator( codec ); setGrammar( AdDirSyncGrammar.getInstance() ); setTransition( AdDirSyncStatesEnum.START_STATE ); }