01: /*
02: * The contents of this file are subject to the
03: * Mozilla Public License Version 1.1 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at http://www.mozilla.org/MPL/
06: *
07: * Software distributed under the License is distributed on an "AS IS"
08: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
09: * 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 errorMessage;
36: private String newURL;
37:
38: protected LinkStatus(Asset asset, String errorMessage) {
39: this .asset = asset;
40: this .errorMessage = errorMessage;
41: }
42:
43: protected LinkStatus(Asset asset, String errorMessage, String newURL) {
44: this (asset, errorMessage);
45: this .newURL = newURL;
46: }
47:
48: public Asset getAsset() {
49: return asset;
50: }
51:
52: public String getErrorMessage() {
53: return errorMessage;
54: }
55:
56: public String getNewURL() {
57: return newURL;
58: }
59:
60: public void setNewURL(String newURL) {
61: this.newURL = newURL;
62: }
63: }
|