01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19:
20: package org.apache.axis2.deployment.repository.util;
21:
22: import org.apache.axis2.deployment.Deployer;
23: import org.apache.axis2.deployment.ServiceDeployer;
24:
25: public class WSInfo {
26: private String fileName;
27: private long lastModifiedDate;
28:
29: public static final int TYPE_SERVICE = 0;
30: public static final int TYPE_MODULE = 1;
31: public static final int TYPE_CUSTOM = 2;
32:
33: /**
34: * To check whether the file is a module or a service
35: */
36: private int type = TYPE_SERVICE;
37:
38: private Deployer deployer;
39:
40: public WSInfo(String fileName, long lastModifiedDate,
41: Deployer deployer, int type) {
42: this .fileName = fileName;
43: this .lastModifiedDate = lastModifiedDate;
44: this .deployer = deployer;
45: this .type = type;
46: }
47:
48: public String getFileName() {
49: return fileName;
50: }
51:
52: public long getLastModifiedDate() {
53: return lastModifiedDate;
54: }
55:
56: public int getType() {
57: return type;
58: }
59:
60: public void setFileName(String fileName) {
61: this .fileName = fileName;
62: }
63:
64: public void setLastModifiedDate(long lastmodifieddate) {
65: this .lastModifiedDate = lastmodifieddate;
66: }
67:
68: public Deployer getDeployer() {
69: return deployer;
70: }
71: }
|