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) |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
@NotNull org.apache.sling.distribution.DistributionRequestState |
getState() |
boolean |
isSuccessful() |
String |
toString() |
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
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.