/
Api.java
62 lines (57 loc) · 1.99 KB
/
Api.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* EasySOA Proxy
* Copyright 2011 Open Wide
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Contact : easysoa-dev@googlegroups.com
*/
package org.easysoa.proxy.core.api.monitoring.soa;
public class Api extends Node {
private String application;
private String parentUrl;
private String sourceUrl;
/*
"title": "The name of the document.",
"application": "The related business application.",
"description": "A short description.",
"parentUrl": "(mandatory) The parent URL, which is either another service API, or the service root.",
"sourceUrl": "The web page where the service has been found (useful for REST only).",
"url": "(mandatory) Service API url (WSDL address, parent path...)."
*/
public Api(String url, String parentUrl) throws IllegalArgumentException {
super(url);
if(parentUrl == null || "".equals(parentUrl)){
throw new IllegalArgumentException("parentUrl must not be null or empty");
}
this.parentUrl = parentUrl;
this.application = "";
this.sourceUrl = "";
}
public String getApplication() {
return application;
}
public void setApplication(String application) {
this.application = application;
}
public String getSourceUrl() {
return sourceUrl;
}
public void setSourceUrl(String sourceUrl) {
this.sourceUrl = sourceUrl;
}
public String getParentUrl() {
return parentUrl;
}
}