Class FHIRRestOperationResponse
- java.lang.Object
-
- com.ibm.fhir.server.spi.operation.FHIRRestOperationResponse
-
public class FHIRRestOperationResponse extends java.lang.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, java.lang.String resourceId, PayloadPersistenceResponse storePayloadResponse)
FHIRRestOperationResponse(javax.ws.rs.core.Response.Status status, java.net.URI locationURI, OperationOutcome operationOutcome)
FHIRRestOperationResponse(javax.ws.rs.core.Response.Status status, java.net.URI locationURI, Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URI
getLocationURI()
OperationOutcome
getOperationOutcome()
Resource
getPrevResource()
Resource
getResource()
java.lang.String
getResourceId()
Getter for the resourceIdjavax.ws.rs.core.Response.Status
getStatus()
PayloadPersistenceResponse
getStorePayloadResponse()
int
getVersionForETag()
boolean
isCompleted()
boolean
isDeleted()
void
setCompleted(boolean completed)
void
setDeleted(boolean deleted)
void
setLocationURI(java.net.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(PayloadPersistenceResponse storePayloadResponse)
void
setVersionForETag(int versionForETag)
-
-
-
Constructor Detail
-
FHIRRestOperationResponse
public FHIRRestOperationResponse()
-
FHIRRestOperationResponse
public FHIRRestOperationResponse(javax.ws.rs.core.Response.Status status, java.net.URI locationURI, Resource resource)
-
FHIRRestOperationResponse
public FHIRRestOperationResponse(javax.ws.rs.core.Response.Status status, java.net.URI locationURI, OperationOutcome operationOutcome)
-
FHIRRestOperationResponse
public FHIRRestOperationResponse(Resource resource, java.lang.String resourceId, PayloadPersistenceResponse 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 java.net.URI getLocationURI()
-
setLocationURI
public void setLocationURI(java.net.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 java.lang.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 PayloadPersistenceResponse getStorePayloadResponse()
- Returns:
- the storePayloadResponse
-
setStorePayloadResponse
public void setStorePayloadResponse(PayloadPersistenceResponse storePayloadResponse)
- Parameters:
storePayloadResponse
- the storePayloadResponse to set
-
getVersionForETag
public int getVersionForETag()
- Returns:
- the versionForETag
-
setVersionForETag
public void setVersionForETag(int versionForETag)
- Parameters:
versionForETag
- the versionForETag to set
-
-