|
1 /* |
|
2 * reserved comment block |
|
3 * DO NOT REMOVE OR ALTER! |
|
4 */ |
|
5 /** |
|
6 * Licensed to the Apache Software Foundation (ASF) under one |
|
7 * or more contributor license agreements. See the NOTICE file |
|
8 * distributed with this work for additional information |
|
9 * regarding copyright ownership. The ASF licenses this file |
|
10 * to you under the Apache License, Version 2.0 (the |
|
11 * "License"); you may not use this file except in compliance |
|
12 * with the License. You may obtain a copy of the License at |
|
13 * |
|
14 * http://www.apache.org/licenses/LICENSE-2.0 |
|
15 * |
|
16 * Unless required by applicable law or agreed to in writing, |
|
17 * software distributed under the License is distributed on an |
|
18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
|
19 * KIND, either express or implied. See the License for the |
|
20 * specific language governing permissions and limitations |
|
21 * under the License. |
|
22 */ |
|
23 package com.sun.org.apache.xml.internal.security.utils.resolver; |
|
24 |
|
25 import com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException; |
|
26 import org.w3c.dom.Attr; |
|
27 |
|
28 /** |
|
29 * This Exception is thrown if something related to the |
|
30 * {@link com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolver} goes wrong. |
|
31 * |
|
32 * @author $Author: coheigea $ |
|
33 */ |
|
34 public class ResourceResolverException extends XMLSecurityException { |
|
35 |
|
36 private static final long serialVersionUID = 1L; |
|
37 |
|
38 private Attr uri = null; |
|
39 |
|
40 private String baseURI = null; |
|
41 |
|
42 /** |
|
43 * Constructor ResourceResolverException |
|
44 * |
|
45 * @param msgID |
|
46 * @param uri |
|
47 * @param baseURI |
|
48 */ |
|
49 public ResourceResolverException(String msgID, Attr uri, String baseURI) { |
|
50 super(msgID); |
|
51 |
|
52 this.uri = uri; |
|
53 this.baseURI = baseURI; |
|
54 } |
|
55 |
|
56 /** |
|
57 * Constructor ResourceResolverException |
|
58 * |
|
59 * @param msgID |
|
60 * @param exArgs |
|
61 * @param uri |
|
62 * @param baseURI |
|
63 */ |
|
64 public ResourceResolverException(String msgID, Object exArgs[], Attr uri, |
|
65 String baseURI) { |
|
66 super(msgID, exArgs); |
|
67 |
|
68 this.uri = uri; |
|
69 this.baseURI = baseURI; |
|
70 } |
|
71 |
|
72 /** |
|
73 * Constructor ResourceResolverException |
|
74 * |
|
75 * @param msgID |
|
76 * @param originalException |
|
77 * @param uri |
|
78 * @param baseURI |
|
79 */ |
|
80 public ResourceResolverException(String msgID, Exception originalException, |
|
81 Attr uri, String baseURI) { |
|
82 super(msgID, originalException); |
|
83 |
|
84 this.uri = uri; |
|
85 this.baseURI = baseURI; |
|
86 } |
|
87 |
|
88 /** |
|
89 * Constructor ResourceResolverException |
|
90 * |
|
91 * @param msgID |
|
92 * @param exArgs |
|
93 * @param originalException |
|
94 * @param uri |
|
95 * @param baseURI |
|
96 */ |
|
97 public ResourceResolverException(String msgID, Object exArgs[], |
|
98 Exception originalException, Attr uri, |
|
99 String baseURI) { |
|
100 super(msgID, exArgs, originalException); |
|
101 |
|
102 this.uri = uri; |
|
103 this.baseURI = baseURI; |
|
104 } |
|
105 |
|
106 /** |
|
107 * |
|
108 * @param uri |
|
109 */ |
|
110 public void setURI(Attr uri) { |
|
111 this.uri = uri; |
|
112 } |
|
113 |
|
114 /** |
|
115 * |
|
116 * @return the uri |
|
117 */ |
|
118 public Attr getURI() { |
|
119 return this.uri; |
|
120 } |
|
121 |
|
122 /** |
|
123 * |
|
124 * @param baseURI |
|
125 */ |
|
126 public void setbaseURI(String baseURI) { |
|
127 this.baseURI = baseURI; |
|
128 } |
|
129 |
|
130 /** |
|
131 * |
|
132 * @return the baseURI |
|
133 */ |
|
134 public String getbaseURI() { |
|
135 return this.baseURI; |
|
136 } |
|
137 |
|
138 } |