當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。