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.aegis;
19:
20: import java.util.Collection;
21: import java.util.HashMap;
22: import java.util.List;
23:
24: import org.apache.cxf.aegis.type.TypeMapping;
25: import org.apache.cxf.interceptor.Fault;
26: import org.apache.cxf.message.Attachment;
27:
28: /**
29: * Holds inforrmation about the message request and response.
30: *
31: * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
32: * @since Feb 13, 2004
33: */
34: public class Context extends HashMap<String, Object> {
35: private TypeMapping typeMapping;
36: private Collection<Attachment> attachments;
37: private boolean writeXsiTypes;
38: private boolean readXsiTypes = true;
39: private List<String> overrideTypes;
40: private Fault fault;
41:
42: public Context() {
43: }
44:
45: public TypeMapping getTypeMapping() {
46: return typeMapping;
47: }
48:
49: public void setTypeMapping(TypeMapping typeMapping) {
50: this .typeMapping = typeMapping;
51: }
52:
53: public Collection<Attachment> getAttachments() {
54: return attachments;
55: }
56:
57: public void setAttachments(Collection<Attachment> attachments) {
58: this .attachments = attachments;
59: }
60:
61: public boolean isWriteXsiTypes() {
62: return writeXsiTypes;
63: }
64:
65: public void setWriteXsiTypes(boolean writeXsiTypes) {
66: this .writeXsiTypes = writeXsiTypes;
67: }
68:
69: public boolean isReadXsiTypes() {
70: return readXsiTypes;
71: }
72:
73: public void setReadXsiTypes(boolean readXsiTypes) {
74: this .readXsiTypes = readXsiTypes;
75: }
76:
77: public List<String> getOverrideTypes() {
78: return overrideTypes;
79: }
80:
81: public void setOverrideTypes(List<String> overrideTypes) {
82: this .overrideTypes = overrideTypes;
83: }
84:
85: public void setFault(Fault fault) {
86: this .fault = fault;
87: }
88:
89: public Fault getFault() {
90: return fault;
91: }
92:
93: }
|