public final class SipStatusUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SipStatusUtil.SipStatusType
Represents the Response SipStatusType.
|
Modifier and Type | Method and Description |
---|---|
static SipStatusUtil.SipStatusType |
classifyStatusCode(int statusCode)
Classifies SIP response status codes into one of the following categories:
Provisional, Success, Failure, Invalid.
|
static java.lang.String |
getReasonPhrase(int statusCode)
Get the standard reason phrase for a SIP status code,
or "Unknown" if the status code is not recognised.
|
static boolean |
isFailureStatusCode(int statusCode)
Convenience method for returning if status code falls between allowable
values for
SipStatusType.Failure . |
static boolean |
isProvisionalStatusCode(int statusCode)
Convenience method for returning if status code falls between allowable
values for
SipStatusType.Provisional . |
static boolean |
isSubscriptionTerminatingCode(int statusCode)
Convenience method for returning if status code should terminate the subscription
|
static boolean |
isSuccessfulStatusCode(int statusCode)
Convenience method for returning if status code falls between allowable
values for
SipStatusType.Success . |
public static SipStatusUtil.SipStatusType classifyStatusCode(int statusCode)
public static boolean isSuccessfulStatusCode(int statusCode)
SipStatusType.Success
.SipStatusType.Success
.public static boolean isProvisionalStatusCode(int statusCode)
SipStatusType.Provisional
.SipStatusType.Provisional
.public static boolean isFailureStatusCode(int statusCode)
SipStatusType.Failure
.SipStatusType.Failure
.public static boolean isSubscriptionTerminatingCode(int statusCode)
public static java.lang.String getReasonPhrase(int statusCode)
Copyright © OpenCloud. All Rights Reserved.