Examples of resolve()


Examples of org.apache.abdera.i18n.iri.IRI.resolve()

     List<Entry> entries = feed.getEntries();
     for (Entry entry : entries) {
       Content content = entry.getContentElement();
       assertNotNull(content);
       assertEquals(content.getContentType(), Content.Type.MEDIA);
       assertEquals(content.getResolvedSrc(), uri.resolve("2003/12/12/atom03.pdf"));
     }
   }
  
   @Test public void testSection4132ContentSrcTypeHtml() throws Exception {
     //http://feedvalidator.org/testcases/atom/4.1.3.2/content-src-type-html.xml
View Full Code Here

Examples of org.apache.abdera.i18n.templates.Context.resolve()

    Route route = routes.get(key);
    if (route != null) {
      Map<String, Object> map = new HashMap<String,Object>();
      Context ctx = getContext(param);
      for (String var : ctx) {
        map.put(var, ctx.resolve(var));
      }
      for (String var : route.getVariables()) {
        Object value = context.getTarget().getParameter(var);
        if (!map.containsKey(var) && value != null) {
          map.put(var, value);
View Full Code Here

Examples of org.apache.abdera.protocol.server.auth.SubjectResolver.resolve()

      this.request = request;
      this.session = request.getSession(false);
     
      SubjectResolver subjectResolver = context.getSubjectResolver();
      subject = (subjectResolver != null)?
        subjectResolver.resolve((Principal)getProperty(Property.PRINCIPAL)) : null;
     
      TargetResolver targetResolver = context.getTargetResolver();
      target = (targetResolver != null) ?
        targetResolver.resolve(this) : null;
  }
View Full Code Here

Examples of org.apache.abdera.protocol.server.impl.RegexTargetResolver.resolve()

   
    DummyRequestContext drc = null;
    Target target = null;
   
    drc = new DummyRequestContext("/test","http://example.org/");
    target = r.resolve(drc);
    assertNotNull(target);
    assertEquals(target.getType(), TargetType.TYPE_SERVICE);
   
    drc = new DummyRequestContext("/test/foo","http://example.org/");
    target = r.resolve(drc);
View Full Code Here

Examples of org.apache.abdera.protocol.server.impl.RouteManager.resolve()

   
    RequestContext request = createMock(RequestContext.class);
      expect(request.getTargetPath()).andReturn("/openSearch.xml");
      replay(request);
     
      RouteTarget target = (RouteTarget) manager.resolve(request);
      assertEquals("/openSearch.xml", target.getRoute().getPattern());
  }
 
  @Test 
  public void testRouteRequirementsMatches() {   
View Full Code Here

Examples of org.apache.abdera.protocol.server.provider.TargetResolver.resolve()

      subject = (subjectResolver != null)?
        subjectResolver.resolve((Principal)getProperty(Property.PRINCIPAL)) : null;
     
      TargetResolver targetResolver = context.getTargetResolver();
      target = (targetResolver != null) ?
        targetResolver.resolve(this) : null;
  }
 
  public Object getProperty(Property property) {
    switch (property) {
      case SESSIONID:         return (session != null) ? session.getId() : null;
View Full Code Here

Examples of org.apache.abdera.protocol.server.util.RegexTargetResolver.resolve()

   
    DummyRequestContext drc = null;
    Target target = null;
   
    drc = new DummyRequestContext("/test","http://example.org/");
    target = r.resolve(drc);
    assertNotNull(target);
    assertEquals(target.getType(), TargetType.TYPE_SERVICE);
   
    drc = new DummyRequestContext("/test/foo","http://example.org/");
    target = r.resolve(drc);
View Full Code Here

Examples of org.apache.abdera.util.iri.IRI.resolve()

  }

  public IRI getResolvedHref() throws IRISyntaxException {
    IRI href = getHref();
    IRI base = getBaseUri();
    return (base == null) ? href : (href != null) ? base.resolve(href) : null;
  }

  public IRI getResolvedSource() throws IRISyntaxException {
    IRI href = getSource();
    IRI base = getBaseUri();
View Full Code Here

Examples of org.apache.aries.application.management.AriesApplicationManager.resolve()

        if (application.isResolved()) {
            System.out.println("Application " + application.getApplicationMetadata().getApplicationSymbolicName() + " is already resolved.");
        } else {
            System.out.println("Attempting to resolve " + application.getApplicationMetadata().getApplicationSymbolicName() + " application.");
           
            AriesApplication resolved = manager.resolve(application);
            File targetApplication = null;
            if (resovledApplicationPath == null) {
                String baseName = null;
                if (applicationPath.endsWith(".eba")) {
                    baseName = applicationPath.substring(0, applicationPath.length() - 4);
View Full Code Here

Examples of org.apache.cassandra.CassandraServiceController.Failure.resolve()

                .perform(ConsistencyLevel.ONE);

            new Insert(client, "Standard1", key).name("c3").value("v3")
                .expecting(UnavailableException.class).perform(ConsistencyLevel.ALL);
        } finally {
            failure.resolve();
            Thread.sleep(10000);
        }
    }

    @Test
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.