Skip to content

Commit c230247

Browse files
committed
feat: added WebAppClient for WebAppHandler
1 parent 78710ea commit c230247

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
""" Module that contains client access to the WebApp handler.
2+
"""
3+
4+
from DIRAC.Core.Base.Client import Client, createClient
5+
6+
7+
@createClient("MonitoringSystem/WebApp")
8+
class WebAppClient(Client):
9+
"""WebAppClient sets url for the WebAppHandler."""
10+
11+
def __init__(self, url=None, **kwargs):
12+
"""
13+
Sets URL for WebApp handler
14+
15+
:param self: self reference
16+
:param url: url of the WebAppHandler
17+
:param kwargs: forwarded to the Base Client class
18+
"""
19+
20+
super().__init__(**kwargs)
21+
22+
if not url:
23+
self.serverURL = "Monitoring/WebApp"
24+
25+
else:
26+
self.serverURL = url

0 commit comments

Comments
 (0)