Examples of connect()


Examples of com.sun.sgs.impl.client.comm.ClientConnector.connect()

                throw re;
            }
            connectionStateChanging = true;
        }
        ClientConnector connector = ClientConnector.create(props);
        connector.connect(new SimpleClientConnectionListener());
    }

    /* -- Implement ServerSession -- */
   
    /**
 
View Full Code Here

Examples of com.sun.sgs.test.impl.service.session.TestClientSessionServiceImplv4.DummyClient.connect()

  DummyClient client = createClientToRelocate(newNodeHost);
  DummyClient otherClient = createDummyClient("foo");
  SgsTestNode newNode = additionalNodes.get(newNodeHost);
  try {
      int newPort = newNode.getAppPort();
      assertFalse(otherClient.connect(newPort).login());
      client.relocate(newPort, true, true);
      checkBindings(1);
      client.assertDisconnectedCallbackNotInvoked();
  } finally {
      client.disconnect();
View Full Code Here

Examples of com.sun.star.bridge.XConnectionClientSide.connect()

    smgr.addFactories(neededServices, null);

    XConnectionClientSide xConnectionClientSide = (XConnectionClientSide)smgr.createInstance("com.sun.star.bridge.Connection");

    try {
        if(xConnectionClientSide.connect("socket:localhost:5001", "bad guy", "secret")) {
        Object object = xConnectionClientSide.getRemoteObject();

          doTest(object);

        object = null;
View Full Code Here

Examples of com.sun.star.connection.XConnector.connect()

            XBridgeFactory factory = (XBridgeFactory) UnoRuntime.queryInterface(
                XBridgeFactory.class,
                context.getServiceManager().createInstanceWithContext(
                    "com.sun.star.bridge.BridgeFactory", context));
            System.out.println("Client: Connecting...");
            XConnection connection = connector.connect(connectionDescription);
            System.out.println("Client: ...connected...");
            XBridge bridge = factory.createBridge(
                "", protocolDescription, connection, null);
            System.out.println("Client: ...bridged.");
            return bridge;
View Full Code Here

Examples of com.sun.star.sdb.application.XDatabaseDocumentUI.connect()

                Object aController = xDBSource.getCurrentController();
                assure("Controller of xOfficeDatabaseDocument is empty!", aController != null);
//                     log.println("3");
               
                XDatabaseDocumentUI aDBDocUI = (XDatabaseDocumentUI)UnoRuntime.queryInterface(XDatabaseDocumentUI.class, aController);
                boolean isConnect = aDBDocUI.connect();
//                     if (isConnect)
//                     {
//                         System.out.println("true");
//                     }
//                     else
View Full Code Here

Examples of com.sun.star.sdbc.XDriver.connect()

            tRes.tested("getDataDefinitionByConnection()",
                        Status.skipped(false));
            return;
        }
        try {
            connection = xDriver.connect(url, info);
        } catch(com.sun.star.sdbc.SQLException e) {
            e.printStackTrace(log);
            bRes = false;
        }
        if (connection == null) {
View Full Code Here

Examples of com.sun.xml.bind.GrammarImpl.connect()

            // deserialize the bgm
            ObjectInputStream ois = new ObjectInputStream( is );
            GrammarImpl g = (GrammarImpl)ois.readObject();
            ois.close();
           
            g.connect(new Grammar[]{g});    // connect to itself
           
            return g;
        } catch( Exception e ) {
            throw new JAXBException(
                Messages.format( Messages.UNABLE_TO_READ_BGM ),
View Full Code Here

Examples of com.sun.xml.internal.ws.policy.EffectivePolicyModifier.connect()

     * @param policyMap
     * @return
     */
    private PolicyMap doAlternativeSelection(PolicyMap policyMap) {
        final EffectivePolicyModifier modifier = EffectivePolicyModifier.createEffectivePolicyModifier();
        modifier.connect(policyMap);
        try {
            AlternativeSelector.doSelection(modifier);
        } catch (PolicyException e) {
            throw new WebServiceException(e);
        }
View Full Code Here

Examples of com.sun.xml.ws.policy.EffectivePolicyModifier.connect()

     * @param policyMap
     * @return
     */
    private PolicyMap doAlternativeSelection(PolicyMap policyMap) {
        final EffectivePolicyModifier modifier = EffectivePolicyModifier.createEffectivePolicyModifier();
        modifier.connect(policyMap);
        try {
            AlternativeSelector.doSelection(modifier);
        } catch (PolicyException e) {
            throw new WebServiceException(e);
        }
View Full Code Here

Examples of com.sun.xml.ws.policy.PolicyMapExtender.connect()

     */
    private static PolicyMap mergePolicyMap(PolicyMap policyMap, PolicyMap clientPolicyMap) throws PolicyException {
        final PolicyMapExtender mapExtender = PolicyMapExtender.createPolicyMapExtender();
        final String clientWsitConfigId = PolicyConstants.CLIENT_CONFIGURATION_IDENTIFIER;
        if (policyMap != null) {
            mapExtender.connect(policyMap);
            try {
                for (PolicyMapKey key : clientPolicyMap.getAllServiceScopeKeys()) {
                    final Policy policy = clientPolicyMap.getServiceEffectivePolicy(key);
                    // setting subject to provided URL of client WSIT config
                    mapExtender.putServiceSubject(key, new PolicySubject(clientWsitConfigId, policy));
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.