public class SimpleDistributionResponse extends Object implements org.apache.sling.distribution.DistributionResponse
DistributionResponse
where success is given by not being in FAILED state.Constructor and Description |
---|
SimpleDistributionResponse(org.apache.sling.distribution.DistributionRequestState state,
String message) |
SimpleDistributionResponse(org.apache.sling.distribution.DistributionRequestState state,
String message,
org.apache.sling.distribution.DistributionResponseInfo info) |
Modifier and Type | Method and Description |
---|---|
org.apache.sling.distribution.DistributionResponseInfo |
getDistributionInfo() |
String |
getMessage() |
@NotNull org.apache.sling.distribution.DistributionRequestState |
getState() |
boolean |
isSuccessful() |
String |
toString() |
public SimpleDistributionResponse(org.apache.sling.distribution.DistributionRequestState state, String message, org.apache.sling.distribution.DistributionResponseInfo info)
public SimpleDistributionResponse(org.apache.sling.distribution.DistributionRequestState state, String message)
public boolean isSuccessful()
isSuccessful
in interface org.apache.sling.distribution.DistributionResponse
@NotNull public @NotNull org.apache.sling.distribution.DistributionRequestState getState()
getState
in interface org.apache.sling.distribution.DistributionResponse
public String getMessage()
getMessage
in interface org.apache.sling.distribution.DistributionResponse
@Nonnull public org.apache.sling.distribution.DistributionResponseInfo getDistributionInfo()
getDistributionInfo
in interface org.apache.sling.distribution.DistributionResponse
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.