public class ReplicationResult
extends java.lang.Object
ReplicationResult
is returned by the TransportHandler
after sending a request to the recipient. The instance conveys information
on the success of request delivery and request processing.Modifier and Type | Field and Description |
---|---|
static ReplicationResult |
OK
OK result.
|
Constructor and Description |
---|
ReplicationResult(boolean success,
int code,
java.lang.String message)
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns some status code indication sent by the recipient about the
success of processing the replication action and optional content.
|
java.lang.String |
getMessage()
Returns some status message providing clear text indication sent by the
recipient about the success of processing the replication action and
optional content.
|
boolean |
isSuccess()
Returns
true If the replication action and optional content
could be sent to the recipient. |
public static final ReplicationResult OK
public ReplicationResult(boolean success, int code, java.lang.String message)
success
- See isSuccess()
code
- See getCode()
message
- See getMessage()
public boolean isSuccess()
true
If the replication action and optional content
could be sent to the recipient. false
is returned if there
was a transfer problem.
Note that this flag indicates whether the recipient received the request for further processing. It does not indicate whether the recipient could do something useful with it.
true
If the replication action and optional content
could be sent to the recipient. false
is returned if there
was a transfer problem.public int getCode()
For example an HTTP based transport agent may set this field to the HTTP response status code.
public java.lang.String getMessage()
For example an HTTP based transport agent may set this field to the HTTP response status message.
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"