public abstract class UpdateTerminationRequest extends Object
ForkActivity
. The request may be updated with
Reason headers or other info that informs the remote endpoint why the branch was
terminated.[*] BYEs may be sent on cancelled branches where the 2xx arrived before the CANCEL could be sent.
Modifier and Type | Field and Description |
---|---|
static UpdateTerminationRequest |
NULL
Null object implementation that doesn't modify the request.
|
Constructor and Description |
---|
UpdateTerminationRequest() |
Modifier and Type | Method and Description |
---|---|
abstract Request |
apply(Request request,
TerminationReason reason)
Apply updates to the termination request before it is transmitted.
|
public static UpdateTerminationRequest NULL
public abstract Request apply(Request request, TerminationReason reason)
request
- a CANCEL or BYE request generated by the RA to terminate
a particular branch.reason
- a TerminationReason
object indicating why the branch is
terminated. This may be used to determine the appropriate information to add
to the request.Request
object.