public class SBProtocol extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
name |
private int |
port |
private static String |
PORT_KEY |
private int |
tls_port |
private static String |
TLS_PORT_KEY |
| Constructor and Description |
|---|
SBProtocol(String name,
int port,
int tls_port) |
SBProtocol(String name,
org.json.JSONObject js) |
| Modifier and Type | Method and Description |
|---|---|
static SBProtocol |
findProtocol(String name,
SBDevice device)
Find protocol by his name
|
String |
getName() |
int |
getPort() |
int |
getTls_port() |
String |
toString() |
private static final String PORT_KEY
private static final String TLS_PORT_KEY
private String name
private int port
private int tls_port
public SBProtocol(String name, int port, int tls_port)
name - of the protocolport - of the protocoltls_port - of the protocol for secure connectionpublic SBProtocol(String name, org.json.JSONObject js) throws org.json.JSONException
name - of the protocoljs - JSONObject that contains all the information about the protocolorg.json.JSONExceptionpublic String getName()
public int getPort()
public int getTls_port()
public String toString()
public static SBProtocol findProtocol(String name, SBDevice device)
name - of the protocol to searchCopyright © 2016. All rights reserved.