Package ca.uhn.fhir.jaxrs.server.util
Class JaxRsRequest.Builder
java.lang.Object
ca.uhn.fhir.jaxrs.server.util.JaxRsRequest.Builder
- Enclosing class:
JaxRsRequest
An implementation of the builder pattern for the JaxRsRequest
-
Constructor Summary
ConstructorDescriptionBuilder
(AbstractJaxRsProvider theServer, ca.uhn.fhir.rest.api.RequestTypeEnum theRequestType, ca.uhn.fhir.rest.api.RestOperationTypeEnum theRestOperation, String theRequestUrl, String theResourceName) Utility Constructor -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create the jax-rs requestcompartment
(String compartment) Set the compartmentSet the idSet the resourceSet the id version
-
Constructor Details
-
Builder
public Builder(AbstractJaxRsProvider theServer, ca.uhn.fhir.rest.api.RequestTypeEnum theRequestType, ca.uhn.fhir.rest.api.RestOperationTypeEnum theRestOperation, String theRequestUrl, String theResourceName) Utility Constructor- Parameters:
theServer
- the servertheRequestType
- the request typetheRestOperation
- the rest operationtheRequestUrl
-
-
-
Method Details
-
build
Create the jax-rs request- Returns:
- the jax-rs request
-
compartment
Set the compartment- Parameters:
compartment
- the compartment- Returns:
- the builder
-
id
Set the id- Parameters:
id
- the resource id- Returns:
- the builder
-
resource
Set the resource- Parameters:
resource
- the body contents of an http method- Returns:
- the builder
-
version
Set the id version- Parameters:
version
- the version of the resource- Returns:
- the builder
-