Package ca.uhn.fhir.jaxrs.server.util
Class JaxRsRequest
java.lang.Object
ca.uhn.fhir.rest.api.server.RequestDetails
ca.uhn.fhir.jaxrs.server.util.JaxRsRequest
The JaxRsRequest is a jax-rs specific implementation of the RequestDetails.
- Author:
- Peter Van Houte | peter.vanhoute@agfa.com | Agfa Healthcare
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An implementation of the builder pattern for the JaxRsRequest -
Field Summary
Fields inherited from class ca.uhn.fhir.rest.api.server.RequestDetails
BAD_STREAM_PLACEHOLDER
-
Constructor Summary
ConstructorDescriptionJaxRsRequest
(AbstractJaxRsProvider server, String resourceString, ca.uhn.fhir.rest.api.RequestTypeEnum requestType, ca.uhn.fhir.rest.api.RestOperationTypeEnum restOperation) Utility Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
getAttribute
(String theAttributeName) protected byte[]
ca.uhn.fhir.context.FhirContext
getHeaders
(String name) ca.uhn.fhir.rest.api.server.IRestfulResponse
void
setAttribute
(String theAttributeName, Object theAttributeValue) void
setHeaders
(String theName, List<String> theValue) void
setServer
(AbstractJaxRsProvider theServer) Set the serverMethods 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, getRestOperationType, getSecondaryOperation, getTenantId, getTransactionGuid, getUnqualifiedToQualifiedNames, getUserData, isRespondGzip, isRetry, isRewriteHistory, isSubRequest, 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
-
JaxRsRequest
public JaxRsRequest(AbstractJaxRsProvider server, String resourceString, ca.uhn.fhir.rest.api.RequestTypeEnum requestType, ca.uhn.fhir.rest.api.RestOperationTypeEnum restOperation) Utility Constructor- Parameters:
server
- the serverresourceString
- the resource bodyrequestType
- the request typerestOperation
- the operation type
-
-
Method Details
-
getByteStreamRequestContents
- Specified by:
getByteStreamRequestContents
in classca.uhn.fhir.rest.api.server.RequestDetails
-
getCharset
- Specified by:
getCharset
in classca.uhn.fhir.rest.api.server.RequestDetails
-
getFhirContext
- Specified by:
getFhirContext
in classca.uhn.fhir.rest.api.server.RequestDetails
-
getHeader
- Specified by:
getHeader
in classca.uhn.fhir.rest.api.server.RequestDetails
-
getHeaders
- Specified by:
getHeaders
in classca.uhn.fhir.rest.api.server.RequestDetails
-
addHeader
- Specified by:
addHeader
in classca.uhn.fhir.rest.api.server.RequestDetails
-
setHeaders
- Specified by:
setHeaders
in classca.uhn.fhir.rest.api.server.RequestDetails
-
getAttribute
- Specified by:
getAttribute
in classca.uhn.fhir.rest.api.server.RequestDetails
-
setAttribute
- Specified by:
setAttribute
in classca.uhn.fhir.rest.api.server.RequestDetails
-
getInputStream
- Specified by:
getInputStream
in classca.uhn.fhir.rest.api.server.RequestDetails
-
getReader
- Specified by:
getReader
in classca.uhn.fhir.rest.api.server.RequestDetails
- Throws:
IOException
-
getResponse
- Overrides:
getResponse
in classca.uhn.fhir.rest.api.server.RequestDetails
-
getServer
- Specified by:
getServer
in classca.uhn.fhir.rest.api.server.RequestDetails
-
setServer
Set the server- Parameters:
theServer
- the server to set
-
getServerBaseForRequest
- Specified by:
getServerBaseForRequest
in classca.uhn.fhir.rest.api.server.RequestDetails
-