KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > rm > resources > content > utils > LinkStatus


1 /*
2  * The contents of this file are subject to the
3  * Mozilla Public License Version 1.1 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at http://www.mozilla.org/MPL/
6  *
7  * Software distributed under the License is distributed on an "AS IS"
8  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
9  * See the License for the specific language governing rights and
10  * limitations under the License.
11  *
12  * The Initial Developer of the Original Code is Simulacra Media Ltd.
13  * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
14  *
15  * All Rights Reserved.
16  *
17  * Contributor(s):
18  *
19  * Created: 29-Nov-2004 by jejking
20  * Version: $Revision: 1.1 $
21  * Last Updated: $Date: 2004/12/07 12:24:33 $
22  */

23 package org.openharmonise.rm.resources.content.utils;
24
25 import org.openharmonise.rm.resources.content.*;
26
27 /**
28  * Simple bean which represents an error in connecting to a web resource.
29  *
30  * @author jejking
31  */

32 public class LinkStatus {
33     
34     private Asset asset;
35     private String JavaDoc errorMessage;
36     private String JavaDoc newURL;
37     
38     protected LinkStatus(Asset asset, String JavaDoc errorMessage) {
39         this.asset = asset;
40         this.errorMessage = errorMessage;
41     }
42     
43     protected LinkStatus(Asset asset, String JavaDoc errorMessage, String JavaDoc newURL) {
44         this(asset, errorMessage);
45         this.newURL = newURL;
46     }
47     
48     public Asset getAsset() {
49         return asset;
50     }
51     
52     public String JavaDoc getErrorMessage() {
53         return errorMessage;
54     }
55     
56     public String JavaDoc getNewURL() {
57         return newURL;
58     }
59     
60     public void setNewURL(String JavaDoc newURL) {
61         this.newURL = newURL;
62     }
63 }
64
Popular Tags