01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * Initial developer(s): Xavier Delplanque
22: * --------------------------------------------------------------------------
23: * $Id: VcHeader.java 4622 2004-04-19 13:49:54Z sauthieg $
24: * --------------------------------------------------------------------------
25: */package org.objectweb.jonas_ws.wsgen.generator.axis;
26:
27: import javax.xml.namespace.QName;
28:
29: /**
30: * Member of a VelocityContext. Contains information about a SOAP Header
31: * (basically a qName).
32: *
33: * @author Xavier Delplanque
34: */
35: public class VcHeader {
36:
37: /** LocalPart of the QName */
38: private String qname;
39:
40: /** NamespaceURI of the QName */
41: private String namespace;
42:
43: /**
44: * Construct a VcHeader from a QName.
45: *
46: * @param qn the Header QName
47: */
48: public VcHeader(QName qn) {
49:
50: // set qname
51: qname = qn.getLocalPart();
52:
53: // set namespace
54: namespace = qn.getNamespaceURI();
55: }
56:
57: /**
58: * @return Returns the Header localpart
59: */
60: public String getQName() {
61: return qname;
62: }
63:
64: /**
65: * @return Returns the Header namespace URI
66: */
67: public String getNamespace() {
68: return namespace;
69: }
70: }
|