Interface DistributionRequestHandler
@ConsumerType
public interface DistributionRequestHandler
An handler for
DistributionRequests passed to a
DistributionTrigger-
Method Summary
Modifier and TypeMethodDescription@Nullable org.apache.sling.distribution.component.impl.DistributionComponentKindreturns the kind of component that owns this request handler.@NotNull StringgetName()returns the name of the owner of this request handler.voidhandle(@Nullable org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull org.apache.sling.distribution.DistributionRequest request) handle the request according to the trigger implementation.
-
Method Details
-
getName
returns the name of the owner of this request handler.- Returns:
-
getComponentKind
@Nullable @Nullable org.apache.sling.distribution.component.impl.DistributionComponentKind getComponentKind()returns the kind of component that owns this request handler. Might be null, for unknown kinds of components.- Returns:
-
handle
void handle(@Nullable @Nullable org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull @NotNull org.apache.sling.distribution.DistributionRequest request) handle the request according to the trigger implementation.- Parameters:
request- a distribution request
-