Revision 41977
Added by Sandro La Bruzzo about 8 years ago
AbstractBaseService.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.enabling.tools; |
2 | 2 |
|
3 |
import java.util.HashMap; |
|
4 |
import java.util.Map; |
|
3 | 5 |
import javax.jws.WebService; |
4 | 6 |
|
5 | 7 |
import eu.dnetlib.rmi.common.BaseService; |
... | ... | |
18 | 20 |
@WebService(targetNamespace = "http://services.dnetlib.eu/") |
19 | 21 |
public abstract class AbstractBaseService implements BaseService, Lifecycle { |
20 | 22 |
|
23 |
|
|
21 | 24 |
/** |
22 | 25 |
* logger. |
23 | 26 |
*/ |
... | ... | |
28 | 31 |
|
29 | 32 |
private String profileId; |
30 | 33 |
|
34 |
/** |
|
35 |
* Key-value pairs with service specific parameters which will appear in service profile. |
|
36 |
*/ |
|
37 |
private Map<String, String> serviceProperties = new HashMap<>(); |
|
38 |
|
|
39 |
/** |
|
40 |
* Key-value pairs [name - endpoint] of extra protocols available in service profiles. |
|
41 |
*/ |
|
42 |
private Map<String, String> extraProtocols = new HashMap<>(); |
|
43 |
|
|
31 | 44 |
protected String getServiceName() { |
32 | 45 |
return BaseServiceUtils.getServiceName(getClass()); |
33 | 46 |
} |
... | ... | |
91 | 104 |
this.profileId = profileId; |
92 | 105 |
} |
93 | 106 |
|
107 |
public Map<String, String> getServiceProperties() { |
|
108 |
return serviceProperties; |
|
109 |
} |
|
110 |
|
|
111 |
public void setServiceProperties(final Map<String, String> serviceProperties) { |
|
112 |
this.serviceProperties = serviceProperties; |
|
113 |
} |
|
114 |
|
|
115 |
public Map<String, String> getExtraProtocols() { |
|
116 |
return extraProtocols; |
|
117 |
} |
|
118 |
|
|
119 |
public void setExtraProtocols(final Map<String, String> extraProtocols) { |
|
120 |
this.extraProtocols = extraProtocols; |
|
121 |
} |
|
94 | 122 |
} |
Also available in: Unified diff
Added dnet-data-provision