Examples of discover()


Examples of com.cuubez.core.scanner.file.ClassScanner.discover()

        String applicationPath = ApplicationConfigurationContext.getInstance().getApplicationPath();
        ClassScanner scanner = new ClassScanner();

        try {
            classes = scanner.discover(applicationPath);
        } catch (IOException e) {
            log.error(e);
        }

        if (classes != null) {
View Full Code Here

Examples of com.dyuproject.openid.RelyingParty.discover()

    RelyingParty relyingParty = RelyingParty.getInstance();

    String errorMsg = OpenIdServletFilter.DEFAULT_ERROR_MSG;
    try {
      OpenIdUser user = relyingParty.discover(request);
      if (user == null) {
        if (RelyingParty.isAuthResponse(request)) {
          // authentication timeout
          response.sendRedirect(request.getRequestURI());
        } else {
View Full Code Here

Examples of com.k42b3.neodym.Services.discover()

 
  public static OauthProvider discoverProvider(Http http, String baseUrl, String consumerKey, String consumerSecret) throws Exception
  {
    // load available services
    Services services = new Services(http, baseUrl);
    services.discover();

    ServiceItem request = services.getItem("http://oauth.net/core/1.0/endpoint/request");
    ServiceItem authorization = services.getItem("http://oauth.net/core/1.0/endpoint/authorize");
    ServiceItem access = services.getItem("http://oauth.net/core/1.0/endpoint/access");
View Full Code Here

Examples of com.salas.bb.service.ServerService.discover()

        if (request.isServiceDiscoveryComplete()) return;

        ServerService ss = ServerService.getInstance();
        try
        {
            Map result = ss.discover(request.getUrl().toString());

            processServiceResults(result, request);
        } catch (ServerServiceException e)
        {
            boolean log = true;
View Full Code Here

Examples of com.salas.bb.utils.discovery.impl.DirectDiscoverer.discover()

        DirectDiscoverer dd = new DirectDiscoverer();
        String failureMessage = null;
        try
        {
            DiscoveryResult res = dd.discover(request.getUrl());
            if (res != null)
            {
                URL link = res.getLink();
                if (link != null)
                {
View Full Code Here

Examples of com.salas.bb.utils.discovery.impl.DirectDiscoverer.discover()

                    try
                    {
                        // Check if we have correct URL
                        URL url = new URL(StringUtils.fixURL(suggestedUrl));
                        DirectDiscoverer dd = new DirectDiscoverer();
                        DiscoveryResult result = dd.discover(url);
                        if (result != null)
                        {
                            ServerService.metaSuggestFeedUrl(originalURL.toString(), suggestedUrl);

                            // set newly discovered URL and mark the data as no longer invalid
View Full Code Here

Examples of in.partake.service.IOpenIDService.discover()

        assert sessionId != null;
        if (sessionId == null)
            throw new PartakeException(ServerErrorCode.SESSION_ID_KEY_NOTFOUND);

        IOpenIDService service = PartakeApp.getOpenIDService();
        DiscoveryInformation discoveryInformation = service.discover(identifier);
        OpenIDLoginInformation info = new OpenIDLoginInformation(purpose, discoveryInformation);
        Cache.set(Constants.Cache.OPENID_LOGIN_KEY_PREFIX + sessionId, info, LOGIN_TIMEOUT_SEC);

        String authURL = service.getURLToAuthenticate(discoveryInformation, CALLBACK_URL);
        return renderRedirect(authURL);
View Full Code Here

Examples of net.tomp2p.p2p.Peer.discover()

          masterPeerPort, masterPeerPort);
      logger.info(String.format("Client-Node connecting to master: %s",
          pa));

      // Future Discover
      FutureDiscover futureDiscover = peer.discover()
          .setInetAddress(masterPeerAddress).setPorts(masterPeerPort)
          .start();
      futureDiscover.awaitUninterruptibly();
      logger.info(String.format("Discover of %s %s", pa,
          (futureDiscover.isSuccess()) ? "succeeded" : "failed"));
View Full Code Here

Examples of net.tomp2p.p2p.Peer.discover()

      futureBootstrap.awaitUninterruptibly();
      logger.info(String.format("Bootstrap of %s %s", pa,
          (futureDiscover.isSuccess()) ? "succeeded" : "failed"));
      if (futureBootstrap.getBootstrapTo() != null) {
        logger.info("Future Bootstrap to ... all known");
        peer.discover()
            .setPeerAddress(
                futureBootstrap.getBootstrapTo().iterator()
                    .next()).start().awaitUninterruptibly();
      }
    } catch (java.net.BindException
View Full Code Here

Examples of net.tomp2p.p2p.Peer.discover()

          cc.maxPermitsTCP(100);
          cc.maxPermitsUDP(100);
            peer = new PeerBuilder(peerId).channelClientConfiguration(cc).ports(clientPort).peerMap(pm).start();
            PeerAddress masterNodeAddress = new PeerAddress(Number160.createHash(seedNodeId), seedNodeIP, seedNodePort,
                                                            seedNodePort);
            FutureDiscover futureDiscover = peer.discover().peerAddress(masterNodeAddress).start();
            futureDiscover.awaitUninterruptibly();
            if (futureDiscover.isSuccess()) {
                log.info("Discover with direct connection successful. Address = " + futureDiscover.peerAddress());
                //cachedPeers.put(id, peer);
               
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.