
org.simple4j.apiaopvalidator.beans.AppResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of APIAOPValidator Show documentation
Show all versions of APIAOPValidator Show documentation
This is a simple configurable validation library for web services API validation using AOP.
The newest version!
package org.simple4j.apiaopvalidator.beans;
/**
* Application resonse bean to return a responseObject or errorDetaisl object without throwing exception for business failure cases
*
* @author jsrinivas108
* @param
*/
public class AppResponse
{
/**
* Response object of a given API call. It is a generic type that can be defined in the API
*/
public T responseObject = null;
/**
* Error details in case of business error
*/
public ErrorDetails errorDetails = null;
/**
*
*/
public String apiCallName;
@Override
public String toString()
{
return "AppResponse [responseObject=" + responseObject + ", errorDetails=" + errorDetails + ", apiCallName="
+ apiCallName + ", toString()=" + super.toString() + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy