Package ca.uhn.fhir.rest.server.method
Class SearchMethodBinding
- java.lang.Object
-
- ca.uhn.fhir.rest.server.method.BaseMethodBinding<Object>
-
- ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding
-
- ca.uhn.fhir.rest.server.method.SearchMethodBinding
-
public class SearchMethodBinding extends BaseResourceReturningMethodBinding
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding
BaseResourceReturningMethodBinding.MethodReturnTypeEnum, BaseResourceReturningMethodBinding.ReturnTypeEnum
-
-
Constructor Summary
Constructors Constructor Description SearchMethodBinding(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theReturnResourceType, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theResourceProviderResourceType, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ca.uhn.fhir.rest.param.QualifierDetailsextractQualifiersFromParameterName(String theParamName)StringgetDescription()StringgetQueryName()StringgetResourceProviderResourceName()protected ca.uhn.fhir.model.valueset.BundleTypeEnumgetResponseBundleType()If the response is a bundle, this type will be placed in the root of the bundle (can be null)ca.uhn.fhir.rest.api.RestOperationTypeEnumgetRestOperationType()BaseResourceReturningMethodBinding.ReturnTypeEnumgetReturnType()booleanincomingServerRequestMatchesMethod(RequestDetails theRequest)IBundleProviderinvokeServer(IRestfulServer<?> theServer, RequestDetails theRequest, Object[] theMethodParams)protected booleanisAddContentLocationHeader()Should the response include a Content-Location header.StringtoString()-
Methods inherited from class ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding
callOutgoingFailureOperationOutcomeHook, callOutgoingResponseHook, doInvokeServer, getMethodReturnType, getResourceName, invokeServer, setResourceName
-
Methods inherited from class ca.uhn.fhir.rest.server.method.BaseMethodBinding
bindMethod, createMethodParams, createParametersForServerRequest, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, getRequestIncludesFromParams, getRestOperationType, invokeServerMethod, isGlobalMethod, isSupportsConditional, isSupportsConditionalMultiple, populateActionRequestDetailsForInterceptor, setParameters, toResourceList, verifyMethodHasZeroOrOneOperationAnnotation
-
-
-
-
Constructor Detail
-
SearchMethodBinding
public SearchMethodBinding(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theReturnResourceType, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theResourceProviderResourceType, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
-
-
Method Detail
-
getDescription
public String getDescription()
-
getQueryName
public String getQueryName()
-
getResourceProviderResourceName
public String getResourceProviderResourceName()
-
getRestOperationType
@Nonnull public ca.uhn.fhir.rest.api.RestOperationTypeEnum getRestOperationType()
- Specified by:
getRestOperationTypein classBaseMethodBinding<Object>
-
getResponseBundleType
protected ca.uhn.fhir.model.valueset.BundleTypeEnum getResponseBundleType()
Description copied from class:BaseResourceReturningMethodBindingIf the response is a bundle, this type will be placed in the root of the bundle (can be null)- Specified by:
getResponseBundleTypein classBaseResourceReturningMethodBinding
-
getReturnType
public BaseResourceReturningMethodBinding.ReturnTypeEnum getReturnType()
- Specified by:
getReturnTypein classBaseResourceReturningMethodBinding
-
incomingServerRequestMatchesMethod
public boolean incomingServerRequestMatchesMethod(RequestDetails theRequest)
- Specified by:
incomingServerRequestMatchesMethodin classBaseMethodBinding<Object>
-
invokeServer
public IBundleProvider invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest, Object[] theMethodParams) throws ca.uhn.fhir.rest.server.exceptions.InvalidRequestException, ca.uhn.fhir.rest.server.exceptions.InternalErrorException
- Specified by:
invokeServerin classBaseResourceReturningMethodBinding- Throws:
ca.uhn.fhir.rest.server.exceptions.InvalidRequestExceptionca.uhn.fhir.rest.server.exceptions.InternalErrorException
-
isAddContentLocationHeader
protected boolean isAddContentLocationHeader()
Description copied from class:BaseResourceReturningMethodBindingShould the response include a Content-Location header. Search method bunding (and any others?) may override this to disable the content-location, since it doesn't make sense- Overrides:
isAddContentLocationHeaderin classBaseResourceReturningMethodBinding
-
extractQualifiersFromParameterName
public static ca.uhn.fhir.rest.param.QualifierDetails extractQualifiersFromParameterName(String theParamName)
-
-