public abstract class BaseResourceReturningMethodBinding extends BaseMethodBinding<Object>
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseResourceReturningMethodBinding.MethodReturnTypeEnum |
static class |
BaseResourceReturningMethodBinding.ResourceOrDstu1Bundle |
static class |
BaseResourceReturningMethodBinding.ReturnTypeEnum |
BaseMethodBinding.ActiveRequestReader, BaseMethodBinding.InactiveRequestReader, BaseMethodBinding.IRequestReader| Modifier and Type | Field and Description |
|---|---|
protected static Set<String> |
ALLOWED_PARAMS |
| Constructor and Description |
|---|
BaseResourceReturningMethodBinding(Class<?> theReturnResourceType,
Method theMethod,
FhirContext theContext,
Object theProvider) |
| Modifier and Type | Method and Description |
|---|---|
BaseResourceReturningMethodBinding.MethodReturnTypeEnum |
getMethodReturnType() |
String |
getResourceName()
Returns the name of the resource this method handles, or
null if this method is not resource specific |
protected abstract BundleTypeEnum |
getResponseBundleType()
If the response is a bundle, this type will be placed in the root of the bundle (can be null)
|
abstract BaseResourceReturningMethodBinding.ReturnTypeEnum |
getReturnType() |
Object |
invokeClient(String theResponseMimeType,
Reader theResponseReader,
int theResponseStatusCode,
Map<String,List<String>> theHeaders) |
Object |
invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest) |
BaseResourceReturningMethodBinding.ResourceOrDstu1Bundle |
invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest,
byte[] requestContents) |
abstract Object |
invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest,
Object[] theMethodParams) |
protected boolean |
isAddContentLocationHeader()
Should the response include a Content-Location header.
|
protected void |
setResourceName(String theResourceName) |
bindMethod, createAppropriateParserForParsingResponse, createAppropriateParserForParsingServerRequest, createParametersForServerRequest, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, getRequestIncludesFromParams, getRestOperationType, getRestOperationType, incomingServerRequestMatchesMethod, invokeClient, invokeServerMethod, isSupportsConditional, isSupportsConditionalMultiple, populateActionRequestDetailsForInterceptor, processNon2xxResponseAndReturnExceptionToThrow, setParameters, toResourceList, verifyMethodHasZeroOrOneOperationAnnotationprotected static final Set<String> ALLOWED_PARAMS
public BaseResourceReturningMethodBinding(Class<?> theReturnResourceType, Method theMethod, FhirContext theContext, Object theProvider)
public BaseResourceReturningMethodBinding.MethodReturnTypeEnum getMethodReturnType()
public String getResourceName()
BaseMethodBindingnull if this method is not resource specificgetResourceName in class BaseMethodBinding<Object>protected abstract BundleTypeEnum getResponseBundleType()
public abstract BaseResourceReturningMethodBinding.ReturnTypeEnum getReturnType()
public Object invokeClient(String theResponseMimeType, Reader theResponseReader, int theResponseStatusCode, Map<String,List<String>> theHeaders)
public Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest) throws BaseServerResponseException, IOException
invokeServer in class BaseMethodBinding<Object>BaseServerResponseExceptionIOExceptionpublic BaseResourceReturningMethodBinding.ResourceOrDstu1Bundle invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest, byte[] requestContents)
public abstract Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest, Object[] theMethodParams) throws InvalidRequestException, InternalErrorException
protected boolean isAddContentLocationHeader()
protected void setResourceName(String theResourceName)
Copyright © 2014–2016 University Health Network. All rights reserved.