edu.jhu.tmaj.servlet.response
Interface CommandResponse

All Known Implementing Classes:
ArrayCoreReferenceResponse, ArrayCoresGetResponse, ArrayImageCollectionResponse, ArrayImageCoresResponse, CellLinesReferenceResponse, CheckIfSpecimenExistsResponse, DetailsResponse, DiagnosisLookupResponse, DynamicMetaDataResponse, EnumerationsResponse, ErrorResponse, ExpressEntryResponse, ExternalFileCoordinateResponse, FileChecksumResponse, FileDownloadResponse, FileResponse, FilesResponse, FolderResponse, FoldersResponse, GrossDescriptionResponse, GrossDescriptionWipeResponse, HistoryResponse, ImageInfoResponse, ImagesDirectoryResponse, InitDatabaseResponse, IsArrayBlockBlankResponse, KeyValueGetResponse, LoginResponse, LookupTableResponse, MachineScoresImportResponse, MachineScoresInfoResponse, ManyToManyResponse, MasksResponse, MessagesResponse, MetaDataAddResponse, OriginalTypeResponse, QuantityLeftResponse, RecentSessionGetResponse, SelectResponse, SessionDescriptionsResponse, ShapesLoadResponse, ShapesSaveResponse, SpecimenIdentifiersResponse, SuccessResponse, SurgPathNumberResponse, TranslatedRowResponse, UpdateResponse, UsedTissueTypesResponse, UsersSessionsGetResponse

public interface CommandResponse

All ServerResponses implement this class; it contains two methods, one that returns whether the operation was successful and another that returns a String describing the error if the ServerRequest was not successful.


Method Summary
 java.lang.String getError()
          Returns an error message if the request could not complete successfully.
 boolean isSuccessful()
          Returns true if the request completed successfully
 

Method Detail

isSuccessful

boolean isSuccessful()
Returns true if the request completed successfully


getError

java.lang.String getError()
Returns an error message if the request could not complete successfully. This should not be called unless isSuccessful() returns false.