Debian Codegraph @

java/gov/nist/javax/sip/header/Organization.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
30 package gov.nist.javax.sip.header;
31
32 import java.text.ParseException;
33 import javax.sip.header.*;
34
35 /**
36 * Organization SIP Header.
37 *
38 * @version 1.2 $Revision: 1.5 $ $Date: 2009/07/17 18:57:32 $
39 * @since 1.1
40 *
41 * @author M. Ranganathan <br/>
42 * @author Olivier Deruelle <br/>
43 *
44 *
45 *
46 */
47 public class Organization extends SIPHeader implements OrganizationHeader {
48
49 /**
50 * Comment for <code>serialVersionUID</code>
51 */
52 private static final long serialVersionUID = -2775003113740192712L;
53 /**
54 * Organization field
55 */
56 protected String organization;
57
58 /**
59 * Return encoding of value of the header.
60 * @return String
61 */
62 public String encodeBody() {
63 return organization;
64 }
65
66 /**
67 * Default constructor
68 */
69 public Organization() {
70 super(ORGANIZATION);
71 }
72
73 /**
74 * Get the organization field.
75 * @return String
76 */
77 public String getOrganization() {
78 return organization;
79 }
80
81 /**
82 * Set the organization member
83 * @param o String to set
84 */
85 public void setOrganization(String o) throws ParseException {
86 if (o == null)
87 throw new NullPointerException(
88 "JAIN-SIP Exception,"
89 + " Organization, setOrganization(), the organization parameter is null");
90 organization = o;
91 }
92 }
93 /*
94 * $Log: Organization.java,v $
95 * Revision 1.5 2009/07/17 18:57:32 emcho
96 * Converts indentation tabs to spaces so that we have a uniform indentation policy in the whole project.
97 *
98 * Revision 1.4 2006/07/13 09:01:15 mranga
99 * Issue number:
100 * Obtained from:
101 * Submitted by: jeroen van bemmel
102 * Reviewed by: mranga
103 * Moved some changes from jain-sip-1.2 to java.net
104 *
105 * CVS: ----------------------------------------------------------------------
106 * CVS: Issue number:
107 * CVS: If this change addresses one or more issues,
108 * CVS: then enter the issue number(s) here.
109 * CVS: Obtained from:
110 * CVS: If this change has been taken from another system,
111 * CVS: then name the system in this line, otherwise delete it.
112 * CVS: Submitted by:
113 * CVS: If this code has been contributed to the project by someone else; i.e.,
114 * CVS: they sent us a patch or a set of diffs, then include their name/email
115 * CVS: address here. If this is your work then delete this line.
116 * CVS: Reviewed by:
117 * CVS: If we are doing pre-commit code reviews and someone else has
118 * CVS: reviewed your changes, include their name(s) here.
119 * CVS: If you have not had it reviewed then delete this line.
120 *
121 * Revision 1.3 2006/06/19 06:47:26 mranga
122 * javadoc fixups
123 *
124 * Revision 1.2 2006/06/16 15:26:28 mranga
125 * Added NIST disclaimer to all public domain files. Clean up some javadoc. Fixed a leak
126 *
127 * Revision 1.1.1.1 2005/10/04 17:12:34 mranga
128 *
129 * Import
130 *
131 *
132 * Revision 1.2 2004/01/22 13:26:29 sverker
133 * Issue number:
134 * Obtained from:
135 * Submitted by: sverker
136 * Reviewed by: mranga
137 *
138 * Major reformat of code to conform with style guide. Resolved compiler and javadoc warnings. Added CVS tags.
139 *
140 * CVS: ----------------------------------------------------------------------
141 * CVS: Issue number:
142 * CVS: If this change addresses one or more issues,
143 * CVS: then enter the issue number(s) here.
144 * CVS: Obtained from:
145 * CVS: If this change has been taken from another system,
146 * CVS: then name the system in this line, otherwise delete it.
147 * CVS: Submitted by:
148 * CVS: If this code has been contributed to the project by someone else; i.e.,
149 * CVS: they sent us a patch or a set of diffs, then include their name/email
150 * CVS: address here. If this is your work then delete this line.
151 * CVS: Reviewed by:
152 * CVS: If we are doing pre-commit code reviews and someone else has
153 * CVS: reviewed your changes, include their name(s) here.
154 * CVS: If you have not had it reviewed then delete this line.
155 *
156 */