/** * {@inheritDoc} */ @Override public Asn1Container newMessageContainer() { return new LdapMessageContainer<MessageDecorator<? extends Message>>( this ); }
/** * {@inheritDoc} */ @Override public SearchRequest removeControl( Control control ) { return ( SearchRequest ) super.removeControl( control ); }
/** * * Creates a new instance of LdapConnection with the given connection configuration. * * @param config the configuration of the LdapConnection */ public LdapNetworkConnection( LdapConnectionConfig config ) { this( config, LdapApiServiceFactory.getSingleton() ); }
/** * {@inheritDoc} */ @Override public Message addAllControls( Control[] controls ) { for ( Control control : controls ) { addControl( control ); } return this; }
/** * Creates a new instance of a ConfigurableBinaryAttributeDetector. This will * load a set of default attribute ID that are known to be binary. */ public DefaultConfigurableBinaryAttributeDetector() { setBinaryAttributes( DEFAULT_BINARY_ATTRIBUTES ); }
/** * {@inheritDoc} */ @Override public SearchRequest setMessageId( int messageId ) { return ( SearchRequest ) super.setMessageId( messageId ); }
/** * @return Returns true if the attribute is binary. * @param id checks if an attribute id is binary */ public boolean isBinary( String id ) { return binaryAttributeDetector.isBinary( id ); }
/** * {@inheritDoc} */ @Override public SearchRequest addAllControls( Control[] controls ) { return ( SearchRequest ) super.addAllControls( controls ); }
/** * @see Object#hashCode() */ @Override public int hashCode() { int hash = super.hashCode(); hash = hash * 17 + pscSeqLength; return hash; }
/** * Creates a new instance of LdapProtocolEncoder. * * @param ldapApiService The Service to use */ public LdapProtocolEncoder( LdapApiService ldapApiService ) { this.encoder = new LdapEncoder( ldapApiService ); }
/** * Creates a new instance of an AbstractLdapConnection */ protected AbstractLdapConnection() { this( LdapApiServiceFactory.getSingleton() ); }
/** * {@inheritDoc} */ @Override public SearchRequest addControl( Control control ) { return ( SearchRequest ) super.addControl( control ); }
/** * {@inheritDoc} */ @Override public SearchRequest removeControl( Control control ) { return ( SearchRequest ) super.removeControl( control ); }
/** * {@inheritDoc} */ @Override public SearchRequest setMessageId( int messageId ) { return ( SearchRequest ) super.setMessageId( messageId ); }
/** * @return Returns true if the attribute is binary. * @param id checks if an attribute id is binary */ public boolean isBinary( String id ) { return binaryAttributeDetector.isBinary( id ); }
/** * Creates a new instance of LdapProtocolCodecFactory. */ public LdapProtocolCodecFactory() { this( LdapApiServiceFactory.getSingleton() ); }
/** * {@inheritDoc} */ @Override public SearchRequest addControl( Control control ) { return ( SearchRequest ) super.addControl( control ); }
/** * Creates a new instance of LdapProtocolCodecFactory. */ public LdapProtocolCodecFactory() { this( LdapApiServiceFactory.getSingleton() ); }
/** * {@inheritDoc} */ @Override public Message addAllControls( Control[] controls ) { for ( Control control : controls ) { addControl( control ); } return this; }
/** * Creates a new instance of an AbstractLdapConnection */ protected AbstractLdapConnection() { this( LdapApiServiceFactory.getSingleton() ); }