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 StringgetErrorMessage()Returns error message in case of an error.StringgetName()Returns name of the resource, this result object is for.booleanisError()Returns true in case of error.voidsetErrorMessage(String errorMessage)Sets error message of the responsevoidsetIsError(boolean isError)Sets status (error or success) of the responseStringtoString()
-
-
-
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
-
-