Control ::= SEQUENCE { controlType LDAPOID, criticality BOOLEAN DEFAULT FALSE, controlValue OCTET STRING OPTIONAL }
331332333334335336337338339340341
ObjectInputStream ois = null; try { bais = new ByteArrayInputStream( bytes ); ois = new ObjectInputStream( bais ); StudioControl control = ( StudioControl ) ois.readObject(); searchParameter.getControls().add( control ); ois.close(); } catch ( Exception e ) {
211212213214215216217218219220221
sprResponseControl = ( StudioPagedResultsControl ) responseControl; } } for ( Iterator<StudioControl> it = clonedSearch.getControls().iterator(); it.hasNext(); ) { StudioControl requestControl = it.next(); if ( requestControl instanceof StudioPagedResultsControl ) { sprRequestControl = ( StudioPagedResultsControl ) requestControl; it.remove(); }
393394395396397398399400401402403404405406
search.setCountLimitExceeded( prrc.getCookie() != null ); } else { StudioControl studioControl = new StudioControl(); studioControl.setOid( jndiControl.getID() ); studioControl.setCritical( jndiControl.isCritical() ); studioControl.setControlValue( jndiControl.getEncodedValue() ); search.getResponseControls().add( studioControl ); } } } }
472473474475476477478479480481482483
{ List<StudioControl> ctls = parameter.getControls(); jndiControls = new Control[ctls.size()]; for ( int i = 0; i < ctls.size(); i++ ) { StudioControl ctl = ctls.get( i ); jndiControls[i] = new BasicControl( ctl.getOid(), ctl.isCritical(), ctl.getControlValue() ); } } StudioNamingEnumeration result = browserConnection.getConnection().getJNDIConnectionWrapper().search( searchBase, filter, controls, aliasesDereferencingMethod, referralsHandlingMethod, jndiControls, monitor,
562563564565566567568569570571572573
} List<StudioControl> controls = searchParameter.getControls(); for ( Iterator<StudioControl> it = controls.iterator(); it.hasNext(); ) { StudioControl control = it.next(); if ( !supportedConrolSet.contains( control.getOid().toLowerCase() ) ) { it.remove(); } } }