Java Doc for SubscriptionStateHeader.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » sip » header » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » Java Advanced Imaging » javax.sip.header 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.sip.header.SubscriptionStateHeader

SubscriptionStateHeader
public interface SubscriptionStateHeader extends Parameters,Header(Code)
This interface represents the Subscription State header, as defined by RFC3265, this header is not part of RFC3261.

NOTIFY requests MUST contain SubscriptionState headers which indicate the status of the subscription. The subscription states are:

  • active - If the SubscriptionState header value is "active", it means that the subscription has been accepted and (in general) has been authorized. If the header also contains an "expires" parameter, the subscriber SHOULD take it as the authoritative subscription duration and adjust accordingly. The "retry-after" and "reason" parameters have no semantics for "active".
  • pending - If the SubscriptionState value is "pending", the subscription has been received by the notifier, but there is insufficient policy information to grant or deny the subscription yet. If the header also contains an "expires" parameter, the subscriber SHOULD take it as the authoritative subscription duration and adjust accordingly. No further action is necessary on the part of the subscriber. The "retry-after" and "reason" parameters have no semantics for "pending".
  • terminated - If the SubscriptionState value is "terminated", the subscriber should consider the subscription terminated. The "expires" parameter has no semantics for "terminated". If a reason code is present, the client should behave as described in the reason code defined in this Header. If no reason code or an unknown reason code is present, the client MAY attempt to re-subscribe at any time (unless a "retry-after" parameter is present, in which case the client SHOULD NOT attempt re-subscription until after the number of seconds specified by the "retry-after" parameter).

author:
   BEA Systems, NIST
version:
   1.2


Field Summary
final public static  StringACTIVE
     State: The subscription has been accepted and (in general) has been authorized.
final public static  StringDEACTIVATED
     Reason Code: The subscription has been terminated, but the subscriber SHOULD retry immediately with a new subscription.
final public static  StringGIVE_UP
     Reason Code: The subscription has been terminated because the notifier could not obtain authorization in a timely fashion.
final public static  StringNAME
    
final public static  StringNO_RESOURCE
     Reason Code: The subscription has been terminated because the resource state which was being monitored no longer exists.
final public static  StringPENDING
     State: The subscription has been received by the notifier, but there is insufficient policy information to grant or deny the subscription yet.
final public static  StringPROBATION
     Reason Code: The subscription has been terminated, but the client SHOULD retry at some later time.
final public static  StringREJECTED
     Reason Code: The subscription has been terminated due to change in authorization policy.
final public static  StringTERMINATED
     State: The subscription has been terminated, if a reason code is present, the client should behave as described in the reason code.
final public static  StringTIMEOUT
     Reason Code: The subscription has been terminated because it was not refreshed before it expired.
final public static  StringUNKNOWN
     Reason Code: The reason why the subscription was terminated is Unknown.


Method Summary
public  intgetExpires()
     Gets the expires value of the SubscriptionStateHeader.
public  StringgetReasonCode()
     Gets the reason code of SubscriptionStateHeader.
public  intgetRetryAfter()
     Gets the retry after value of the SubscriptionStateHeader.
public  StringgetState()
     Gets the state of SubscriptionStateHeader.
public  voidsetExpires(int expires)
     Sets the relative expires value of the SubscriptionStateHeader.
public  voidsetReasonCode(String reasonCode)
     Sets the reason code value of the SubscriptionStateHeader.
public  voidsetRetryAfter(int retryAfter)
     Sets the retry after value of the SubscriptionStateHeader.
public  voidsetState(String state)
     Sets the state value of the SubscriptionStateHeader.

Field Detail
ACTIVE
final public static String ACTIVE(Code)
State: The subscription has been accepted and (in general) has been authorized.



DEACTIVATED
final public static String DEACTIVATED(Code)
Reason Code: The subscription has been terminated, but the subscriber SHOULD retry immediately with a new subscription. One primary use of such a status code is to allow migration of subscriptions between nodes. The "retry-after" parameter has no semantics for "deactivated".



GIVE_UP
final public static String GIVE_UP(Code)
Reason Code: The subscription has been terminated because the notifier could not obtain authorization in a timely fashion. If a "retry-after" parameter is also present, the client SHOULD wait at least the number of seconds specified by that parameter before attempting to re-subscribe; otherwise, the client MAY retry immediately, but will likely get put back into pending state.



NAME
final public static String NAME(Code)
Name of SubscriptionStateHeader



NO_RESOURCE
final public static String NO_RESOURCE(Code)
Reason Code: The subscription has been terminated because the resource state which was being monitored no longer exists. Clients SHOULD NOT attempt to re-subscribe. The "retry-after" parameter has no semantics for "noresource".



PENDING
final public static String PENDING(Code)
State: The subscription has been received by the notifier, but there is insufficient policy information to grant or deny the subscription yet.



PROBATION
final public static String PROBATION(Code)
Reason Code: The subscription has been terminated, but the client SHOULD retry at some later time. If a "retry-after" parameter is also present, the client SHOULD wait at least the number of seconds specified by that parameter before attempting to re-subscribe.



REJECTED
final public static String REJECTED(Code)
Reason Code: The subscription has been terminated due to change in authorization policy. Clients SHOULD NOT attempt to re-subscribe. The "retry-after" parameter has no semantics for "rejected".



TERMINATED
final public static String TERMINATED(Code)
State: The subscription has been terminated, if a reason code is present, the client should behave as described in the reason code.



TIMEOUT
final public static String TIMEOUT(Code)
Reason Code: The subscription has been terminated because it was not refreshed before it expired. Clients MAY re-subscribe immediately. The "retry-after" parameter has no semantics for "timeout".



UNKNOWN
final public static String UNKNOWN(Code)
Reason Code: The reason why the subscription was terminated is Unknown.





Method Detail
getExpires
public int getExpires()(Code)
Gets the expires value of the SubscriptionStateHeader. This expires value is relative time. the expires value of the SubscriptionStateHeader.



getReasonCode
public String getReasonCode()(Code)
Gets the reason code of SubscriptionStateHeader. the comment of this SubscriptionStateHeader, return null if no reason codeis available.



getRetryAfter
public int getRetryAfter()(Code)
Gets the retry after value of the SubscriptionStateHeader. This retry after value is relative time. the retry after value of the SubscriptionStateHeader.



getState
public String getState()(Code)
Gets the state of SubscriptionStateHeader. the state of this SubscriptionStateHeader.



setExpires
public void setExpires(int expires) throws InvalidArgumentException(Code)
Sets the relative expires value of the SubscriptionStateHeader. The expires value MUST be greater than zero and MUST be less than 2**31.
Parameters:
  expires - - the new expires value of this SubscriptionStateHeader.
throws:
  InvalidArgumentException - if supplied value is less than zero.



setReasonCode
public void setReasonCode(String reasonCode) throws ParseException(Code)
Sets the reason code value of the SubscriptionStateHeader.
Parameters:
  reasonCode - - the new reason code string value of the SubscriptionStateHeader.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the reason code.



setRetryAfter
public void setRetryAfter(int retryAfter) throws InvalidArgumentException(Code)
Sets the retry after value of the SubscriptionStateHeader. The retry after value MUST be greater than zero and MUST be less than 2**31.
Parameters:
  retryAfter - - the new retry after value of this SubscriptionStateHeader
throws:
  InvalidArgumentException - if supplied value is less than zero.



setState
public void setState(String state) throws ParseException(Code)
Sets the state value of the SubscriptionStateHeader.
Parameters:
  state - - the new state string value of the SubscriptionStateHeader.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the state.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.