public interface RESTMessage
REST messages are objects that are sent to and received from REST endpoints. They are typically used to represent the request and response bodies of REST API calls.
Modifier and Type | Method and Description |
---|---|
void |
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
|
void validate() throws java.lang.IllegalArgumentException
This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
java.lang.IllegalArgumentException