public class URLConnector extends SMYLDObject implements ProtocolConsts
URLConnection| Modifier and Type | Field and Description |
|---|---|
static String |
COMPROT_PROP_KEY |
static String |
COMPROT_PROP_VAL |
protected URL |
serverURL |
NEW_LINE, OS_NEW_LINEPROCESS_SERVER_PORT, REQ_INIT, REQ_PROCESS_INFO, REQ_REGISTER, REQ_RUN_PROCESS, REQ_USER_VERIFY, RESP_INIT, RESP_PROCESS_INFO, RESP_REGSITER, RESP_RUN_PROCESS, RESP_USER_VERIFY| Constructor and Description |
|---|
URLConnector(String protocol,
String host,
int port,
String urlSuffix)
Constructs a URLConnector with the given protocol, host, port number and
the url suffix of the file on the server
|
URLConnector(URL connectURL)
Constructs a URL connector encapsulation the given url
|
| Modifier and Type | Method and Description |
|---|---|
ComProtocol |
send(String header,
Serializable body)
Sends a request to through a URLConnection as a
ComProtocol |
void |
setRequestProperty(String propertyName,
String propertyValue) |
debug, getLenName, insertInstanceValue, printInstanceValues, toStringprotected URL serverURL
public static final String COMPROT_PROP_KEY
public static final String COMPROT_PROP_VAL
public URLConnector(URL connectURL)
connectURL - the url to which the connection is to be made topublic URLConnector(String protocol, String host, int port, String urlSuffix)
protocol - the protocol for this urlhost - th host addressport - the port number of the host communicated withurlSuffix - the name of the file to be communicated topublic ComProtocol send(String header, Serializable body)
ComProtocolheader - the header determining the protocolbody - the body to be included in the protocolCopyright © 2019 com.github.mfjamil. All rights reserved.