Examples of Control


Examples of javax.naming.ldap.Control

        // controls
        List<Control> controlList = new ArrayList<Control>();
        if ( useTreeDeleteControl
            && browserConnection.getRootDSE().isControlSupported( StudioControl.TREEDELETE_CONTROL.getOid() ) )
        {
            Control treeDeleteControl = new BasicControl( StudioControl.TREEDELETE_CONTROL.getOid(),
                StudioControl.TREEDELETE_CONTROL.isCritical(), StudioControl.TREEDELETE_CONTROL.getControlValue() );
            controlList.add( treeDeleteControl );
        }
        if ( useManageDsaItControl
            && browserConnection.getRootDSE().isControlSupported( StudioControl.MANAGEDSAIT_CONTROL.getOid() ) )
View Full Code Here

Examples of javax.sound.sampled.Control

        try {
            SourceDataLine line = (SourceDataLine)mixer.getLine(lInfo[0]);

            // get Controls
            Control controls[] = line.getControls();
            System.out.println("    available Controls on Line 0:");
            for (int i = 0; i < controls.length; i++)
                System.out.println("        Control["+i+"]: "+controls[i]);

            System.out.println("");
View Full Code Here

Examples of oop13.space.testing.TestCollisionsInFrame.Control

  public TestCollisionsToShip() {
    this.listIndividuals = new CopyOnWriteArrayList<>();
    this.spaceShip = new ShipTest();
    this.listIndividuals.add(this.spaceShip);
    this.testPanel = new GamePanel(this.listIndividuals);
    this.testPanel.addKeyListener(new Control(this.listIndividuals));
    this.testPanel.setFocusable(true);
  }
View Full Code Here

Examples of org.apache.abdera.model.Control

    Link link = getEditMediaLink(type, hreflang);
    return (link != null) ? link.getResolvedHref() : null;
  }
 
  public void setDraft(boolean draft) {
    Control control = getControl();
    if (control == null && draft) {
      control = ((FOMFactory)factory).newControl(this);
    }
    if (control != null) control.setDraft(draft);
  }
View Full Code Here

Examples of org.apache.beehive.controls.api.bean.Control

     * Get the interface hint attribute value (as a string) from the Control annotation,
     * if it wasn't specified return null.
     */
    private String getControlInterfaceHint() {

        Control controlAnnotation = _fieldDecl.getAnnotation(Control.class);
        String interfaceHint = null;
        try {
            // always excepts
            controlAnnotation.interfaceHint();
        } catch (MirroredTypeException mte) {
            interfaceHint = ("java.lang.Object".equals(mte.getQualifiedName())) ? null : mte.getQualifiedName();
        }
        return interfaceHint;
    }
View Full Code Here

Examples of org.apache.click.Control

     * matching name
     * @param name the name of the control to find
     * @return the control which name matched the given name
     */
    public static Control findControlByName(Container container, String name) {
        Control control = (Control) container.getControl(name);

        if (control != null) {
            return control;

        } else {
            for (int i = 0; i < container.getControls().size(); i++) {
                Control childControl = (Control) container.getControls().get(i);

                if (childControl instanceof Container) {
                    Container childContainer = (Container) childControl;
                    Control found = findControlByName(childContainer, name);
                    if (found != null) {
                        return found;
                    }
                }
            }
View Full Code Here

Examples of org.apache.cxf.greeter_control.Control

        SpringBusFactory bf = new SpringBusFactory();
        bus = bf.createBus();
        BusFactory.setDefaultBus(bus);       
        LOG.fine("Created bus " + bus + " with default cfg");
        ControlService cs = new ControlService();
        Control control = cs.getControlPort();

        updateAddressPort(control, PORT);
       
        assertTrue("Failed to start greeter", control.startGreeter(SERVER_LOSS_CFG));
        LOG.fine("Started greeter server.");
       
        Bus greeterBus = new SpringBusFactory().createBus(CFG);
        LOG.fine("Created bus " + greeterBus + " with cfg : " + CFG);       
        BusFactory.setDefaultBus(greeterBus);
       
        // avoid early client resends
        greeterBus.getExtension(RMManager.class).getRMAssertion().getBaseRetransmissionInterval()
            .setMilliseconds(new BigInteger("60000"));
        GreeterService gs = new GreeterService();
        Greeter greeter = gs.getGreeterPort();
        updateAddressPort(greeter, PORT);
       
        LOG.fine("Created greeter client.");
        ConnectionHelper.setKeepAliveConnection(greeter, true);

        Client c = ClientProxy.getClient(greeter);
        HTTPConduit hc = (HTTPConduit)(c.getConduit());
        HTTPClientPolicy cp = hc.getClient();
        cp.setDecoupledEndpoint("http://localhost:" + DECOUPLE_PORT + "/decoupled_endpoint");

        out = new OutMessageRecorder();
        in = new InMessageRecorder();

        greeterBus.getOutInterceptors().add(out);
        greeterBus.getInInterceptors().add(in);
       
        LOG.fine("Configured greeter client.");

        Response<GreetMeResponse> responses[] = cast(new Response[3]);
       
        responses[0] = greeter.greetMeAsync("one");
        responses[1] = greeter.greetMeAsync("two");
        responses[2] = greeter.greetMeAsync("three");
       
        verifyMissingResponse(responses);
        control.stopGreeter(SERVER_LOSS_CFG);
        LOG.fine("Stopped greeter server");
      
        out.getOutboundMessages().clear();
        in.getInboundMessages().clear();
       
        control.startGreeter(CFG);
        String nl = System.getProperty("line.separator");
        LOG.fine("Restarted greeter server" + nl + nl);
       
        verifyServerRecovery(responses);
       
        greeterBus.shutdown(true);
       
        control.stopGreeter(CFG);
        bus.shutdown(true);
    }
View Full Code Here

Examples of org.apache.directory.api.ldap.model.message.Control

        // We can try to update the userPassword now
        ModifyRequest modifyRequest = new ModifyRequestImpl();
        modifyRequest.setName( userDn );

        Control ppolicyControl = req.getControl( PasswordPolicy.OID );
        if( ppolicyControl != null )
        {
            modifyRequest.addControl( ppolicyControl );
        }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.Control

                Control[] searchControls = search.getControls();
                if ( searchControls != null && searchControls.length > 0 )
                {
                    for ( int i = 0; i < searchControls.length; i++ )
                    {
                        Control c = searchControls[i];
                        if ( Control.SUBENTRIES_CONTROL.equals( c ) )
                        {
                            subentriesControlButton.setSelection( true );
                        }
                    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.codec.Control

        SearchResultDone searchResultDone = ( ( SearchResponse ) parser.getBatchResponse().getCurrentResponse() )
            .getSearchResultDone();

        assertEquals( 1, searchResultDone.getControls().size() );

        Control control = searchResultDone.getCurrentControl();

        assertTrue( control.getCriticality() );

        assertEquals( "1.2.840.113556.1.4.643", control.getControlType() );

        assertEquals( "Some text", StringTools.utf8ToString( ( byte[] ) control.getControlValue() ) );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.