Interface KubernetesCrudDispatcherHandler
-
- All Known Implementing Classes:
PatchHandler,PostHandler,PutHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface KubernetesCrudDispatcherHandler
-
-
Field Summary
Fields Modifier and Type Field Description static intHTTP_UNPROCESSABLE_ENTITYstatic StringKINDstatic StringSTATUS
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default io.fabric8.mockwebserver.http.MockResponsehandle(io.fabric8.mockwebserver.http.RecordedRequest request)io.fabric8.mockwebserver.http.MockResponsehandle(String path, String contentType, String requestBody)static booleanisStatusPath(String path)static voidsetStatus(com.fasterxml.jackson.databind.JsonNode source, com.fasterxml.jackson.databind.JsonNode status)default voidvalidatePath(io.fabric8.mockwebserver.crud.AttributeSet query, com.fasterxml.jackson.databind.JsonNode updatedResource)default io.fabric8.kubernetes.api.model.GenericKubernetesResourcevalidateRequestBody(String requestBody)default voidvalidateResourceVersion(com.fasterxml.jackson.databind.JsonNode currentResource, com.fasterxml.jackson.databind.JsonNode updatedResource)
-
-
-
Field Detail
-
HTTP_UNPROCESSABLE_ENTITY
static final int HTTP_UNPROCESSABLE_ENTITY
- See Also:
- Constant Field Values
-
KIND
static final String KIND
- See Also:
- Constant Field Values
-
STATUS
static final String STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
handle
default io.fabric8.mockwebserver.http.MockResponse handle(io.fabric8.mockwebserver.http.RecordedRequest request) throws KubernetesCrudDispatcherException
-
handle
io.fabric8.mockwebserver.http.MockResponse handle(String path, String contentType, String requestBody) throws KubernetesCrudDispatcherException
-
validatePath
default void validatePath(io.fabric8.mockwebserver.crud.AttributeSet query, com.fasterxml.jackson.databind.JsonNode updatedResource) throws KubernetesCrudDispatcherException
-
validateResourceVersion
default void validateResourceVersion(com.fasterxml.jackson.databind.JsonNode currentResource, com.fasterxml.jackson.databind.JsonNode updatedResource) throws KubernetesCrudDispatcherException
-
validateRequestBody
default io.fabric8.kubernetes.api.model.GenericKubernetesResource validateRequestBody(String requestBody) throws KubernetesCrudDispatcherException
-
isStatusPath
static boolean isStatusPath(String path)
-
setStatus
static void setStatus(com.fasterxml.jackson.databind.JsonNode source, com.fasterxml.jackson.databind.JsonNode status)
-
-