Package org.glassfish.admin.rest.results
Class Result
- java.lang.Object
-
- org.glassfish.admin.rest.results.Result
-
- Direct Known Subclasses:
ActionReportResult
,GetResultList
,OptionsResult
public class Result extends Object
Response information object. Information used by provider to generate the appropriate output.- Author:
- Rajeshwar Patil
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorMessage()
Returns error message in case of an error.String
getName()
Returns name of the resource, this result object is for.boolean
isError()
Returns true in case of error.void
setErrorMessage(String errorMessage)
Sets error message of the responsevoid
setIsError(boolean isError)
Sets status (error or success) of the responseString
toString()
-
-
-
Constructor Detail
-
Result
public Result()
-
Result
public Result(String name)
-
-
Method Detail
-
getName
public String getName()
Returns name of the resource, this result object is for.
-
isError
public boolean isError()
Returns true in case of error. Enables provider to generate error message or otherwise.
-
getErrorMessage
public String getErrorMessage()
Returns error message in case of an error.
-
setIsError
public void setIsError(boolean isError)
Sets status (error or success) of the response
-
setErrorMessage
public void setErrorMessage(String errorMessage)
Sets error message of the response
-
-