Class JaxRsRequest


  • public class JaxRsRequest
    extends ca.uhn.fhir.rest.api.server.RequestDetails
    The JaxRsRequest is a jax-rs specific implementation of the RequestDetails.
    Author:
    Peter Van Houte | peter.vanhoute@agfa.com | Agfa Healthcare
    • Constructor Detail

      • 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 server
        resourceString - the resource body
        requestType - the request type
        restOperation - the operation type
    • Method Detail

      • getByteStreamRequestContents

        protected byte[] getByteStreamRequestContents()
        Specified by:
        getByteStreamRequestContents in class ca.uhn.fhir.rest.api.server.RequestDetails
      • getCharset

        public Charset getCharset()
        Specified by:
        getCharset in class ca.uhn.fhir.rest.api.server.RequestDetails
      • getFhirContext

        public ca.uhn.fhir.context.FhirContext getFhirContext()
        Specified by:
        getFhirContext in class ca.uhn.fhir.rest.api.server.RequestDetails
      • getHeader

        public String getHeader​(String headerKey)
        Specified by:
        getHeader in class ca.uhn.fhir.rest.api.server.RequestDetails
      • getHeaders

        public List<StringgetHeaders​(String name)
        Specified by:
        getHeaders in class ca.uhn.fhir.rest.api.server.RequestDetails
      • getAttribute

        public Object getAttribute​(String theAttributeName)
        Specified by:
        getAttribute in class ca.uhn.fhir.rest.api.server.RequestDetails
      • setAttribute

        public void setAttribute​(String theAttributeName,
                                 Object theAttributeValue)
        Specified by:
        setAttribute in class ca.uhn.fhir.rest.api.server.RequestDetails
      • getInputStream

        public InputStream getInputStream()
        Specified by:
        getInputStream in class ca.uhn.fhir.rest.api.server.RequestDetails
      • getResponse

        public ca.uhn.fhir.rest.api.server.IRestfulResponse getResponse()
        Overrides:
        getResponse in class ca.uhn.fhir.rest.api.server.RequestDetails
      • getServerBaseForRequest

        public String getServerBaseForRequest()
        Specified by:
        getServerBaseForRequest in class ca.uhn.fhir.rest.api.server.RequestDetails