edu.jhu.tmaj.servlet.response
Class SuccessResponse

java.lang.Object
  extended by edu.jhu.tmaj.servlet.response.SuccessResponse
All Implemented Interfaces:
CommandResponse, java.io.Serializable
Direct Known Subclasses:
ArrayCoreReferenceResponse, ArrayCoresGetResponse, ArrayImageCollectionResponse, ArrayImageCoresResponse, CellLinesReferenceResponse, CheckIfSpecimenExistsResponse, DetailsResponse, DiagnosisLookupResponse, DynamicMetaDataResponse, EnumerationsResponse, 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, SurgPathNumberResponse, TranslatedRowResponse, UpdateResponse, UsedTissueTypesResponse, UsersSessionsGetResponse

public class SuccessResponse
extends java.lang.Object
implements CommandResponse, java.io.Serializable

Every ServerResponse except the ErrorResponse extend this class. This class simply indicates that the response is successful. SubClasses will include other data in the response, such as a list of data.

See Also:
Serialized Form

Constructor Summary
SuccessResponse()
           
 
Method Summary
 java.lang.String getError()
          This method should not be called, as there was no error since this is a Successful Response.
 boolean isSuccessful()
          Returns true.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SuccessResponse

public SuccessResponse()
Method Detail

isSuccessful

public final boolean isSuccessful()
Returns true.

Specified by:
isSuccessful in interface CommandResponse

getError

public final java.lang.String getError()
This method should not be called, as there was no error since this is a Successful Response.

Specified by:
getError in interface CommandResponse

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object