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 int
protected String
protected int
protected Document
protected Result.Status
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
boolean
Returns 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:
true
if the operation was successful
-
getErrorCode
public int getErrorCode() -
getHttpErrorCode
public int getHttpErrorCode() -
getStatus
-
getResultDocument
-
getErrorMessage
-
getContentElement
-
toString
-