Package io.confluent.rest
Class ResponseContainer<T>
java.lang.Object
io.confluent.rest.ResponseContainer<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ResponseContainer<T> dataResponse(T data) Construct a new data response.static ResponseContainer<?> Construct a new error response.toString()voidwrite(com.fasterxml.jackson.databind.ObjectMapper mapper, org.eclipse.jetty.server.Response response) Write the response to the HttpServletResponse, closing the ServletOutputStream when completed.
-
Field Details
-
data
-
errors
-
-
Method Details
-
errorResponse
Construct a new error response. -
dataResponse
Construct a new data response. -
toString
-
write
public void write(com.fasterxml.jackson.databind.ObjectMapper mapper, org.eclipse.jetty.server.Response response) throws IOException Write the response to the HttpServletResponse, closing the ServletOutputStream when completed.- Throws:
IOException
-