Examples of Context


Examples of com.hp.gloze.Context

        URI uri = prune(o).resolve(loc);
        xs.ont.getOntology(ctx.getBaseMap().toString()).addImport(xs.ont.createResource(uri.toString()));
       
        // map included schema
        URI base = prune(ctx.getBaseMap().resolve(location)).resolve(loc);
        Context c = ctx.copy();
        c.setBase(base);
       
        if (target!=null) {
          File t = target.getCanonicalFile();
          if (!t.isDirectory()) t = t.getParentFile();
          schema.toOWL(new File(t,loc),base.toString(),false, c);
View Full Code Here

Examples of com.hp.hpl.jena.sparql.util.Context

       
        String uri = request.getRequestURI() ;
        initResponse(request, response) ;
       
        DatasetRef desc = null ;
        Context cxt = ARQ.getContext() ;
       
        try {
            if ( request.getQueryString() == null && queryStringHandling == PlainRequestFlag.DIFFERENT )
            {
                boolean requestContinue = requestNoQueryString(request, response) ;
                if ( ! requestContinue )
                    return ;
            }

            uri = mapRequestToDataset(uri) ;

            if ( uri != null )
            {
                desc = DatasetRegistry.get().get(uri) ;
                if ( desc == null )
                {
                    errorNotFound("No dataset for URI: "+uri) ;
                    return ;
                }
                //cxt = desc.dataset.getContext() ;
            }
            else {
                desc = new DatasetRef();
                desc.dataset = dummyDSG;
            }
            perform(id, desc, request, response) ;
            //serverlog.info(String.format("[%d] 200 Success", id)) ;
        } catch (QueryCancelledException ex)
        {
            // Also need the per query info ...
          String message = String.format("The query timed out (restricted to %s ms)", cxt.get(ARQ.queryTimeout));
          responseSendError(response, HttpSC.REQUEST_TIMEOUT_408, message);
            // Log message done by printResponse in a moment.
        } catch (ActionErrorException ex)
        {
            if ( ex.exception != null )
View Full Code Here

Examples of com.ibm.commons.runtime.Context

     * When parameter force is True, we reperform the Oauth Dance.
     * When login is True, we reperform the Oauth dance only when tokens are not available in store or bean
     */
   
    public AccessToken _acquireToken(boolean login, boolean force) throws OAuthException {
      Context context = Context.get();
      AccessToken tk;
     
        // If force is used, then login must be requested
        if(force) {
            login = true;
        }

        String userId = getUserId();

        // Look for a token in the store
      // If the user is anonymous, then the token might had been stored in the session
        if(!force) {
         
          if (getAccessTokenObject() != null) {
          // read from the local bean if accesstoken is present
          tk = getAccessTokenObject();
        }else{
              tk = context.isCurrentUserAnonymous()
          ? (AccessToken)AnonymousCredentialStore.loadCredentials(context,getAppId(),getServiceName())
          : findTokenFromStore(context, userId);
        }

          // check if token needs to be renewed
View Full Code Here

Examples of com.icl.saxon.Context

                pool = NamePool.getDefaultNamePool();
                doc.setNamePool(pool);
            }
            Expression expression = Expression.make(str, new Saxon6Context(pool, resolver));

            Context context = new Context();
            context.setContextNode((NodeInfo)contextNode);
            context.setPosition(1);
            context.setLast(1);

            return expression.evaluate(context);
        }
        catch (final Exception e)
        {
View Full Code Here

Examples of com.impossibl.postgres.system.Context

      }

      @Override
      public void authenticateClear(ProtocolImpl protocol) throws IOException {

        Context context = protocol.getContext();

        String password = context.getSetting(CREDENTIALS_PASSWORD).toString();

        ByteBuf msg = protocol.channel.alloc().buffer();

        protocol.writePassword(msg, password);

        protocol.send(msg);
      }

      @Override
      public void authenticateCrypt(ProtocolImpl protocol) throws IOException {
      }

      @Override
      public void authenticateMD5(ProtocolImpl protocol, byte[] salt) throws IOException {

        Context context = protocol.getContext();

        String username = context.getSetting(CREDENTIALS_USERNAME).toString();
        String password = context.getSetting(CREDENTIALS_PASSWORD).toString();

        String response = MD5Authentication.encode(password, username, salt);

        ByteBuf msg = protocol.channel.alloc().buffer();
View Full Code Here

Examples of com.jetdrone.vertx.yoke.core.Context

    public void testContext118_1() {
        Map<String, Object> ro = new HashMap<String, Object>() {{
            put("title", "ro-title");
        }};

        Context ctx = new Context(ro);
        ctx.put("title", "rw-title");

        Set<String> keys = ctx.keySet();
        Set<String> expectedKeys = new HashSet<String>() {{
            add("title");
        }};

        assertEquals(expectedKeys, keys);
View Full Code Here

Examples of com.linkedin.restli.server.annotations.Context

      defaultContext = new PagingContext(pagingContextParam.defaultStart(), pagingContextParam.defaultCount(), false, false);
      parameter = Parameter.ParamType.PAGING_CONTEXT_PARAM;
    }
    else if (paramAnnotationType.equals(Context.class))
    {
      Context contextParam = annotations.get(Context.class);
      defaultContext = new PagingContext(contextParam.defaultStart(), contextParam.defaultCount(), false, false);
      parameter = Parameter.ParamType.CONTEXT;
    }
    else
    {
      throw new ResourceConfigException("Param Annotation type must be 'PagingContextParam' or the deprecated 'Context' for PagingContext");
View Full Code Here

Examples of com.mysema.query.support.Context

       
    @Override
    protected Predicate normalize(Predicate predicate, boolean where) {
        predicate = (Predicate)ExpressionUtils.extract(predicate);
        if (predicate != null) {
            Context context = new Context();           
            Predicate transformed = (Predicate) predicate.accept(CollectionAnyVisitor.DEFAULT, context);
            for (int i = 0; i < context.paths.size(); i++) {
                Path<?> path = context.paths.get(i);           
                addCondition(context, i, path, where);
            }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.context.Context

            AssertionVisitor assertionVisitor, ModuleManagerFactory moduleManagerFactory, boolean verbose, boolean statistics,
            List<String> moduleFilters, String encoding) {
        long start = System.nanoTime();
        this.verbose = verbose;
        this.statistics = statistics;
        this.context = new Context(repositoryManager, vfs);
        this.phasedUnits = new PhasedUnits(context, moduleManagerFactory);
        this.verifyDependencies = verifyDependencies;
        this.assertionVisitor = assertionVisitor;
        statsVisitor = new StatisticsVisitor();
        phasedUnits.setModuleFilters(moduleFilters);
View Full Code Here

Examples of com.smartcodeltd.jenkinsci.plugins.buildmonitor_acceptance.scenarios.Context

        return this;
    }

    @Override
    public Context accept(Context context) throws IOException {
        Context currentContext = context.createFolder(name);

        for(Prerequisite p : prerequisites) {
            currentContext = p.accept(currentContext);
        }
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.