public class PatchMethodBinding extends BaseOutcomeReturningMethodBindingWithResourceIdButNoResourceBody
| Constructor and Description |
|---|
PatchMethodBinding(Method theMethod,
FhirContext theContext,
Object theProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowVoidReturnType()
Subclasses may override to allow a void method return type, which is allowable for some methods (e.g.
|
protected BaseHttpClientInvocation |
createClientInvocation(Object[] theArgs,
IBaseResource theResource) |
static HttpPatchClientInvocation |
createPatchInvocation(FhirContext theContext,
IIdType theId,
PatchTypeEnum thePatchType,
String theBody) |
static HttpPatchClientInvocation |
createPatchInvocation(FhirContext theContext,
PatchTypeEnum thePatchType,
String theBody,
String theResourceType,
Map<String,List<String>> theMatchParams) |
static HttpPatchClientInvocation |
createPatchInvocation(FhirContext theContext,
String theUrlPath,
PatchTypeEnum thePatchType,
String theBody) |
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.
|
RestOperationTypeEnum |
getRestOperationType() |
BaseHttpClientInvocation |
invokeClient(Object[] theArgs) |
MethodOutcome |
invokeClient(String theResponseMimeType,
Reader theResponseReader,
int theResponseStatusCode,
Map<String,List<String>> theHeaders) |
boolean |
isReturnVoid() |
protected static void |
parseContentLocation(FhirContext theContext,
MethodOutcome theOutcomeToPopulate,
String theLocationHeader) |
protected Set<RequestTypeEnum> |
provideAllowableRequestTypes() |
getIdParameterIndex, getResourceNamebindMethod, createAppropriateParserForParsingResponse, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, isResourceInterface, isSupportsConditional, isSupportsConditionalMultiple, processNon2xxResponseAndReturnExceptionToThrow, setParameters, verifyMethodHasZeroOrOneOperationAnnotationpublic PatchMethodBinding(Method theMethod, FhirContext theContext, Object theProvider)
public RestOperationTypeEnum getRestOperationType()
getRestOperationType in class BaseMethodBinding<MethodOutcome>protected Set<RequestTypeEnum> provideAllowableRequestTypes()
protected BaseHttpClientInvocation createClientInvocation(Object[] theArgs, IBaseResource theResource)
protected boolean allowVoidReturnType()
public BaseHttpClientInvocation invokeClient(Object[] theArgs) throws InternalErrorException
invokeClient in class BaseMethodBinding<MethodOutcome>InternalErrorExceptionpublic static HttpPatchClientInvocation createPatchInvocation(FhirContext theContext, IIdType theId, PatchTypeEnum thePatchType, String theBody)
public static HttpPatchClientInvocation createPatchInvocation(FhirContext theContext, String theUrlPath, PatchTypeEnum thePatchType, String theBody)
protected String getMatchingOperation()
public static HttpPatchClientInvocation createPatchInvocation(FhirContext theContext, PatchTypeEnum thePatchType, String theBody, String theResourceType, Map<String,List<String>> theMatchParams)
public MethodOutcome invokeClient(String theResponseMimeType, Reader theResponseReader, int theResponseStatusCode, Map<String,List<String>> theHeaders) throws BaseServerResponseException
BaseServerResponseExceptionpublic boolean isReturnVoid()
protected static void parseContentLocation(FhirContext theContext, MethodOutcome theOutcomeToPopulate, String theLocationHeader)
Copyright © 2014–2018 University Health Network. All rights reserved.