| Package | Description |
|---|---|
| ca.uhn.fhir.rest.method | |
| ca.uhn.fhir.rest.param | |
| ca.uhn.fhir.rest.server | |
| ca.uhn.fhir.rest.server.interceptor | |
| ca.uhn.fhir.rest.server.servlet |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ValidateMethodBindingDstu1.addParametersForServerRequest(RequestDetails theRequest,
Object[] theParams) |
protected void |
UpdateMethodBinding.addParametersForServerRequest(RequestDetails theRequest,
Object[] theParams) |
protected void |
DeleteMethodBinding.addParametersForServerRequest(RequestDetails theRequest,
Object[] theParams) |
protected IParser |
BaseMethodBinding.createAppropriateParserForParsingServerRequest(RequestDetails theRequest) |
protected Object[] |
BaseMethodBinding.createParametersForServerRequest(RequestDetails theRequest) |
static Set<String> |
ElementsParameter.getElementsValueOrNull(RequestDetails theRequest) |
InputStream |
BaseMethodBinding.ActiveRequestReader.getInputStream(RequestDetails theRequestDetails) |
InputStream |
BaseMethodBinding.InactiveRequestReader.getInputStream(RequestDetails theRequestDetails) |
InputStream |
BaseMethodBinding.IRequestReader.getInputStream(RequestDetails theRequestDetails) |
RestOperationTypeEnum |
ReadMethodBinding.getRestOperationType(RequestDetails theRequestDetails) |
RestOperationTypeEnum |
BaseMethodBinding.getRestOperationType(RequestDetails theRequestDetails)
Determine which operation is being fired for a specific request
|
static Set<SummaryEnum> |
SummaryEnumParameter.getSummaryValueOrNull(RequestDetails theRequest) |
boolean |
TransactionMethodBinding.incomingServerRequestMatchesMethod(RequestDetails theRequest) |
boolean |
SearchMethodBinding.incomingServerRequestMatchesMethod(RequestDetails theRequest) |
boolean |
ReadMethodBinding.incomingServerRequestMatchesMethod(RequestDetails theRequest) |
boolean |
PageMethodBinding.incomingServerRequestMatchesMethod(RequestDetails theRequest) |
boolean |
OperationMethodBinding.incomingServerRequestMatchesMethod(RequestDetails theRequest) |
boolean |
HistoryMethodBinding.incomingServerRequestMatchesMethod(RequestDetails theRequest) |
boolean |
GetTagsMethodBinding.incomingServerRequestMatchesMethod(RequestDetails theRequest) |
boolean |
DynamicSearchMethodBinding.incomingServerRequestMatchesMethod(RequestDetails theRequest) |
boolean |
ConformanceMethodBinding.incomingServerRequestMatchesMethod(RequestDetails theRequest) |
abstract boolean |
BaseMethodBinding.incomingServerRequestMatchesMethod(RequestDetails theRequest) |
Object |
GetTagsMethodBinding.invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest) |
Object |
BaseResourceReturningMethodBinding.invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest) |
abstract Object |
BaseMethodBinding.invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest) |
BaseResourceReturningMethodBinding.ResourceOrDstu1Bundle |
PageMethodBinding.invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest,
byte[] requestContents) |
BaseResourceReturningMethodBinding.ResourceOrDstu1Bundle |
BaseResourceReturningMethodBinding.invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest,
byte[] requestContents) |
IBundleProvider |
ReadMethodBinding.invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest,
Object[] theMethodParams) |
Object |
PageMethodBinding.invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest,
Object[] theMethodParams) |
IBundleProvider |
HistoryMethodBinding.invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest,
Object[] theMethodParams) |
abstract Object |
BaseResourceReturningMethodBinding.invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest,
Object[] theMethodParams) |
Object |
TransactionMethodBinding.invokeServer(IRestfulServer theServer,
RequestDetails theRequest,
Object[] theMethodParams) |
IBundleProvider |
SearchMethodBinding.invokeServer(IRestfulServer theServer,
RequestDetails theRequest,
Object[] theMethodParams) |
Object |
OperationMethodBinding.invokeServer(IRestfulServer theServer,
RequestDetails theRequest,
Object[] theMethodParams) |
IBundleProvider |
DynamicSearchMethodBinding.invokeServer(IRestfulServer theServer,
RequestDetails theRequest,
Object[] theMethodParams) |
IBundleProvider |
ConformanceMethodBinding.invokeServer(IRestfulServer theServer,
RequestDetails theRequest,
Object[] theMethodParams) |
protected Object |
BaseMethodBinding.invokeServerMethod(IRestfulServer<?> theServer,
RequestDetails theRequest,
Object[] theMethodParams) |
protected void |
BaseMethodBinding.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. |
Object |
SummaryEnumParameter.translateQueryParametersIntoServerArgument(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding) |
Object |
SortParameter.translateQueryParametersIntoServerArgument(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding) |
Object |
OperationParameter.translateQueryParametersIntoServerArgument(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding) |
Object |
IParameter.translateQueryParametersIntoServerArgument(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding)
This server method method takes the data received by the server in an incoming request, and translates that data into a single argument for a server method invocation.
|
Object |
ElementsParameter.translateQueryParametersIntoServerArgument(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding) |
Object |
DynamicSearchParameter.translateQueryParametersIntoServerArgument(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding) |
Object |
CountParameter.translateQueryParametersIntoServerArgument(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding) |
| Modifier and Type | Method and Description |
|---|---|
static Reader |
ResourceParameter.createRequestReader(RequestDetails theRequest) |
static Reader |
ResourceParameter.createRequestReader(RequestDetails theRequest,
Charset charset) |
static Charset |
ResourceParameter.determineRequestCharset(RequestDetails theRequest) |
static <T extends IBaseResource> |
ResourceParameter.loadResourceFromRequest(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding,
Class<T> theResourceType) |
static IBaseResource |
ResourceParameter.parseResourceFromRequest(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding,
Class<? extends IBaseResource> theResourceType) |
Object |
TransactionParameter.translateQueryParametersIntoServerArgument(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding) |
Object |
ResourceParameter.translateQueryParametersIntoServerArgument(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding) |
Object |
BaseQueryParameter.translateQueryParametersIntoServerArgument(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IRestfulServer<T extends RequestDetails> |
class |
RestfulResponse<T extends RequestDetails> |
| Modifier and Type | Method and Description |
|---|---|
static void |
RestfulServerUtils.configureResponseParser(RequestDetails theRequestDetails,
IParser parser) |
static EncodingEnum |
RestfulServerUtils.determineRequestEncoding(RequestDetails theReq) |
static EncodingEnum |
RestfulServerUtils.determineRequestEncodingNoDefault(RequestDetails theReq) |
BaseMethodBinding<?> |
RestfulServer.determineResourceMethod(RequestDetails requestDetails,
String requestPath) |
static EncodingEnum |
RestfulServerUtils.determineResponseEncodingNoDefault(RequestDetails theReq,
EncodingEnum thePrefer)
Returns null if the request doesn't express that it wants FHIR.
|
static EncodingEnum |
RestfulServerUtils.determineResponseEncodingWithDefault(RequestDetails theReq)
Determine whether a response should be given in JSON or XML format based on the incoming HttpServletRequest's
"_format" parameter and "Accept:" HTTP header. |
static Set<SummaryEnum> |
RestfulServerUtils.determineSummaryMode(RequestDetails theRequest) |
static Integer |
RestfulServerUtils.extractCountParameter(RequestDetails theRequest) |
BaseMethodBinding<?> |
ResourceBinding.getMethod(RequestDetails theRequest) |
static IParser |
RestfulServerUtils.getNewParser(FhirContext theContext,
RequestDetails theRequestDetails) |
Object |
IRestfulServerUtil.getRequestResource(RequestDetails theRequest,
TransactionParameter.ParamStyle myParamStyle,
Class<? extends IBaseResource> myResourceBundleType) |
Object |
IRestfulServerUtil.getResourceParameter(RequestDetails requestDetails,
ResourceParameter.Mode myMode,
BaseMethodBinding<?> theMethodBinding,
Class<? extends IBaseResource> myResourceType) |
<T extends IBaseResource> |
IRestfulServerUtil.loadResourceFromRequest(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding,
Class<T> theResourceType) |
IBaseResource |
IRestfulServerUtil.parseResourceFromRequest(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding,
Class<? extends IBaseResource> theResourceType) |
void |
RestfulServer.populateRequestDetailsFromRequestPath(RequestDetails theRequestDetails,
String theRequestPath) |
static boolean |
RestfulServerUtils.prettyPrintResponse(IRestfulServerDefaults theServer,
RequestDetails theRequest) |
static Object |
RestfulServerUtils.streamResponseAsBundle(IRestfulServerDefaults theServer,
Bundle bundle,
Set<SummaryEnum> theSummaryMode,
boolean respondGzip,
RequestDetails theRequestDetails) |
static Object |
RestfulServerUtils.streamResponseAsResource(IRestfulServerDefaults theServer,
IBaseResource theResource,
Set<SummaryEnum> theSummaryMode,
int stausCode,
boolean theAddContentLocationHeader,
boolean respondGzip,
RequestDetails theRequestDetails) |
static Integer |
RestfulServerUtils.tryToExtractNamedParameter(RequestDetails theRequest,
String theParamName) |
| Modifier and Type | Method and Description |
|---|---|
Object |
ExceptionHandlingInterceptor.handleException(RequestDetails theRequestDetails,
BaseServerResponseException theException) |
boolean |
ResponseHighlighterInterceptor.handleException(RequestDetails theRequestDetails,
BaseServerResponseException theException,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse) |
boolean |
LoggingInterceptor.handleException(RequestDetails theRequestDetails,
BaseServerResponseException theException,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse) |
boolean |
IServerInterceptor.handleException(RequestDetails theRequestDetails,
BaseServerResponseException theException,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse)
This method is called upon any exception being thrown within the server's request processing code.
|
boolean |
InterceptorAdapter.handleException(RequestDetails theRequestDetails,
BaseServerResponseException theException,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse) |
boolean |
ExceptionHandlingInterceptor.handleException(RequestDetails theRequestDetails,
BaseServerResponseException theException,
javax.servlet.http.HttpServletRequest theRequest,
javax.servlet.http.HttpServletResponse theResponse) |
boolean |
RequestValidatingInterceptor.incomingRequestPostProcessed(RequestDetails theRequestDetails,
javax.servlet.http.HttpServletRequest theRequest,
javax.servlet.http.HttpServletResponse theResponse) |
boolean |
LoggingInterceptor.incomingRequestPostProcessed(RequestDetails theRequestDetails,
javax.servlet.http.HttpServletRequest theRequest,
javax.servlet.http.HttpServletResponse theResponse) |
boolean |
IServerInterceptor.incomingRequestPostProcessed(RequestDetails theRequestDetails,
javax.servlet.http.HttpServletRequest theRequest,
javax.servlet.http.HttpServletResponse theResponse)
This method is called just before the actual implementing server method is invoked.
|
boolean |
InterceptorAdapter.incomingRequestPostProcessed(RequestDetails theRequestDetails,
javax.servlet.http.HttpServletRequest theRequest,
javax.servlet.http.HttpServletResponse theResponse) |
boolean |
IServerInterceptor.outgoingResponse(RequestDetails theRequestDetails)
This method is called after the server implementation method has been called, but before any attempt to stream the
response back to the client
|
boolean |
InterceptorAdapter.outgoingResponse(RequestDetails theRequestDetails) |
boolean |
IServerInterceptor.outgoingResponse(RequestDetails theRequest,
Bundle bundle)
This method is called after the server implementation method has been called, but before any attempt to stream the
response back to the client
|
boolean |
InterceptorAdapter.outgoingResponse(RequestDetails theRequestDetails,
Bundle bundle) |
boolean |
IServerInterceptor.outgoingResponse(RequestDetails theRequestDetails,
Bundle theResponseObject,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse)
This method is called after the server implementation method has been called, but before any attempt to stream the
response back to the client
|
boolean |
InterceptorAdapter.outgoingResponse(RequestDetails theRequestDetails,
Bundle theResponseObject,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse) |
boolean |
IServerInterceptor.outgoingResponse(RequestDetails theRequestDetails,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse)
This method is called after the server implementation method has been called, but before any attempt to stream the
response back to the client
|
boolean |
InterceptorAdapter.outgoingResponse(RequestDetails theRequestDetails,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse) |
boolean |
ResponseValidatingInterceptor.outgoingResponse(RequestDetails theRequestDetails,
IBaseResource theResponseObject) |
boolean |
IServerInterceptor.outgoingResponse(RequestDetails theRequestDetails,
IBaseResource theResponseObject)
This method is called after the server implementation method has been called, but before any attempt to stream the
response back to the client
|
boolean |
InterceptorAdapter.outgoingResponse(RequestDetails theRequestDetails,
IBaseResource theResponseObject) |
boolean |
ResponseHighlighterInterceptor.outgoingResponse(RequestDetails theRequestDetails,
IBaseResource theResponseObject,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse) |
boolean |
IServerInterceptor.outgoingResponse(RequestDetails theRequestDetails,
IBaseResource theResponseObject,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse)
This method is called after the server implementation method has been called, but before any attempt to stream the
response back to the client
|
boolean |
InterceptorAdapter.outgoingResponse(RequestDetails theRequestDetails,
IBaseResource theResponseObject,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse) |
boolean |
IServerInterceptor.outgoingResponse(RequestDetails theRequestDetails,
TagList theResponseObject)
This method is called after the server implementation method has been called, but before any attempt to stream the
response back to the client
|
boolean |
InterceptorAdapter.outgoingResponse(RequestDetails theRequestDetails,
TagList theResponseObject) |
boolean |
IServerInterceptor.outgoingResponse(RequestDetails theRequestDetails,
TagList theResponseObject,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse)
This method is called after the server implementation method has been called, but before any attempt to stream the
response back to the client
|
boolean |
InterceptorAdapter.outgoingResponse(RequestDetails theRequestDetails,
TagList theResponseObject,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse) |
BaseServerResponseException |
IServerInterceptor.preProcessOutgoingException(RequestDetails theRequestDetails,
Throwable theException,
javax.servlet.http.HttpServletRequest theServletRequest)
This method is called upon any exception being thrown within the server's request processing code.
|
BaseServerResponseException |
InterceptorAdapter.preProcessOutgoingException(RequestDetails theRequestDetails,
Throwable theException,
javax.servlet.http.HttpServletRequest theServletRequest) |
BaseServerResponseException |
ExceptionHandlingInterceptor.preProcessOutgoingException(RequestDetails theRequestDetails,
Throwable theException,
javax.servlet.http.HttpServletRequest theServletRequest) |
| Constructor and Description |
|---|
ActionRequestDetails(RequestDetails theRequestDetails) |
| Modifier and Type | Class and Description |
|---|---|
class |
ServletRequestDetails |
| Modifier and Type | Method and Description |
|---|---|
static RequestDetails |
ServletRequestDetails.withResourceAndParams(String theResourceName,
RequestTypeEnum theRequestType,
Set<String> theParamNames) |
Copyright © 2014–2016 University Health Network. All rights reserved.