Package de.umass.lastfm
Class Result
java.lang.Object
de.umass.lastfm.Result
- Direct Known Subclasses:
ScrobbleResult
The
Result class contains the response sent by the server, i.e. the status (either ok or failed),
an error code and message if failed and the xml response sent by the server.- Author:
- Janni Kovacs
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Stringprotected intprotected Documentprotected Result.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintbooleanReturns if the operation was successful.toString()
-
Field Details
-
status
-
errorMessage
-
errorCode
protected int errorCode -
httpErrorCode
protected int httpErrorCode -
resultDocument
-
-
Constructor Details
-
Result
protected Result() -
Result
-
Result
-
-
Method Details
-
isSuccessful
public boolean isSuccessful()Returns if the operation was successful. Same asgetStatus() == Status.OK.- Returns:
trueif the operation was successful
-
getErrorCode
public int getErrorCode() -
getHttpErrorCode
public int getHttpErrorCode() -
getStatus
-
getResultDocument
-
getErrorMessage
-
getContentElement
-
toString
-