Class VeniceRouteHandler<T extends ControllerResponse>
java.lang.Object
com.linkedin.venice.controller.server.VeniceRouteHandler<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
spark.Route
public abstract class VeniceRouteHandler<T extends ControllerResponse>
extends Object
implements spark.Route
Common route handler implement the common part of error handling and writing response to json.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkIsAllowListUser
(spark.Request request, ControllerResponse veniceResponse, BooleanSupplier isAllowListUser) handle
(spark.Request request, spark.Response response) abstract void
internalHandle
(spark.Request request, T veniceResponse) provides a common way to write a handler function for an HTTP request and fill in the HTTP response.
-
Field Details
-
ACL_CHECK_FAILURE_WARN_MESSAGE_PREFIX
- See Also:
-
-
Constructor Details
-
VeniceRouteHandler
-
-
Method Details
-
handle
- Specified by:
handle
in interfacespark.Route
- Throws:
Exception
-
checkIsAllowListUser
protected boolean checkIsAllowListUser(spark.Request request, ControllerResponse veniceResponse, BooleanSupplier isAllowListUser) -
internalHandle
provides a common way to write a handler function for an HTTP request and fill in the HTTP response.- Parameters:
request
- HTTP request for Venice.veniceResponse
- Venice constructed response.
-