當前位置: 首頁>>代碼示例>>Java>>正文


Java TemplateVariables類代碼示例

本文整理匯總了Java中org.springframework.hateoas.TemplateVariables的典型用法代碼示例。如果您正苦於以下問題:Java TemplateVariables類的具體用法?Java TemplateVariables怎麽用?Java TemplateVariables使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


TemplateVariables類屬於org.springframework.hateoas包,在下文中一共展示了TemplateVariables類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: InitializrMetadataV2JsonMapper

import org.springframework.hateoas.TemplateVariables; //導入依賴的package包/類
public InitializrMetadataV2JsonMapper() {
	this.templateVariables = new TemplateVariables(
			new TemplateVariable("dependencies",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("packaging",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("javaVersion",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("language",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("edorasoneVersion",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("groupId",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("artifactId",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("version",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("name", TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("shortName", TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("description",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("packageName",
					TemplateVariable.VariableType.REQUEST_PARAM));
}
 
開發者ID:rvillars,項目名稱:edoras-one-initializr,代碼行數:26,代碼來源:InitializrMetadataV2JsonMapper.java

示例2: InitializrMetadataV2JsonMapper

import org.springframework.hateoas.TemplateVariables; //導入依賴的package包/類
public InitializrMetadataV2JsonMapper() {
	this.templateVariables = new TemplateVariables(
			new TemplateVariable("dependencies",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("packaging",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("javaVersion",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("language",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("bootVersion",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("groupId",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("artifactId",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("version",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("name", TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("description",
					TemplateVariable.VariableType.REQUEST_PARAM),
			new TemplateVariable("packageName",
					TemplateVariable.VariableType.REQUEST_PARAM));
}
 
開發者ID:spring-io,項目名稱:initializr,代碼行數:25,代碼來源:InitializrMetadataV2JsonMapper.java

示例3: InitializrMetadataV21JsonMapper

import org.springframework.hateoas.TemplateVariables; //導入依賴的package包/類
public InitializrMetadataV21JsonMapper() {
	this.dependenciesVariables = new TemplateVariables(
			new TemplateVariable("edorasoneVersion",
					TemplateVariable.VariableType.REQUEST_PARAM)
	);
}
 
開發者ID:rvillars,項目名稱:edoras-one-initializr,代碼行數:7,代碼來源:InitializrMetadataV21JsonMapper.java

示例4: createPaginatedResourceLink

import org.springframework.hateoas.TemplateVariables; //導入依賴的package包/類
private Link createPaginatedResourceLink(Link link) {
    String href = link.getHref();
    UriComponents components = UriComponentsBuilder.fromUriString(href).build();
    TemplateVariables variables = resolver.getPaginationTemplateVariables(null, components);
    return new Link(new UriTemplate(href, variables), link.getRel());
}
 
開發者ID:przodownikR1,項目名稱:elasticSearchKata,代碼行數:7,代碼來源:UserController.java

示例5: InitializrMetadataV21JsonMapper

import org.springframework.hateoas.TemplateVariables; //導入依賴的package包/類
public InitializrMetadataV21JsonMapper() {
	this.dependenciesVariables = new TemplateVariables(
			new TemplateVariable("bootVersion",
					TemplateVariable.VariableType.REQUEST_PARAM)
	);
}
 
開發者ID:spring-io,項目名稱:initializr,代碼行數:7,代碼來源:InitializrMetadataV21JsonMapper.java


注:本文中的org.springframework.hateoas.TemplateVariables類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。