Class FHIRRestOperationResponse
- java.lang.Object
-
- com.ibm.fhir.server.spi.operation.FHIRRestOperationResponse
-
public class FHIRRestOperationResponse extends Object
This class is used to represent a response returned by the FHIR resource helper methods.
-
-
Constructor Summary
Constructors Constructor Description FHIRRestOperationResponse()
FHIRRestOperationResponse(Resource resource, String resourceId, Future<PayloadKey> storePayloadResponse)
FHIRRestOperationResponse(javax.ws.rs.core.Response.Status status, URI locationURI, OperationOutcome operationOutcome)
FHIRRestOperationResponse(javax.ws.rs.core.Response.Status status, URI locationURI, Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getLocationURI()
OperationOutcome
getOperationOutcome()
Resource
getPrevResource()
Resource
getResource()
String
getResourceId()
Getter for the resourceIdjavax.ws.rs.core.Response.Status
getStatus()
Future<PayloadKey>
getStorePayloadResponse()
boolean
isCompleted()
boolean
isDeleted()
void
setCompleted(boolean completed)
void
setDeleted(boolean deleted)
void
setLocationURI(URI locationURI)
void
setOperationOutcome(OperationOutcome operationOutcome)
void
setPrevResource(Resource prevResource)
void
setResource(Resource resource)
void
setStatus(javax.ws.rs.core.Response.Status status)
void
setStorePayloadResponse(Future<PayloadKey> storePayloadResponse)
-
-
-
Constructor Detail
-
FHIRRestOperationResponse
public FHIRRestOperationResponse()
-
FHIRRestOperationResponse
public FHIRRestOperationResponse(javax.ws.rs.core.Response.Status status, URI locationURI, Resource resource)
-
FHIRRestOperationResponse
public FHIRRestOperationResponse(javax.ws.rs.core.Response.Status status, URI locationURI, OperationOutcome operationOutcome)
-
FHIRRestOperationResponse
public FHIRRestOperationResponse(Resource resource, String resourceId, Future<PayloadKey> storePayloadResponse)
-
-
Method Detail
-
getStatus
public javax.ws.rs.core.Response.Status getStatus()
-
setStatus
public void setStatus(javax.ws.rs.core.Response.Status status)
-
getLocationURI
public URI getLocationURI()
-
setLocationURI
public void setLocationURI(URI locationURI)
-
getResource
public Resource getResource()
-
setResource
public void setResource(Resource resource)
-
getPrevResource
public Resource getPrevResource()
-
setPrevResource
public void setPrevResource(Resource prevResource)
-
getOperationOutcome
public OperationOutcome getOperationOutcome()
-
setOperationOutcome
public void setOperationOutcome(OperationOutcome operationOutcome)
-
getResourceId
public String getResourceId()
Getter for the resourceId- Returns:
-
isDeleted
public boolean isDeleted()
- Returns:
- the deleted
-
setDeleted
public void setDeleted(boolean deleted)
- Parameters:
deleted
- the deleted to set
-
isCompleted
public boolean isCompleted()
- Returns:
- the completed
-
setCompleted
public void setCompleted(boolean completed)
- Parameters:
completed
- the completed to set
-
getStorePayloadResponse
public Future<PayloadKey> getStorePayloadResponse()
- Returns:
- the storePayloadResponse
-
setStorePayloadResponse
public void setStorePayloadResponse(Future<PayloadKey> storePayloadResponse)
- Parameters:
storePayloadResponse
- the storePayloadResponse to set
-
-