Class TapeResponse
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.tape.dto.TapeResponse
-
- Direct Known Subclasses:
TapeDriveState
,TapeLibraryState
public class TapeResponse extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TapeResponse(StatusCode status)
TapeResponse(ReadWriteErrorCode errorCode, StatusCode status)
TapeResponse(java.lang.Object entity, StatusCode status)
TapeResponse(java.lang.Object entity, ReadWriteErrorCode errorCode, StatusCode status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getEntity()
<T> T
getEntity(java.lang.Class<T> entityType)
ReadWriteErrorCode
getErrorCode()
StatusCode
getStatus()
boolean
hasEntity()
boolean
isOK()
boolean
isWarn()
void
setEntity(java.lang.Object entity)
void
setStatus(StatusCode status)
-
-
-
Constructor Detail
-
TapeResponse
public TapeResponse(StatusCode status)
-
TapeResponse
public TapeResponse(java.lang.Object entity, StatusCode status)
-
TapeResponse
public TapeResponse(ReadWriteErrorCode errorCode, StatusCode status)
-
TapeResponse
public TapeResponse(java.lang.Object entity, ReadWriteErrorCode errorCode, StatusCode status)
-
-
Method Detail
-
getEntity
public <T> T getEntity(java.lang.Class<T> entityType)
-
getEntity
public java.lang.Object getEntity()
-
setEntity
public void setEntity(java.lang.Object entity)
-
hasEntity
public boolean hasEntity()
-
getStatus
public StatusCode getStatus()
-
setStatus
public void setStatus(StatusCode status)
-
isOK
public boolean isOK()
-
isWarn
public boolean isWarn()
-
getErrorCode
public ReadWriteErrorCode getErrorCode()
-
-