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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckIsAllowListUser(spark.Request request, ControllerResponse veniceResponse, BooleanSupplier isAllowListUser) handle(spark.Request request, spark.Response response) abstract voidinternalHandle(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:
handlein 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.
-