Package ca.uhn.fhir.rest.server.method
Class GraphQLMethodBinding
java.lang.Object
ca.uhn.fhir.rest.server.method.BaseMethodBinding
ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding
ca.uhn.fhir.rest.server.method.OperationMethodBinding
ca.uhn.fhir.rest.server.method.GraphQLMethodBinding
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.uhn.fhir.rest.server.method.OperationMethodBinding
OperationMethodBinding.ReturnType
Nested classes/interfaces inherited from class ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding
BaseResourceReturningMethodBinding.MethodReturnTypeEnum, BaseResourceReturningMethodBinding.ReturnTypeEnum
-
Field Summary
Fields inherited from class ca.uhn.fhir.rest.server.method.OperationMethodBinding
WILDCARD_NAME
Fields inherited from class ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding
myResponseBundleBuilder
-
Constructor Summary
ConstructorDescriptionGraphQLMethodBinding
(Method theMethod, ca.uhn.fhir.rest.api.RequestTypeEnum theMethodRequestType, ca.uhn.fhir.context.FhirContext theContext, Object theProvider) -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the resource this method handles, ornull
if this method is not resource specificca.uhn.fhir.rest.api.RestOperationTypeEnum
ca.uhn.fhir.rest.api.RestOperationTypeEnum
getRestOperationType
(RequestDetails theRequestDetails) Determine which operation is being fired for a specific requestincomingServerRequestMatchesMethod
(RequestDetails theRequest) invokeServer
(IRestfulServer<?> theServer, RequestDetails theRequest) boolean
boolean
boolean
Subclasses may overrideMethods inherited from class ca.uhn.fhir.rest.server.method.OperationMethodBinding
getCanonicalUrl, getDescription, getName, getResponseBundleType, getReturnParams, getReturnType, getShortDescription, invokeServer, isDeleteEnabled, isGlobalMethod, isIdempotent, isManualRequestMode, populateRequestDetailsForInterceptor, setDescription, toString
Methods inherited from class ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding
callOutgoingFailureOperationOutcomeHook, callOutgoingResponseHook, doInvokeServer, getMethodReturnType, isAddContentLocationHeader, isOffsetModeHistory, setResourceName
Methods inherited from class ca.uhn.fhir.rest.server.method.BaseMethodBinding
bindMethod, close, createMethodParams, createParametersForServerRequest, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, getQueryParameters, getRequestIncludesFromParams, getRevIncludes, invokeServerMethod, isSupportsConditional, isSupportsConditionalMultiple, setParameters, toResourceList, verifyMethodHasZeroOrOneOperationAnnotation
-
Constructor Details
-
GraphQLMethodBinding
public GraphQLMethodBinding(Method theMethod, ca.uhn.fhir.rest.api.RequestTypeEnum theMethodRequestType, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
-
-
Method Details
-
getResourceName
Description copied from class:BaseMethodBinding
Returns the name of the resource this method handles, ornull
if this method is not resource specific- Overrides:
getResourceName
in classBaseResourceReturningMethodBinding
-
getRestOperationType
- Overrides:
getRestOperationType
in classOperationMethodBinding
-
getRestOperationType
public ca.uhn.fhir.rest.api.RestOperationTypeEnum getRestOperationType(RequestDetails theRequestDetails) Description copied from class:BaseMethodBinding
Determine which operation is being fired for a specific request- Overrides:
getRestOperationType
in classOperationMethodBinding
- Parameters:
theRequestDetails
- The request
-
provideExpectedReturnTypes
Description copied from class:BaseResourceReturningMethodBinding
Subclasses may override- Overrides:
provideExpectedReturnTypes
in classBaseResourceReturningMethodBinding
-
isCanOperateAtServerLevel
- Overrides:
isCanOperateAtServerLevel
in classOperationMethodBinding
-
isCanOperateAtTypeLevel
- Overrides:
isCanOperateAtTypeLevel
in classOperationMethodBinding
-
isCanOperateAtInstanceLevel
- Overrides:
isCanOperateAtInstanceLevel
in classOperationMethodBinding
-
incomingServerRequestMatchesMethod
- Overrides:
incomingServerRequestMatchesMethod
in classOperationMethodBinding
-
invokeServer
public Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest) throws ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException, IOException - Overrides:
invokeServer
in classOperationMethodBinding
- Throws:
ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException
IOException
-