KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > xml > internal > security > utils > resolver > ResourceResolverException


1
2 /*
3  * Copyright 1999-2004 The Apache Software Foundation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */

18 package com.sun.org.apache.xml.internal.security.utils.resolver;
19
20
21
22 import com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException;
23 import org.w3c.dom.Attr JavaDoc;
24
25
26 /**
27  * This Exception is thrown if something related to the
28  * {@link com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolver} goes wrong.
29  *
30  * @author $Author: raul $
31  */

32 public class ResourceResolverException extends XMLSecurityException {
33
34    /**
35      *
36      */

37     private static final long serialVersionUID = 1L;
38    /**
39     * Constructor ResourceResolverException
40     *
41     * @param _msgID
42     * @param uri
43     * @param BaseURI
44     */

45    public ResourceResolverException(String JavaDoc _msgID, Attr JavaDoc uri, String JavaDoc BaseURI) {
46
47       super(_msgID);
48
49       this._uri = uri;
50       this._BaseURI = BaseURI;
51    }
52
53    /**
54     * Constructor ResourceResolverException
55     *
56     * @param _msgID
57     * @param exArgs
58     * @param uri
59     * @param BaseURI
60     */

61    public ResourceResolverException(String JavaDoc _msgID, Object JavaDoc exArgs[], Attr JavaDoc uri,
62                                     String JavaDoc BaseURI) {
63
64       super(_msgID, exArgs);
65
66       this._uri = uri;
67       this._BaseURI = BaseURI;
68    }
69
70    /**
71     * Constructor ResourceResolverException
72     *
73     * @param _msgID
74     * @param _originalException
75     * @param uri
76     * @param BaseURI
77     */

78    public ResourceResolverException(String JavaDoc _msgID, Exception JavaDoc _originalException,
79                                     Attr JavaDoc uri, String JavaDoc BaseURI) {
80
81       super(_msgID, _originalException);
82
83       this._uri = uri;
84       this._BaseURI = BaseURI;
85    }
86
87    /**
88     * Constructor ResourceResolverException
89     *
90     * @param _msgID
91     * @param exArgs
92     * @param _originalException
93     * @param uri
94     * @param BaseURI
95     */

96    public ResourceResolverException(String JavaDoc _msgID, Object JavaDoc exArgs[],
97                                     Exception JavaDoc _originalException, Attr JavaDoc uri,
98                                     String JavaDoc BaseURI) {
99
100       super(_msgID, exArgs, _originalException);
101
102       this._uri = uri;
103       this._BaseURI = BaseURI;
104    }
105
106    //J-
107
Attr JavaDoc _uri = null;
108    /**
109     *
110     * @param uri
111     */

112    public void setURI(Attr JavaDoc uri) {
113       this._uri = uri;
114    }
115    
116    /**
117     *
118     * @return the uri
119     */

120    public Attr JavaDoc getURI() {
121       return this._uri;
122    }
123
124    String JavaDoc _BaseURI;
125    
126    /**
127     *
128     * @param BaseURI
129     */

130    public void setBaseURI(String JavaDoc BaseURI) {
131       this._BaseURI = BaseURI;
132    }
133    
134    /**
135     *
136     * @return the basUri
137     */

138    public String JavaDoc getBaseURI() {
139       return this._BaseURI;
140    }
141    //J+
142
}
143
Popular Tags