• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java RepositoryLinksResource类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.springframework.data.rest.webmvc.RepositoryLinksResource的典型用法代码示例。如果您正苦于以下问题:Java RepositoryLinksResource类的具体用法?Java RepositoryLinksResource怎么用?Java RepositoryLinksResource使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



RepositoryLinksResource类属于org.springframework.data.rest.webmvc包,在下文中一共展示了RepositoryLinksResource类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
	resource.add(ControllerLinkBuilder.linkTo(methodOn(AboutController.class).getAboutResource()).withRel("about"));
	resource.add(ControllerLinkBuilder.linkTo(ReleaseController.class).withRel("release"));
	resource.add(ControllerLinkBuilder.linkTo(PackageController.class).withRel("package"));
	return resource;
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:8,代码来源:SkipperLinksResourceProcessor.java


示例2: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
/**
 * Exposes the {@link EngineController} to the root resource exposed by
 * Spring Data REST.
 * 
 * @see org.springframework.hateoas.ResourceProcessor#process(org.springframework.hateoas.ResourceSupport)
 */
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {

	resource.add(linkTo(methodOn(EngineController.class).showOrdersInProgress()).withRel(ENGINE_REL));

	return resource;
}
 
开发者ID:idugalic,项目名称:micro-ecommerce,代码行数:14,代码来源:EngineController.java


示例3: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
    final ControllerLinkBuilder controllerLinkBuilder = linkTo(AttachmentController.class);
    final Link attachments = new Link(new UriTemplate(controllerLinkBuilder.toUri().toString() + "/api/attachments{?sha1}"), "attachments");
    resource.add(attachments);
    return resource;
}
 
开发者ID:sw360,项目名称:sw360rest,代码行数:8,代码来源:AttachmentController.java


示例4: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
    resource.add(ControllerLinkBuilder.linkTo(UserController.class).withRel("user"));
    return resource;
}
 
开发者ID:HumanCellAtlas,项目名称:ingest-core,代码行数:6,代码来源:UserController.java


示例5: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
	resource.add(ControllerLinkBuilder.linkTo(ControllerLinkBuilder.methodOn(CISCoreConnectorRestController.class).sendXMLMessage(new XMLContentNotify("", new CISXMLContent(), new HashMap<DEParameters, String>(), false))).withRel("sendXMLMessage"));
	resource.add(ControllerLinkBuilder.linkTo(ControllerLinkBuilder.methodOn(CISCoreConnectorRestController.class).sendOtherMessage(new OtherContentNotify("", new CISOtherContent(), new HashMap<DEParameters, String>(), false))).withRel("sendOtherMessage"));
    return resource;
}
 
开发者ID:DRIVER-EU,项目名称:CommonInformationSpace,代码行数:7,代码来源:CISCoreConnectorRestController.java


示例6: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
	resource.add(ControllerLinkBuilder.linkTo(ControllerLinkBuilder.methodOn(CISCoreDistributorRestController.class).postmessage("EDXL DE")).withRel("post_messages"));
	//resource.add(ControllerLinkBuilder.linkTo(CISCoreDistributorRestController.class).withRel("post_messages"));
    return resource;
}
 
开发者ID:DRIVER-EU,项目名称:CommonInformationSpace,代码行数:7,代码来源:CISCoreDistributorRestController.java


示例7: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
	resource.add(ControllerLinkBuilder.linkTo(ControllerLinkBuilder.methodOn(CISAdaptorConnectorRestController.class).sendXMLMessage("CAP", "defaultCGOR", "XML")).withRel("sendXMLMessage"));
    return resource;
}
 
开发者ID:DRIVER-EU,项目名称:CommonInformationSpace,代码行数:6,代码来源:CISAdaptorConnectorRestController.java


示例8: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
	resource.add(ControllerLinkBuilder.linkTo(ControllerLinkBuilder.methodOn(CISCoreDistributorRestController.class).postmessage("EDXL DE")).withRel("post_messages"));
    return resource;
}
 
开发者ID:DRIVER-EU,项目名称:CommonInformationSpace,代码行数:6,代码来源:CISCoreDistributorRestController.java


示例9: clearAllLinks

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
private void clearAllLinks(RepositoryLinksResource resource) {
    resource.removeLinks();
}
 
开发者ID:EMBL-EBI-SUBS-OLD,项目名称:subs,代码行数:4,代码来源:RootEndpointLinkProcessor.java


示例10: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
    resource.add(linkTo(ProjectController.class).slash("api" + PROJECTS_URL).withRel("projects"));
    return resource;
}
 
开发者ID:sw360,项目名称:sw360rest,代码行数:6,代码来源:ProjectController.java


示例11: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
    resource.add(linkTo(LicenseController.class).slash("api/licenses").withRel("licenses"));
    return resource;
}
 
开发者ID:sw360,项目名称:sw360rest,代码行数:6,代码来源:LicenseController.java


示例12: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
    resource.add(linkTo(ReleaseController.class).slash("api" + RELEASES_URL).withRel("releases"));
    return resource;
}
 
开发者ID:sw360,项目名称:sw360rest,代码行数:6,代码来源:ReleaseController.java


示例13: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
    resource.add(linkTo(UserController.class).slash("api/users").withRel("users"));
    return resource;
}
 
开发者ID:sw360,项目名称:sw360rest,代码行数:6,代码来源:UserController.java


示例14: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
    resource.add(linkTo(ComponentController.class).slash("api/components").withRel("components"));
    return resource;
}
 
开发者ID:sw360,项目名称:sw360rest,代码行数:6,代码来源:ComponentController.java


示例15: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
    resource.add(linkTo(VendorController.class).slash("api" + VENDORS_URL).withRel("vendors"));
    return resource;
}
 
开发者ID:sw360,项目名称:sw360rest,代码行数:6,代码来源:VendorController.java


示例16: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {
    resource.add(ControllerLinkBuilder.linkTo(ReportController.class).slash("$rfid").slash("$date").withRel("report"));
    resource.add(ControllerLinkBuilder.linkTo(ReportController.class).withRel("report"));
    return resource;
}
 
开发者ID:IliyaPetrov,项目名称:RfidLogger,代码行数:7,代码来源:ReportResourceProcessor.java


示例17: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {

	resource.add(linkTo(methodOn(InventoryController.class).shipment()).withRel("shipment"));

	return resource;
}
 
开发者ID:olivergierke,项目名称:sos,代码行数:8,代码来源:InventoryResourceProcessor.java


示例18: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {

	Link products = entityLinks.linkToCollectionResource(Product.class);

	UriTemplate template = new UriTemplate(products.getHref().concat("/{id}"));

	resource.add(new Link(template, relProvider.getItemResourceRelFor(Product.class)));

	return resource;
}
 
开发者ID:olivergierke,项目名称:sos,代码行数:12,代码来源:ProductLinkProcessor.java


示例19: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {

	resource.add(linkTo(methodOn(OrderController.class).createOrder()).withRel("create"));

	return resource;
}
 
开发者ID:olivergierke,项目名称:sos,代码行数:8,代码来源:OrdersResourceProcessor.java


示例20: process

import org.springframework.data.rest.webmvc.RepositoryLinksResource; //导入依赖的package包/类
@Override
public RepositoryLinksResource process(RepositoryLinksResource resource) {

	resource.add(linkTo(methodOn(EventController.class).events(null, null, null, null)).withRel("events"));

	return resource;
}
 
开发者ID:olivergierke,项目名称:sos,代码行数:8,代码来源:EventsResourceProcessor.java



注:本文中的org.springframework.data.rest.webmvc.RepositoryLinksResource类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CurieProvider类代码示例发布时间:2022-05-23
下一篇:
Java CloseAction类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap