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


Java IPagingProvider类代码示例

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


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

示例1: FhirRestfulServerConfiguration

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
public FhirRestfulServerConfiguration(
	FhirProperties properties,
	FhirContext fhirContext,
	ObjectProvider<List<IResourceProvider>> resourceProviders,
	ObjectProvider<IPagingProvider> pagingProvider,
	ObjectProvider<List<IServerInterceptor>> interceptors,
	ObjectProvider<List<FhirRestfulServerCustomizer>> customizers) {
	this.properties = properties;
	this.fhirContext = fhirContext;
	this.resourceProviders = resourceProviders.getIfAvailable();
	this.pagingProvider = pagingProvider.getIfAvailable();
	this.interceptors = interceptors.getIfAvailable();
	this.customizers = customizers.getIfAvailable();
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:15,代码来源:FhirAutoConfiguration.java

示例2: getPagingProvider

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
    return PAGE_PROVIDER;
}
 
开发者ID:bhits,项目名称:iexhub,代码行数:5,代码来源:JaxRsConsentRestProvider.java

示例3: getPagingProvider

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
	return PAGE_PROVIDER;
}
 
开发者ID:bhits,项目名称:iexhub,代码行数:5,代码来源:JaxRsPatientRestProvider.java

示例4: getPagingProvider

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider()
{
	return PAGE_PROVIDER;
}
 
开发者ID:bhits,项目名称:iexhub,代码行数:6,代码来源:JaxRsPatientPageProvider.java

示例5: getPagingProvider

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider()
{
    return PAGE_PROVIDER;
}
 
开发者ID:bhits,项目名称:iexhub,代码行数:6,代码来源:JaxRsConsentPageProvider.java

示例6: getPagingProvider

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
/**
 * Default: no paging provider
 */
@Override
public IPagingProvider getPagingProvider() {
    return null;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:8,代码来源:AbstractJaxRsResourceProvider.java

示例7: getPagingProvider

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
/**
 * Default: no paging provider
 */
@Override
public IPagingProvider getPagingProvider() {
	return null;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:8,代码来源:AbstractJaxRsPageProvider.java

示例8: getPagingProvider

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
	return TestJaxRsMockPatientRestProvider.PAGING_PROVIDER;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:5,代码来源:TestJaxRsMockPageProvider.java

示例9: getPagingProvider

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
	return PAGING_PROVIDER;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:5,代码来源:TestJaxRsMockPatientRestProviderDstu2_1.java

示例10: getPagingProvider

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
	return TestJaxRsMockPatientRestProviderDstu3.PAGING_PROVIDER;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:5,代码来源:TestJaxRsMockPageProviderDstu3.java

示例11: getPagingProvider

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
IPagingProvider getPagingProvider();
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:3,代码来源:IRestfulServer.java

示例12: handlePagingRequest

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
private IBaseResource handlePagingRequest(IRestfulServer<?> theServer, RequestDetails theRequest, String thePagingAction) {
	IPagingProvider pagingProvider = theServer.getPagingProvider();
	if (pagingProvider == null) {
		throw new InvalidRequestException("This server does not support paging");
	}
	IBundleProvider resultList = pagingProvider.retrieveResultList(thePagingAction);
	if (resultList == null) {
		ourLog.info("Client requested unknown paging ID[{}]", thePagingAction);
		String msg = getContext().getLocalizer().getMessage(PageMethodBinding.class, "unknownSearchId", thePagingAction);
		throw new ResourceGoneException(msg);
	}

	Integer count = RestfulServerUtils.extractCountParameter(theRequest);
	if (count == null) {
		count = pagingProvider.getDefaultPageSize();
	} else if (count > pagingProvider.getMaximumPageSize()) {
		count = pagingProvider.getMaximumPageSize();
	}

	Integer offsetI = RestfulServerUtils.tryToExtractNamedParameter(theRequest, Constants.PARAM_PAGINGOFFSET);
	if (offsetI == null || offsetI < 0) {
		offsetI = 0;
	}

	Integer totalNum = resultList.size();
	int start = offsetI;
	if (totalNum != null) {
		start = Math.min(start, totalNum - 1);
	}
	
	ResponseEncoding responseEncoding = RestfulServerUtils.determineResponseEncodingNoDefault(theRequest, theServer.getDefaultResponseEncoding());

	Set<Include> includes = new HashSet<Include>();
	String[] reqIncludes = theRequest.getParameters().get(Constants.PARAM_INCLUDE);
	if (reqIncludes != null) {
		for (String nextInclude : reqIncludes) {
			includes.add(new Include(nextInclude));
		}
	}

	String linkSelfBase = theRequest.getFhirServerBase(); // myServerAddressStrategy.determineServerBase(getServletContext(),
																			// theRequest.getServletRequest());
	String completeUrl = theRequest.getCompleteUrl();
	String linkSelf = linkSelfBase + completeUrl.substring(theRequest.getCompleteUrl().indexOf('?'));

	BundleTypeEnum bundleType = null;
	String[] bundleTypeValues = theRequest.getParameters().get(Constants.PARAM_BUNDLETYPE);
	if (bundleTypeValues != null) {
		bundleType = BundleTypeEnum.VALUESET_BINDER.fromCodeString(bundleTypeValues[0]);
	}

	EncodingEnum encodingEnum = null;
	if (responseEncoding != null) {
		encodingEnum = responseEncoding.getEncoding();
	}
	
	return createBundleFromBundleProvider(theServer, theRequest, count, linkSelf, includes, resultList, start, bundleType, encodingEnum, thePagingAction);
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:59,代码来源:PageMethodBinding.java

示例13: getPagingProvider

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
	return JaxRsPatientRestProvider.PAGE_PROVIDER;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:5,代码来源:JaxRsPageProvider.java

示例14: getPagingProvider

import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
	return JaxRsPatientRestProviderDstu3.PAGE_PROVIDER;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:5,代码来源:JaxRsPageProviderDstu3.java


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