Class ExternalSystemResponse
- java.lang.Object
-
- org.openbravo.service.externalsystem.ExternalSystemResponse
-
public class ExternalSystemResponse extends Object
Keeps the information of a response from an external system
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExternalSystemResponse.Type
Defines the supported external system response types after a communication with an external system:
- SUCCESS: when the communication was correct
- ERROR: to indicate that there were errors during the communication with the external system
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getData()
Object
getError()
int
getStatusCode()
ExternalSystemResponse.Type
getType()
-
-
-
Method Detail
-
getData
public Object getData()
- Returns:
- the data received in the external system response
-
getType
public ExternalSystemResponse.Type getType()
- Returns:
- the type of the external system response
- See Also:
ExternalSystemResponse.Type
-
getStatusCode
public int getStatusCode()
- Returns:
- the status code of the external system response
-
getError
public Object getError()
- Returns:
- the error information of the external system response
-
-