• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package javax.sip.header;
2 
3 import java.text.ParseException;
4 import javax.sip.InvalidArgumentException;
5 
6 public interface SubscriptionStateHeader extends ExpiresHeader, Parameters {
7     String NAME = "Subscription-State";
8 
9     String DEACTIVATED = "Deactivated";
10     String GIVE_UP = "Give-Up";
11     String NO_RESOURCE = "No-Resource";
12     String PROBATION = "Probation";
13     String REJECTED = "Rejected";
14     String TIMEOUT = "Timeout";
15     String UNKNOWN = "Unknown";
16 
17     String ACTIVE = "Active";
18     String PENDING = "Pending";
19     String TERMINATED = "Terminated";
20 
getReasonCode()21     String getReasonCode();
setReasonCode(String reasonCode)22     void setReasonCode(String reasonCode) throws ParseException;
23 
getRetryAfter()24     int getRetryAfter();
setRetryAfter(int retryAfter)25     void setRetryAfter(int retryAfter) throws InvalidArgumentException;
26 
getState()27     String getState();
setState(String state)28     void setState(String state) throws ParseException;
29 }
30