01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */package org.apache.cxf.headers;
19:
20: import javax.xml.namespace.QName;
21:
22: import org.apache.cxf.databinding.DataBinding;
23:
24: public class Header {
25: public enum Direction {
26: DIRECTION_IN, DIRECTION_OUT, DIRECTION_INOUT
27: };
28:
29: public static final String HEADER_LIST = Header.class.getName()
30: + ".list";
31:
32: private DataBinding dataBinding;
33: private QName name;
34: private Object object;
35:
36: private Direction direction = Header.Direction.DIRECTION_OUT;
37:
38: public Header(QName q, Object o) {
39: this (q, o, null);
40: }
41:
42: public Header(QName q, Object o, DataBinding b) {
43: object = o;
44: name = q;
45: dataBinding = b;
46: }
47:
48: public DataBinding getDataBinding() {
49: return dataBinding;
50: }
51:
52: public void setDataBinding(DataBinding dataBinding) {
53: this .dataBinding = dataBinding;
54: }
55:
56: public QName getName() {
57: return name;
58: }
59:
60: public void setName(QName name) {
61: this .name = name;
62: }
63:
64: public Object getObject() {
65: return object;
66: }
67:
68: public void setObject(Object object) {
69: this .object = object;
70: }
71:
72: public void setDirection(Direction hdrDirection) {
73: this .direction = hdrDirection;
74: }
75:
76: public Direction getDirection() {
77: return direction;
78: }
79:
80: }
|