Debian Codegraph @

java/gov/nist/javax/sip/header/Unsupported.java

raw
1 /*
2 * Conditions Of Use
3 *
4 * This software was developed by employees of the National Institute of
5 * Standards and Technology (NIST), an agency of the Federal Government.
6 * Pursuant to title 15 Untied States Code Section 105, works of NIST
7 * employees are not subject to copyright protection in the United States
8 * and are considered to be in the public domain. As a result, a formal
9 * license is not needed to use the software.
10 *
11 * This software is provided by NIST as a service and is expressly
12 * provided "AS IS." NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
13 * OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
14 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
15 * AND DATA ACCURACY. NIST does not warrant or make any representations
16 * regarding the use of the software or the results thereof, including but
17 * not limited to the correctness, accuracy, reliability or usefulness of
18 * the software.
19 *
20 * Permission to use this software is contingent upon your acceptance
21 * of the terms of this agreement
22 *
23 * .
24 *
25 */
26 /*******************************************************************************
27 * Product of NIST/ITL Advanced Networking Technologies Division (ANTD). *
28 *******************************************************************************/
29 package gov.nist.javax.sip.header;
30
31 import java.text.ParseException;
32
33 /**
34 * the Unsupported header.
35 *
36 * @version 1.2 $Revision: 1.5 $ $Date: 2009/07/17 18:57:40 $
37 * @author Olivier Deruelle <br/>
38 *
39 *
40 *
41 */
42 public class Unsupported
43 extends SIPHeader
44 implements javax.sip.header.UnsupportedHeader {
45
46 /**
47 * Comment for <code>serialVersionUID</code>
48 */
49 private static final long serialVersionUID = -2479414149440236199L;
50 /** option-Tag field.
51 */
52 protected String optionTag;
53
54 /** Default Constructor.
55 */
56 public Unsupported() {
57 super(NAME);
58 }
59
60 /** Constructor
61 * @param ot String to set
62 */
63 public Unsupported(String ot) {
64 super(NAME);
65 optionTag = ot;
66 }
67
68 /**
69 * Return a canonical value.
70 * @return String.
71 */
72 public String encodeBody() {
73 return optionTag;
74 }
75
76 /** get the option tag field
77 * @return option Tag field
78 */
79 public String getOptionTag() {
80 return optionTag;
81 }
82
83 /**
84 * Set the option member
85 * @param o String to set
86 */
87 public void setOptionTag(String o) throws ParseException {
88 if (o == null)
89 throw new NullPointerException(
90 "JAIN-SIP Exception, "
91 + " Unsupported, setOptionTag(), The option tag parameter is null");
92 optionTag = o;
93 }
94 }
95 /*
96 * $Log: Unsupported.java,v $
97 * Revision 1.5 2009/07/17 18:57:40 emcho
98 * Converts indentation tabs to spaces so that we have a uniform indentation policy in the whole project.
99 *
100 * Revision 1.4 2006/07/13 09:01:34 mranga
101 * Issue number:
102 * Obtained from:
103 * Submitted by: jeroen van bemmel
104 * Reviewed by: mranga
105 * Moved some changes from jain-sip-1.2 to java.net
106 *
107 * CVS: ----------------------------------------------------------------------
108 * CVS: Issue number:
109 * CVS: If this change addresses one or more issues,
110 * CVS: then enter the issue number(s) here.
111 * CVS: Obtained from:
112 * CVS: If this change has been taken from another system,
113 * CVS: then name the system in this line, otherwise delete it.
114 * CVS: Submitted by:
115 * CVS: If this code has been contributed to the project by someone else; i.e.,
116 * CVS: they sent us a patch or a set of diffs, then include their name/email
117 * CVS: address here. If this is your work then delete this line.
118 * CVS: Reviewed by:
119 * CVS: If we are doing pre-commit code reviews and someone else has
120 * CVS: reviewed your changes, include their name(s) here.
121 * CVS: If you have not had it reviewed then delete this line.
122 *
123 * Revision 1.3 2006/06/19 06:47:27 mranga
124 * javadoc fixups
125 *
126 * Revision 1.2 2006/06/16 15:26:28 mranga
127 * Added NIST disclaimer to all public domain files. Clean up some javadoc. Fixed a leak
128 *
129 * Revision 1.1.1.1 2005/10/04 17:12:35 mranga
130 *
131 * Import
132 *
133 *
134 * Revision 1.2 2004/01/22 13:26:30 sverker
135 * Issue number:
136 * Obtained from:
137 * Submitted by: sverker
138 * Reviewed by: mranga
139 *
140 * Major reformat of code to conform with style guide. Resolved compiler and javadoc warnings. Added CVS tags.
141 *
142 * CVS: ----------------------------------------------------------------------
143 * CVS: Issue number:
144 * CVS: If this change addresses one or more issues,
145 * CVS: then enter the issue number(s) here.
146 * CVS: Obtained from:
147 * CVS: If this change has been taken from another system,
148 * CVS: then name the system in this line, otherwise delete it.
149 * CVS: Submitted by:
150 * CVS: If this code has been contributed to the project by someone else; i.e.,
151 * CVS: they sent us a patch or a set of diffs, then include their name/email
152 * CVS: address here. If this is your work then delete this line.
153 * CVS: Reviewed by:
154 * CVS: If we are doing pre-commit code reviews and someone else has
155 * CVS: reviewed your changes, include their name(s) here.
156 * CVS: If you have not had it reviewed then delete this line.
157 *
158 */