Class TopicResponse
java.lang.Object
org.apache.gravitino.dto.responses.BaseResponse
org.apache.gravitino.dto.responses.TopicResponse
- All Implemented Interfaces:
RESTMessage,RESTResponse
Represents a response to a topic.
-
Constructor Summary
ConstructorsConstructorDescriptionThis is the constructor that is used by Jackson deserializerTopicResponse(TopicDTO topic) Creates a new TopicResponse. -
Method Summary
-
Constructor Details
-
TopicResponse
Creates a new TopicResponse.- Parameters:
topic- The topic DTO object.
-
TopicResponse
public TopicResponse()This is the constructor that is used by Jackson deserializer
-
-
Method Details
-
validate
Description copied from class:BaseResponseValidates the response code.- Specified by:
validatein interfaceRESTMessage- Overrides:
validatein classBaseResponse- Throws:
IllegalArgumentException- if code value is negative.
-