Examples of ClientFactory


Examples of com.brewtab.irc.client.ClientFactory

            } catch (UnknownHostException e) {
                localhost = "localhost";
            }
        }

        ClientFactory clientFactory = ClientFactory.newInstance();
        clientFactory.setNick(nick);
        clientFactory.setUsername("log4j");
        clientFactory.setHostname(localhost);
        clientFactory.setRealName("Brewtab IRC log4j appender");

        client = clientFactory.connect(url);
    }
View Full Code Here

Examples of com.evernote.clients.ClientFactory

        } catch (Exception e) {
            return redirect("/account/setting");
        }


        NoteStoreClient noteStoreClient = new ClientFactory(evernoteAuth).createNoteStoreClient();

        // アクセストークンが期限切れで再設定する場合、NoteBookは既に作成されている可能性があるため
        // 作成する前に既存のNotebookが存在するかをチェック
        Notebook notebook = null;
        if(loginUserModel.getEvernoteNotebookId() == null) {
View Full Code Here

Examples of com.evernote.clients.ClientFactory

     */
    private NoteStoreClient getNoteStoreClient(UserModel userModel) throws Exception {

        EvernoteAuth evernoteAuth = new EvernoteAuth(Constants.EVERNOTE_SERVICE, userModel.getEvernoteAccessTokenString());

        return new ClientFactory(evernoteAuth).createNoteStoreClient();
    }
View Full Code Here

Examples of com.google.enterprise.connector.otex.client.ClientFactory

  }

  private GroupAdaptor getGroupsAdaptor()
      throws RepositoryException {
    LivelinkConnector connector = getConnector();
    ClientFactory clientFactory = connector.getClientFactory();
    Client client = clientFactory.createClient();
    return new GroupAdaptor(connector, client);
  }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.wsclient.client.ClientFactory

   * For getting the Authorization manager form the current connector context
   */
  public AuthorizationManager getAuthorizationManager()
      throws RepositoryException {
    LOGGER.info("getAuthorizationManager()");
    ClientFactory clientFactory = connector.getClientFactory();
    SiteDiscoveryHelper siteDiscovery =
        new SiteDiscoveryHelper(sharepointClientContext, null);
    return new SharepointAuthorizationManager(clientFactory,
        sharepointClientContext, siteDiscovery.getMatchingSiteCollections());
  }
View Full Code Here

Examples of com.impetus.kundera.loader.ClientFactory

    public void test()
    {
        EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistenceUnit);
        ClientResolver.getClientFactory(persistenceUnit, null,
                ((EntityManagerFactoryImpl) emf).getKunderaMetadataInstance());
        ClientFactory clientFactory = ClientResolver.getClientFactory(persistenceUnit);
        Assert.assertNotNull(clientFactory);
        Assert.assertTrue(clientFactory.getClass().isAssignableFrom(CoreTestClientFactory.class));
    }
View Full Code Here

Examples of com.netflix.staash.mesh.client.ClientFactory

    public static void main(String[] args) {
        final ScheduledExecutorService executor = Executors.newScheduledThreadPool(10);
       
        final TopicRegistry    topics   = new TopicRegistry(new MemoryTopicFactory());
        final InstanceRegistry registry = new InstanceRegistry();
        final ClientFactory    factory  = new MemoryClientFactory();
        final EndpointPolicy   endpointPolicy = new ChordEndpointPolicy();
       
        topics.createTopic("test");
        topics.addEntry("test"new Entry("Key1", "Value1", System.currentTimeMillis()));
        topics.addEntry("test"new Entry("Key2", "Value2", System.currentTimeMillis()));
View Full Code Here

Examples of com.sun.jersey.test.framework.spi.client.ClientFactory

        return clientFactory;
    }

    private static ClientFactory getDefaultClientFactory() {
        return new ClientFactory() {
            @Override
            public Client create(ClientConfig cc) {
                return Client.create(cc);
            }
        };
View Full Code Here

Examples of gnu.javax.crypto.sasl.ClientFactory

  public void test(TestHarness harness)
  {
    harness.checkPoint("TestOfClientFactory:null");

    ClientFactory factory = new ClientFactory();
    String[] mechanisms = factory.getMechanismNames(null);

    // should see all mechanisms
    harness.check(includes(mechanisms, Registry.SASL_SRP_MECHANISM),
                  Registry.SASL_SRP_MECHANISM);
    harness.check(includes(mechanisms, Registry.SASL_CRAM_MD5_MECHANISM),
                  Registry.SASL_CRAM_MD5_MECHANISM);
    harness.check(includes(mechanisms, Registry.SASL_PLAIN_MECHANISM),
                  Registry.SASL_PLAIN_MECHANISM);
    harness.check(includes(mechanisms, Registry.SASL_ANONYMOUS_MECHANISM),
                  Registry.SASL_ANONYMOUS_MECHANISM);

    harness.checkPoint("TestOfClientFactory:" + Sasl.POLICY_NOPLAINTEXT);
    HashMap p = new HashMap();
    p.put(Sasl.POLICY_NOPLAINTEXT, "true");
    mechanisms = factory.getMechanismNames(p);

    // should see all mechanisms except PLAIN
    harness.check(includes(mechanisms, Registry.SASL_SRP_MECHANISM),
                  Registry.SASL_SRP_MECHANISM);
    harness.check(includes(mechanisms, Registry.SASL_CRAM_MD5_MECHANISM),
                  Registry.SASL_CRAM_MD5_MECHANISM);
    harness.check(!includes(mechanisms, Registry.SASL_PLAIN_MECHANISM),
                  Registry.SASL_PLAIN_MECHANISM);
    harness.check(includes(mechanisms, Registry.SASL_ANONYMOUS_MECHANISM),
                  Registry.SASL_ANONYMOUS_MECHANISM);

    harness.checkPoint("TestOfClientFactory:" + Sasl.POLICY_NOACTIVE);
    p.clear();
    p.put(Sasl.POLICY_NOACTIVE, "true");
    mechanisms = factory.getMechanismNames(p);

    // should see all mechanisms except PLAIN & CRAM-MD5
    harness.check(includes(mechanisms, Registry.SASL_SRP_MECHANISM),
                  Registry.SASL_SRP_MECHANISM);
    harness.check(!includes(mechanisms, Registry.SASL_CRAM_MD5_MECHANISM),
                  Registry.SASL_CRAM_MD5_MECHANISM);
    harness.check(!includes(mechanisms, Registry.SASL_PLAIN_MECHANISM),
                  Registry.SASL_PLAIN_MECHANISM);
    harness.check(includes(mechanisms, Registry.SASL_ANONYMOUS_MECHANISM),
                  Registry.SASL_ANONYMOUS_MECHANISM);

    harness.checkPoint("TestOfClientFactory:" + Sasl.POLICY_NODICTIONARY);
    p.clear();
    p.put(Sasl.POLICY_NODICTIONARY, "true");
    mechanisms = factory.getMechanismNames(p);

    // should see all mechanisms except PLAIN & CRAM-MD5
    harness.check(includes(mechanisms, Registry.SASL_SRP_MECHANISM),
                  Registry.SASL_SRP_MECHANISM);
    harness.check(!includes(mechanisms, Registry.SASL_CRAM_MD5_MECHANISM),
                  Registry.SASL_CRAM_MD5_MECHANISM);
    harness.check(!includes(mechanisms, Registry.SASL_PLAIN_MECHANISM),
                  Registry.SASL_PLAIN_MECHANISM);
    harness.check(includes(mechanisms, Registry.SASL_ANONYMOUS_MECHANISM),
                  Registry.SASL_ANONYMOUS_MECHANISM);

    harness.checkPoint("TestOfClientFactory:" + Sasl.POLICY_NOANONYMOUS);
    p.clear();
    p.put(Sasl.POLICY_NOANONYMOUS, "true");
    mechanisms = factory.getMechanismNames(p);

    // should see all mechanisms except ANONYMOUS
    harness.check(includes(mechanisms, Registry.SASL_SRP_MECHANISM),
                  Registry.SASL_SRP_MECHANISM);
    harness.check(includes(mechanisms, Registry.SASL_CRAM_MD5_MECHANISM),
                  Registry.SASL_CRAM_MD5_MECHANISM);
    harness.check(includes(mechanisms, Registry.SASL_PLAIN_MECHANISM),
                  Registry.SASL_PLAIN_MECHANISM);
    harness.check(!includes(mechanisms, Registry.SASL_ANONYMOUS_MECHANISM),
                  Registry.SASL_ANONYMOUS_MECHANISM);

    harness.checkPoint("TestOfClientFactory:" + Sasl.POLICY_FORWARD_SECRECY);
    p.clear();
    p.put(Sasl.POLICY_FORWARD_SECRECY, "true");
    mechanisms = factory.getMechanismNames(p);

    // should see all mechanisms except ANONYMOUS,PLAIN & CRAM-MD5
    harness.check(includes(mechanisms, Registry.SASL_SRP_MECHANISM),
                  Registry.SASL_SRP_MECHANISM);
    harness.check(!includes(mechanisms, Registry.SASL_CRAM_MD5_MECHANISM),
                  Registry.SASL_CRAM_MD5_MECHANISM);
    harness.check(!includes(mechanisms, Registry.SASL_PLAIN_MECHANISM),
                  Registry.SASL_PLAIN_MECHANISM);
    harness.check(!includes(mechanisms, Registry.SASL_ANONYMOUS_MECHANISM),
                  Registry.SASL_ANONYMOUS_MECHANISM);

    harness.checkPoint("TestOfClientFactory:" + Sasl.POLICY_PASS_CREDENTIALS);
    p.clear();
    p.put(Sasl.POLICY_PASS_CREDENTIALS, "true");
    mechanisms = factory.getMechanismNames(p);

    // should see none
    harness.check(!includes(mechanisms, Registry.SASL_SRP_MECHANISM),
                  Registry.SASL_SRP_MECHANISM);
    harness.check(!includes(mechanisms, Registry.SASL_CRAM_MD5_MECHANISM),
View Full Code Here

Examples of mireka.smtp.ClientFactory

                .addCommand(new ObservableQuitCommand());
        wiser.start();
    }

    private void setupRelay() {
        ClientFactory clientFactory = new ClientFactory();
        clientFactory.setHelo("test");

        BackendServer backendServer = new BackendServer();
        backendServer.setPort(2525);
        backendServer.setClientFactory(clientFactory);
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.