Examples of BaseUri


Examples of com.xmlcalabash.functions.BaseURI

        }

        xprocData = new XProcData(this);

        exFuncs.add(new Cwd(this));
        exFuncs.add(new BaseURI(this));
        exFuncs.add(new ResolveURI(this));
        exFuncs.add(new SystemProperty(this));
        exFuncs.add(new StepAvailable(this));
        exFuncs.add(new IterationSize(this));
        exFuncs.add(new IterationPosition(this));
View Full Code Here

Examples of com.xmlcalabash.functions.BaseURI

        transparentJSON = runtime.transparentJSON;
        jsonFlavor = runtime.jsonFlavor;
        profile = runtime.profile;

        exFuncs.add(new Cwd(this));
        exFuncs.add(new BaseURI(this));
        exFuncs.add(new ResolveURI(this));
        exFuncs.add(new SystemProperty(this));
        exFuncs.add(new StepAvailable(this));
        exFuncs.add(new IterationSize(this));
        exFuncs.add(new IterationPosition(this));
View Full Code Here

Examples of org.springframework.data.rest.webmvc.BaseUri

    return new MetadataConfiguration();
  }

  @Bean
  public BaseUri baseUri() {
    return new BaseUri(config().getBaseUri());
  }
View Full Code Here

Examples of org.springframework.data.rest.webmvc.BaseUri

   */
  @Override
  public LinkBuilder linkFor(Class<?> type) {

    ResourceMetadata metadata = mappings.getMappingFor(type);
    return new RepositoryLinkBuilder(metadata, new BaseUri(config.getBaseUri()));
  }
View Full Code Here

Examples of org.springframework.data.rest.webmvc.BaseUri

  @Override
  public RepositoryLinksResource process(RepositoryLinksResource resource) {

    if (configuration.metadataConfiguration().alpsEnabled()) {

      BaseUri baseUri = new BaseUri(configuration.getBaseUri());
      String href = baseUri.getUriComponentsBuilder().path(AlpsController.ALPS_ROOT_MAPPING).build().toString();

      resource.add(new Link(href, PROFILE_REL));
    }

    return resource;
View Full Code Here

Examples of org.springframework.data.rest.webmvc.BaseUri

      ResourceMetadata mapping = mappings.getMappingFor(domainType);

      if (mapping.isExported()) {

        BaseUri baseUri = new BaseUri(configuration.getBaseUri());
        UriComponentsBuilder builder = baseUri.getUriComponentsBuilder().path(ALPS_ROOT_MAPPING);
        String href = builder.path(mapping.getPath().toString()).build().toUriString();
        descriptors.add(Alps.descriptor().name(mapping.getRel()).href(href).build());
      }
    }
View Full Code Here

Examples of org.springframework.data.rest.webmvc.BaseUri

  private void assertRootUriFor(String baseUri, String expectedUri) {

    MongoPersistentEntity<?> entity = context.getPersistentEntity(Profile.class);
    ResourceMetadata metadata = new MappingResourceMetadata(entity);

    RepositoryLinkBuilder builder = new RepositoryLinkBuilder(metadata, new BaseUri(baseUri));
    Link link = builder.withSelfRel();

    assertThat(link.getHref(), is(expectedUri));
  }
View Full Code Here

Examples of org.springframework.data.rest.webmvc.BaseUri

    assertNotNull(this.context.getBean(RepositoryRestMvcConfiguration.class));
    RepositoryRestConfiguration bean = this.context
        .getBean(RepositoryRestConfiguration.class);
    URI expectedUri = URI.create("foo");
    assertEquals("Custom baseURI not set", expectedUri, bean.getBaseUri());
    BaseUri baseUri = this.context.getBean(BaseUri.class);
    assertEquals("Custom baseUri has not been applied to BaseUri bean", expectedUri,
        baseUri.getUri());
  }
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.