All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.project13.jgoogl.response.v1.error.Error Maven / Gradle / Ivy

Go to download

goo.gl is a Google service to shorten links, much like bit.ly or others. jGooGl is an wrapper around the API Google offers for this service, using it, it's really easy to get shortened links or revert such goo.gl/example links.

The newest version!
package pl.project13.jgoogl.response.v1.error;

import java.util.List;

/**
 * 
 * {
 *   "error": {
 *     "errors": [
 *       {
 *         "domain": "global",
 *         "reason": "internalError",
 *         "message": "Internal Error"
 *       }
 *     ],
 *     "code": 500,
 *     "message": "Internal Error"
 *   }
 * }
 * 
* Date: 1/16/11 * * @author Konrad Malawski */ public class Error { List errors; Integer code; String message; public Error() { } public List getErrors() { return errors; } public void setErrors(List errors) { this.errors = errors; } /** * code is the HTTP status code of this response. * * @return the HTTP code of the response */ public Integer getCode() { return code; } public void setCode(Integer code) { this.code = code; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } @Override public String toString() { return "Error{" + "errors=" + errors + ", code=" + code + ", message='" + message + "'" + '}'; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy