01: /*
02: * Copyright 2007 Hippo.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package nl.hippo.cms.brokenlinkchecker;
17:
18: import nl.hippo.cms.brokenlinkchecker.log.BrokenLinkCheckerLog;
19: import nl.hippo.cms.brokenlinkchecker.log.NoOperationLog;
20: import org.apache.commons.httpclient.HttpClient;
21:
22: /**
23: * <p>
24: * Simple bean implementation of the broken link checker task configuration.
25: * </p>
26: */
27: public class BrokenLinkCheckerTaskConfigurationBean implements
28: BrokenLinkCheckerTaskConfiguration {
29: private BrokenLinkCheckerRun brokenLinkCheckerRun;
30:
31: private HttpClient httpClient;
32:
33: private String internalLinksBaseUrl;
34:
35: private BrokenLinkCheckerLog log = NoOperationLog.getInstance();
36:
37: /**
38: * <p>
39: * Create an instance of this class. The following attributes will be
40: * set to default values:
41: * </p>
42: * <table>
43: * <tr>
44: * <th>Attribute</th>
45: * <th>Default value</th>
46: * </tr>
47: * <tr>
48: * <td>{@link #log}</td>
49: * <td>An instance of {@link NoOperationLog}.</td>
50: * </tr>
51: * </table>
52: */
53: public BrokenLinkCheckerTaskConfigurationBean() {
54: super ();
55:
56: // No action needed. There is nothing to initialize.
57: }
58:
59: public BrokenLinkCheckerRun getBrokenLinkCheckerRun() {
60: return brokenLinkCheckerRun;
61: }
62:
63: public void setBrokenLinkCheckerRun(
64: BrokenLinkCheckerRun brokenLinkCheckerRun) {
65: this .brokenLinkCheckerRun = brokenLinkCheckerRun;
66: }
67:
68: public HttpClient getHttpClient() {
69: return httpClient;
70: }
71:
72: public void setHttpClient(HttpClient httpClient) {
73: this .httpClient = httpClient;
74: }
75:
76: public String getInternalLinksBaseUrl() {
77: return internalLinksBaseUrl;
78: }
79:
80: public void setInternalLinksBaseUrl(String internalLinksBaseUrl) {
81: this .internalLinksBaseUrl = internalLinksBaseUrl;
82: }
83:
84: public BrokenLinkCheckerLog getLog() {
85: return log;
86: }
87:
88: public void setLog(BrokenLinkCheckerLog log) {
89: this.log = log;
90: }
91: }
|