本文整理汇总了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();
}
示例2: getPagingProvider
import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
return PAGE_PROVIDER;
}
示例3: getPagingProvider
import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
return PAGE_PROVIDER;
}
示例4: getPagingProvider
import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider()
{
return PAGE_PROVIDER;
}
示例5: getPagingProvider
import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider()
{
return PAGE_PROVIDER;
}
示例6: getPagingProvider
import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
/**
* Default: no paging provider
*/
@Override
public IPagingProvider getPagingProvider() {
return null;
}
示例7: getPagingProvider
import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
/**
* Default: no paging provider
*/
@Override
public IPagingProvider getPagingProvider() {
return null;
}
示例8: getPagingProvider
import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
return TestJaxRsMockPatientRestProvider.PAGING_PROVIDER;
}
示例9: getPagingProvider
import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
return PAGING_PROVIDER;
}
示例10: getPagingProvider
import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
return TestJaxRsMockPatientRestProviderDstu3.PAGING_PROVIDER;
}
示例11: getPagingProvider
import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
IPagingProvider getPagingProvider();
示例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);
}
示例13: getPagingProvider
import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
return JaxRsPatientRestProvider.PAGE_PROVIDER;
}
示例14: getPagingProvider
import ca.uhn.fhir.rest.server.IPagingProvider; //导入依赖的package包/类
@Override
public IPagingProvider getPagingProvider() {
return JaxRsPatientRestProviderDstu3.PAGE_PROVIDER;
}