- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 45 of file WsServer.java.
◆ entityId()
Object org.turro.ws.WsServer.entityId |
( |
| ) |
|
◆ from()
static WsServer org.turro.ws.WsServer.from |
( |
String |
serverDomain, |
|
|
String |
service |
|
) |
| |
|
static |
Definition at line 149 of file WsServer.java.
150 WsServer server =
new WsServer();
151 server.setServerDomain(serverDomain);
152 server.setService(service);
◆ getContact()
IContact org.turro.ws.WsServer.getContact |
( |
| ) |
|
Definition at line 115 of file WsServer.java.
116 return Contacts.getContactById(contactId);
◆ getContactId()
String org.turro.ws.WsServer.getContactId |
( |
| ) |
|
◆ getName()
String org.turro.ws.WsServer.getName |
( |
| ) |
|
◆ getServerDomain()
String org.turro.ws.WsServer.getServerDomain |
( |
| ) |
|
◆ getServerStrId()
String org.turro.ws.WsServer.getServerStrId |
( |
| ) |
|
◆ getService()
String org.turro.ws.WsServer.getService |
( |
| ) |
|
◆ getServiceName()
Definition at line 104 of file WsServer.java.
105 return serviceName ==
null ?
new ServiceNamePair(service, service) : serviceName;
◆ getStandardPars()
String org.turro.ws.WsServer.getStandardPars |
( |
| ) |
|
Definition at line 96 of file WsServer.java.
97 return "serverDomain=%s&service=%s".formatted(serverDomain, service);
◆ isEmpty()
boolean org.turro.ws.WsServer.isEmpty |
( |
| ) |
|
◆ isValidIP()
boolean org.turro.ws.WsServer.isValidIP |
( |
String |
ip | ) |
|
Definition at line 78 of file WsServer.java.
80 String[] parts = serverDomain.split(
"[\\:\\/]");
81 return URIs.validIP(parts[0], ip);
82 }
catch (UnknownHostException ex) {
83 Logger.getLogger(WsServer.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ setContact()
void org.turro.ws.WsServer.setContact |
( |
IContact |
contact | ) |
|
Definition at line 119 of file WsServer.java.
120 contactId = contact ==
null ? null : contact.getId();
◆ setContactId()
void org.turro.ws.WsServer.setContactId |
( |
String |
contactId | ) |
|
Definition at line 72 of file WsServer.java.
73 this.contactId = contactId;
◆ setServerDomain()
void org.turro.ws.WsServer.setServerDomain |
( |
String |
serverDomain | ) |
|
Definition at line 56 of file WsServer.java.
57 this.serverDomain = serverDomain;
◆ setService()
void org.turro.ws.WsServer.setService |
( |
String |
service | ) |
|
◆ setServiceName()
Definition at line 108 of file WsServer.java.
109 this.serviceName = serviceName;
◆ toJson() [1/2]
String org.turro.ws.WsServer.toJson |
( |
| ) |
|
◆ toJson() [2/2]
String org.turro.ws.WsServer.toJson |
( |
Map< String, Object > |
properties | ) |
|
The documentation for this class was generated from the following file: