public static class IServerInterceptor.ActionRequestDetails extends Object
| Constructor and Description |
|---|
ActionRequestDetails(RequestDetails theRequestDetails) |
ActionRequestDetails(RequestDetails theRequestDetails,
FhirContext theContext,
IBaseResource theResource) |
ActionRequestDetails(RequestDetails theRequestDetails,
FhirContext theContext,
String theResourceType,
IIdType theId) |
ActionRequestDetails(RequestDetails theRequestDetails,
IBaseResource theResource) |
ActionRequestDetails(RequestDetails theRequestDetails,
IBaseResource theResource,
String theResourceType,
IIdType theId) |
ActionRequestDetails(RequestDetails theRequestDetails,
IIdType theId)
Constructor
|
ActionRequestDetails(RequestDetails theRequestDetails,
String theResourceType,
IIdType theId) |
| Modifier and Type | Method and Description |
|---|---|
FhirContext |
getContext() |
IIdType |
getId()
Returns the ID of the incoming request (typically this is from the request URL)
|
RequestDetails |
getRequestDetails()
Returns the request details associated with this request
|
IBaseResource |
getResource()
For requests where a resource is passed from the client to the server (e.g.
|
String |
getResourceType()
Returns the resource type this request pertains to, or
null if this request is not type specific
(e.g. |
Map<Object,Object> |
getUserData()
Returns the same map which was
|
void |
notifyIncomingRequestPreHandled(RestOperationTypeEnum theOperationType)
This method may be invoked by user code to notify interceptors that a nested
operation is being invoked which is denoted by this request details.
|
void |
setResource(IBaseResource theObject)
This method should not be called by client code
|
public ActionRequestDetails(RequestDetails theRequestDetails)
public ActionRequestDetails(RequestDetails theRequestDetails, FhirContext theContext, IBaseResource theResource)
public ActionRequestDetails(RequestDetails theRequestDetails, FhirContext theContext, String theResourceType, IIdType theId)
public ActionRequestDetails(RequestDetails theRequestDetails, IBaseResource theResource)
public ActionRequestDetails(RequestDetails theRequestDetails, IBaseResource theResource, String theResourceType, IIdType theId)
public ActionRequestDetails(RequestDetails theRequestDetails, IIdType theId)
theRequestDetails - The request details to wraptheId - The ID of the resource being created (note that the ID should have the resource type populated)public ActionRequestDetails(RequestDetails theRequestDetails, String theResourceType, IIdType theId)
public FhirContext getContext()
public IIdType getId()
public RequestDetails getRequestDetails()
public IBaseResource getResource()
null
.
Note that this method is currently only populated if the handling method has a parameter annotated with the
ResourceParam annotation.
public String getResourceType()
null if this request is not type specific
(e.g. server-history)public Map<Object,Object> getUserData()
public void notifyIncomingRequestPreHandled(RestOperationTypeEnum theOperationType)
public void setResource(IBaseResource theObject)
Copyright © 2014–2017 University Health Network. All rights reserved.