Examples of lookup()


Examples of org.apache.juddi.handler.HandlerMaker.lookup()

     
      // Lookup the appropriate XML handler.  Throw an
      // UnsupportedException if one could not be located.

      HandlerMaker maker = HandlerMaker.getInstance();
      IHandler requestHandler = maker.lookup(operation);
      if (requestHandler == null)
        throw new UnsupportedException("The UDDI service operation " +
          "specified is unknown or unsupported: " +operation);
     
      // Unmarshal the raw xml into the appropriate jUDDI

Examples of org.apache.ldap.server.PartitionNexus.lookup()

        LdapName principalDn = new LdapName( principal );

        PartitionNexus rootNexus = getAuthenticatorContext().getPartitionNexus();

        Attributes userEntry = rootNexus.lookup( principalDn );

        if ( userEntry == null )
        {
            throw new LdapNameNotFoundException();
        }

Examples of org.apache.ldap.server.partition.ContextPartitionNexus.lookup()

        // ---- lookup the principal entry's userPassword attribute

        LdapName principalDn = new LdapName( principal );

        ContextPartitionNexus nexus = getFactoryConfiguration().getPartitionNexus();
        Attributes userEntry = nexus.lookup( principalDn );

        if ( userEntry == null )
        {
            throw new LdapNameNotFoundException();
        }

Examples of org.apache.ldap.server.partition.DirectoryPartitionNexusProxy.lookup()

        DirectoryPartitionNexusProxy proxy = invocation.getProxy();
        Attributes userEntry;

        try
        {
            userEntry = proxy.lookup( principalDn, new String[] {"userPassword"}, USERLOOKUP_BYPASS );
            if ( userEntry == null )
            {
                throw new LdapAuthenticationException( "Failed to lookup user for authentication: " + principal );
            }
        }

Examples of org.apache.ldap.server.schema.AttributeTypeRegistry.lookup()

        SearchEngine eng = new DefaultSearchEngine( db, evaluator, enumerator );

        AttributeType[] attributes = new AttributeType[]
        {
            attributeTypeRegistry.lookup( SystemPartition.ALIAS_OID ),

            attributeTypeRegistry.lookup( SystemPartition.EXISTANCE_OID ),

            attributeTypeRegistry.lookup( SystemPartition.HIERARCHY_OID ),

Examples of org.apache.ldap.server.schema.MatchingRuleRegistry.lookup()

            // create the database/store
            // ----------------------------------------------------------------

            Name upSuffix = new LdapName( configs[ii].getSuffix() );

            Normalizer dnNorm = reg.lookup( "distinguishedNameMatch" ) .getNormalizer();

            Name normSuffix = new LdapName( ( String ) dnNorm.normalize( configs[ii].getSuffix() ) );

            Database db = new JdbmDatabase( upSuffix, normSuffix, wkdir );

Examples of org.apache.lucene.gdata.server.registry.GDataServerRegistry.lookup()

                ServerBaseFeed feed = createFeedFromRequest(request);
                GDataAccount account = createRequestedAccount(request);

                GDataServerRegistry registry = GDataServerRegistry
                        .getRegistry();
                ServiceFactory serviceFactory = registry.lookup(
                        ServiceFactory.class, ComponentType.SERVICEFACTORY);
                if (serviceFactory == null) {
                    setError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
                            "required component is not available");
                    throw new FeedHandlerException(

Examples of org.apache.lucene.search.suggest.Lookup.lookup()

      BenchmarkResult result = measure(new Callable<Integer>() {
        public Integer call() throws Exception {
          int v = 0;
          for (String term : input) {
            v += lookup.lookup(term, onlyMorePopular, num).size();
          }
          return v;
        }
      });

Examples of org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester.lookup()

    private Collection<String> getSuggestions(ShardSuggestRequest shardSuggestRequest) throws IOException {
        List<LookupResult> lookupResults = Lists.newArrayList();
        if ("full".equals(shardSuggestRequest.suggestType())) {
            AnalyzingSuggester analyzingSuggester = analyzingSuggesterCache.getUnchecked(new FieldType(shardSuggestRequest));
            lookupResults.addAll(analyzingSuggester.lookup(shardSuggestRequest.term(), false, shardSuggestRequest.size()));
        } else if ("fuzzy".equals(shardSuggestRequest.suggestType())) {
            lookupResults.addAll(fuzzySuggesterCache.getUnchecked(new FieldType(shardSuggestRequest))
                    .lookup(shardSuggestRequest.term(), false, shardSuggestRequest.size()));

        } else {

Examples of org.apache.mina.statemachine.context.AbstractStateContextLookup.lookup()

                map.put("context", context);
            }
        };
        Object[] args1 = new Object[] {new Object(), map, new Object()};
        Object[] args2 = new Object[] {map, new Object()};
        StateContext sc = lookup.lookup(args1);
        assertSame(map.get("context"), sc);
        assertSame(map.get("context"), lookup.lookup(args1));
        assertSame(map.get("context"), lookup.lookup(args2));
    }
   
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.