public class CreateMethodBinding extends BaseMethodBinding<ca.uhn.fhir.rest.api.MethodOutcome>
| Constructor and Description |
|---|
CreateMethodBinding(Method theMethod,
ca.uhn.fhir.context.FhirContext theContext,
Object theProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParametersForServerRequest(RequestDetails theRequest,
Object[] theParams) |
protected boolean |
allowVoidReturnType()
Subclasses may override to allow a void method return type, which is allowable for some methods (e.g.
|
protected String |
getMatchingOperation()
For servers, this method will match only incoming requests that match the given operation, or which have no
operation in the URL if this method returns null.
|
String |
getResourceName()
Returns the name of the resource this method handles, or
null if this method is not resource specific |
ca.uhn.fhir.rest.api.RestOperationTypeEnum |
getRestOperationType() |
boolean |
incomingServerRequestMatchesMethod(RequestDetails theRequest) |
Object |
invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest) |
boolean |
isReturnVoid() |
protected static void |
parseContentLocation(ca.uhn.fhir.context.FhirContext theContext,
ca.uhn.fhir.rest.api.MethodOutcome theOutcomeToPopulate,
String theLocationHeader) |
protected void |
populateActionRequestDetailsForInterceptor(RequestDetails theRequestDetails,
IServerInterceptor.ActionRequestDetails theDetails,
Object[] theMethodParams)
Subclasses may override this method (but should also call super.
#populateActionRequestDetailsForInterceptor(RequestDetails, ActionRequestDetails, Object[]) to provide method specifics to the
interceptors. |
protected Set<ca.uhn.fhir.rest.api.RequestTypeEnum> |
provideAllowableRequestTypes() |
protected void |
validateResourceIdAndUrlIdForNonConditionalOperation(org.hl7.fhir.instance.model.api.IBaseResource theResource,
String theResourceId,
String theUrlId,
String theMatchUrl)
Subclasses may override
|
bindMethod, createAppropriateParserForParsingResponse, createAppropriateParserForParsingServerRequest, createMethodParams, createParametersForServerRequest, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, getRequestIncludesFromParams, getRestOperationType, invokeServerMethod, isGlobalMethod, isSupportsConditional, isSupportsConditionalMultiple, processNon2xxResponseAndReturnExceptionToThrow, setParameters, toResourceList, verifyMethodHasZeroOrOneOperationAnnotationpublic CreateMethodBinding(Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
protected String getMatchingOperation()
@Nonnull public ca.uhn.fhir.rest.api.RestOperationTypeEnum getRestOperationType()
getRestOperationType in class BaseMethodBinding<ca.uhn.fhir.rest.api.MethodOutcome>protected Set<ca.uhn.fhir.rest.api.RequestTypeEnum> provideAllowableRequestTypes()
protected void validateResourceIdAndUrlIdForNonConditionalOperation(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceId, String theUrlId, String theMatchUrl)
protected void addParametersForServerRequest(RequestDetails theRequest, Object[] theParams)
public String getResourceName()
BaseMethodBindingnull if this method is not resource specificgetResourceName in class BaseMethodBinding<ca.uhn.fhir.rest.api.MethodOutcome>protected void populateActionRequestDetailsForInterceptor(RequestDetails theRequestDetails, IServerInterceptor.ActionRequestDetails theDetails, Object[] theMethodParams)
BaseMethodBinding#populateActionRequestDetailsForInterceptor(RequestDetails, ActionRequestDetails, Object[]) to provide method specifics to the
interceptors.populateActionRequestDetailsForInterceptor in class BaseMethodBinding<ca.uhn.fhir.rest.api.MethodOutcome>theRequestDetails - The server request detailstheDetails - The details object to populatetheMethodParams - The method params as generated by the specific method bindingprotected boolean allowVoidReturnType()
public boolean incomingServerRequestMatchesMethod(RequestDetails theRequest)
incomingServerRequestMatchesMethod in class BaseMethodBinding<ca.uhn.fhir.rest.api.MethodOutcome>public Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest) throws ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException, IOException
invokeServer in class BaseMethodBinding<ca.uhn.fhir.rest.api.MethodOutcome>ca.uhn.fhir.rest.server.exceptions.BaseServerResponseExceptionIOExceptionpublic boolean isReturnVoid()
protected static void parseContentLocation(ca.uhn.fhir.context.FhirContext theContext, ca.uhn.fhir.rest.api.MethodOutcome theOutcomeToPopulate, String theLocationHeader)
Copyright © 2014–2019 University Health Network. All rights reserved.