Package ca.uhn.fhir.rest.server.servlet
Class ServletSubRequestDetails
java.lang.Object
ca.uhn.fhir.rest.api.server.RequestDetails
ca.uhn.fhir.rest.server.servlet.ServletRequestDetails
ca.uhn.fhir.rest.server.servlet.ServletSubRequestDetails
-
Field Summary
Fields inherited from class ca.uhn.fhir.rest.api.server.RequestDetails
BAD_STREAM_PLACEHOLDER
-
Constructor Summary
ConstructorDescriptionServletSubRequestDetails
(ServletRequestDetails theRequestDetails) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new headergetHeaders
(String theName) jakarta.servlet.http.HttpServletRequest
jakarta.servlet.http.HttpServletResponse
Returns a map which can be used to hold any user specific data to pass it from one part of the request handling chain to another.boolean
Is this request a sub-request (i.e.Methods inherited from class ca.uhn.fhir.rest.server.servlet.ServletRequestDetails
getAttribute, getByteStreamRequestContents, getCharset, getFhirContext, getHeaders, getInputStream, getReader, getServer, getServerBaseForRequest, isPreferRespondAsync, setAttribute, setHeaders, setServer, setServletRequest, setServletResponse
Methods inherited from class ca.uhn.fhir.rest.api.server.RequestDetails
addParameter, getCompartmentName, getCompleteUrl, getConditionalUrl, getFhirServerBase, getFixedConditionalUrl, getId, getInterceptorBroadcaster, getMaxRetries, getOperation, getParameters, getRequestContentsIfLoaded, getRequestId, getRequestPath, getRequestStopwatch, getRequestType, getResource, getResourceName, getResponse, getRestOperationType, getSecondaryOperation, getTenantId, getTransactionGuid, getUnqualifiedToQualifiedNames, isRespondGzip, isRetry, isRewriteHistory, loadRequestContents, removeParameter, setCompartmentName, setCompleteUrl, setFhirServerBase, setFixedConditionalUrl, setId, setMaxRetries, setOperation, setParameters, setRequestContents, setRequestId, setRequestPath, setRequestType, setResource, setResourceName, setRespondGzip, setResponse, setRestOperationType, setRetry, setRewriteHistory, setSecondaryOperation, setSubRequest, setTenantId, setTransactionGuid
-
Constructor Details
-
ServletSubRequestDetails
Constructor- Parameters:
theRequestDetails
- The parent request details
-
-
Method Details
-
getServletRequest
- Overrides:
getServletRequest
in classServletRequestDetails
-
getServletResponse
- Overrides:
getServletResponse
in classServletRequestDetails
-
addHeader
Description copied from class:RequestDetails
Adds a new header- Overrides:
addHeader
in classServletRequestDetails
- Parameters:
theName
- The header nametheValue
- The header value
-
getHeader
- Overrides:
getHeader
in classServletRequestDetails
-
getHeaders
- Overrides:
getHeaders
in classServletRequestDetails
-
getUserData
Description copied from class:RequestDetails
Returns a map which can be used to hold any user specific data to pass it from one part of the request handling chain to another. Data in this map can use any key, although user code should try to use keys which are specific enough to avoid conflicts.A new map is created for each individual request that is handled by the server, so this map can be used (for example) to pass authorization details from an interceptor to the resource providers, or for example to pass data from a hook method on the
Pointcut.SERVER_INCOMING_REQUEST_POST_PROCESSED
to a later hook method on thePointcut.SERVER_OUTGOING_RESPONSE
pointcut.- Overrides:
getUserData
in classRequestDetails
-
isSubRequest
Description copied from class:RequestDetails
Is this request a sub-request (i.e. a request within a batch or transaction)? This flag is used internally by hapi-fhir-jpaserver-base, but not used in the plain server library. You may use it in your client code as a hint when implementing transaction logic in the plain server.Defaults to false
- Overrides:
isSubRequest
in classRequestDetails
-