当前位置: 首页>>代码示例>>Java>>正文


Java RestfulServerUtils.configureResponseParser方法代码示例

本文整理汇总了Java中ca.uhn.fhir.rest.server.RestfulServerUtils.configureResponseParser方法的典型用法代码示例。如果您正苦于以下问题:Java RestfulServerUtils.configureResponseParser方法的具体用法?Java RestfulServerUtils.configureResponseParser怎么用?Java RestfulServerUtils.configureResponseParser使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ca.uhn.fhir.rest.server.RestfulServerUtils的用法示例。


在下文中一共展示了RestfulServerUtils.configureResponseParser方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: filterNestedBundle

import ca.uhn.fhir.rest.server.RestfulServerUtils; //导入方法依赖的package包/类
/**
 * This method is called for nested bundles (e.g. if we received a transaction with an entry that
 * was a GET search, this method is called on the bundle for the search result, that will be placed in the
 * outer bundle). This method applies the _summary and _content parameters to the output of
 * that bundle.
 * 
 * TODO: This isn't the most efficient way of doing this.. hopefully we can come up with something better in the future.
 */
private IBaseResource filterNestedBundle(RequestDetails theRequestDetails, IBaseResource theResource) {
	IParser p = getContext().newJsonParser();
	RestfulServerUtils.configureResponseParser(theRequestDetails, p);
	return p.parseResource(theResource.getClass(), p.encodeResourceToString(theResource));
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:14,代码来源:FhirSystemDaoDstu3.java

示例2: filterNestedBundle

import ca.uhn.fhir.rest.server.RestfulServerUtils; //导入方法依赖的package包/类
/**
 * This method is called for nested bundles (e.g. if we received a transaction with an entry that 
 * was a GET search, this method is called on the bundle for the search result, that will be placed in the
 * outer bundle). This method applies the _summary and _content parameters to the output of
 * that bundle.
 * 
 * TODO: This isn't the most efficient way of doing this.. hopefully we can come up with something better in the future.
 */
private IBaseResource filterNestedBundle(RequestDetails theRequestDetails, IBaseResource theResource) {
	IParser p = getContext().newJsonParser();
	RestfulServerUtils.configureResponseParser(theRequestDetails, p);
	return p.parseResource(theResource.getClass(), p.encodeResourceToString(theResource));
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:14,代码来源:FhirSystemDaoDstu2.java

示例3: filterNestedBundle

import ca.uhn.fhir.rest.server.RestfulServerUtils; //导入方法依赖的package包/类
/**
 * This method is called for nested bundles (e.g. if we received a transaction with an entry that
 * was a GET search, this method is called on the bundle for the search result, that will be placed in the
 * outer bundle). This method applies the _summary and _content parameters to the output of
 * that bundle.
 * <p>
 * TODO: This isn't the most efficient way of doing this.. hopefully we can come up with something better in the future.
 */
private IBaseResource filterNestedBundle(RequestDetails theRequestDetails, IBaseResource theResource) {
	IParser p = getContext().newJsonParser();
	RestfulServerUtils.configureResponseParser(theRequestDetails, p);
	return p.parseResource(theResource.getClass(), p.encodeResourceToString(theResource));
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:14,代码来源:FhirSystemDaoR4.java


注:本文中的ca.uhn.fhir.rest.server.RestfulServerUtils.configureResponseParser方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。