Examples of discover()


Examples of org.openid4java.consumer.ConsumerManager.discover()

                                }
                            }
                            else
                            {
                                // standard OpenId discovery
                                discoveries = providerOpenIDConsumerManager.discover(userSuppliedDiscoveryString);
                            }
                            if ((discoveries != null) && !discoveries.isEmpty())
                            {
                                discovered = providerOpenIDConsumerManager.associate(discoveries);
                            }
View Full Code Here

Examples of org.openid4java.discovery.Discovery.discover()

      throws DiscoveryException {
    // if discovered == null, we'll try again
    if (discovered == null) {
      Discovery discovery = consumerManager.getDiscovery();
      @SuppressWarnings("unchecked")
      List<DiscoveryInformation> discoveries = discovery.discover(openId);

      if (discoveries == null || discoveries.size() == 0) {
        throw new DiscoveryException("discovery on " + openId.getIdentifier() +
            " failed.");
      }
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.helper.AdditionalJavaOpts.discover()

            configFile = new File(binDirectory, "standalone.conf");
            additionalJavaOptsConfig = new AdditionalJavaOpts.LinuxConfiguration();
        }

        try {
            javaOptsAdditionalValue = additionalJavaOptsConfig.discover(configFile);
        } catch (Exception e) {
            log.error("Unable to discover additional JAVA_OPTS set via RHQ from configuration file.", e);
        }

        discoveredResource.getPluginConfiguration().setSimpleValue(JAVA_OPTS_ADDITIONAL_PROP, javaOptsAdditionalValue);
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.discovery.RemoteStrategy.discover()

        Server.withPort(remoteServerPort).serve("/.meta/prefixes.txt").withBehaviours(
            Behaviours.content(prefixFile1("/игор/федоренко", "/ком/сонатајп"))).start();
    try {
      final RemoteStrategy subject = lookup(RemoteStrategy.class, RemotePrefixFileStrategy.ID);
      final StrategyResult result =
          subject.discover(getRepositoryRegistry().getRepositoryWithFacet(PROXY_REPO_ID,
              MavenProxyRepository.class));
    }
    finally {
      server.stop();
    }
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.discovery.RemoteStrategy.discover()

        Server.withPort(remoteServerPort).serve("/.meta/prefixes.txt").withBehaviours(
            Behaviours.content(prefixFile1("/tamás/cservenák", "/kom/szonatájp"))).start();
    try {
      final RemoteStrategy subject = lookup(RemoteStrategy.class, RemotePrefixFileStrategy.ID);
      final StrategyResult result =
          subject.discover(getRepositoryRegistry().getRepositoryWithFacet(PROXY_REPO_ID,
              MavenProxyRepository.class));
    }
    finally {
      server.stop();
    }
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.discovery.RemoteStrategy.discover()

        Server.withPort(remoteServerPort).serve("/.meta/prefixes.txt").withBehaviours(
            Behaviours.content(prefixFile1(Strings.repeat("/12345677890", 25)))).start();
    try {
      final RemoteStrategy subject = lookup(RemoteStrategy.class, RemotePrefixFileStrategy.ID);
      final StrategyResult result =
          subject.discover(getRepositoryRegistry().getRepositoryWithFacet(PROXY_REPO_ID,
              MavenProxyRepository.class));
    }
    finally {
      server.stop();
    }
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.discovery.RemoteStrategy.discover()

        Server.withPort(remoteServerPort).serve("/.meta/prefixes.txt").withBehaviours(
            Behaviours.file(createJarFile())).start();
    try {
      final RemoteStrategy subject = lookup(RemoteStrategy.class, RemotePrefixFileStrategy.ID);
      final StrategyResult result =
          subject.discover(getRepositoryRegistry().getRepositoryWithFacet(PROXY_REPO_ID,
              MavenProxyRepository.class));
    }
    finally {
      server.stop();
    }
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.discovery.RemoteStrategy.discover()

        Server.withPort(remoteServerPort).serve("/.meta/prefixes.txt").withBehaviours(
            new GenerateRandomBehaviour(150 * 1024)).start();
    try {
      final RemoteStrategy subject = lookup(RemoteStrategy.class, RemotePrefixFileStrategy.ID);
      final StrategyResult result =
          subject.discover(getRepositoryRegistry().getRepositoryWithFacet(PROXY_REPO_ID,
              MavenProxyRepository.class));
    }
    finally {
      server.stop();
    }
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.discovery.RemoteStrategy.discover()

        Server.withPort(remoteServerPort).serve("/.meta/prefixes.txt").withBehaviours(
            Behaviours.content(TextFilePrefixSourceMarshaller.MAGIC + "\n# Just a comment")).start();
    try {
      final RemoteStrategy subject = lookup(RemoteStrategy.class, RemotePrefixFileStrategy.ID);
      final StrategyResult result =
          subject.discover(getRepositoryRegistry().getRepositoryWithFacet(PROXY_REPO_ID,
              MavenProxyRepository.class));
      assertThat(result.getMessage(), containsString("empty prefix file"));
      assertThat(result.getPrefixSource(), notNullValue());
      assertThat(result.getPrefixSource().supported(), is(false));
    }
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.discovery.RemoteStrategy.discover()

        Server.withPort(remoteServerPort).serve("/.meta/prefixes.txt").withBehaviours(
            Behaviours.content(prefixFile1(true))).start();
    try {
      final RemoteStrategy subject = lookup(RemoteStrategy.class, RemotePrefixFileStrategy.ID);
      final StrategyResult result =
          subject.discover(getRepositoryRegistry().getRepositoryWithFacet(PROXY_REPO_ID,
              MavenProxyRepository.class));
      assertThat(result.getMessage(),
          equalTo("Remote publishes prefix file (is less than a day old), using it."));

      final PrefixSource entrySource = result.getPrefixSource();
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.