Serializable, ProtocolConstspublic class ComProtocol extends SMYLDObject implements ProtocolConsts
PROCESS_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_VERIFYNEW_LINE, OS_NEW_LINE| Constructor | Description |
|---|---|
ComProtocol() |
|
ComProtocol(ProtocolHeader header,
ProtocolBody body) |
Constructs a new
ComProtocol using the given protocol
header and the protocol body |
| Modifier and Type | Method | Description |
|---|---|---|
ProtocolBody |
getBody() |
|
ProtocolHeader |
getHeader() |
|
void |
setBody(ProtocolBody newBody) |
Sets the given
ProtocolBody as the new body of this
ComProtocol |
void |
setHeader(ProtocolHeader newHeader) |
Sets the given
ProtocolHeader as the new header of this
ComProtocol |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdebug, getLenName, insertInstanceValue, printInstanceValues, toStringpublic ComProtocol()
public ComProtocol(ProtocolHeader header, ProtocolBody body)
ComProtocol using the given protocol
header and the protocol bodyheader - the header of this protocolbody - the body of this protocolpublic ProtocolBody getBody()
public ProtocolHeader getHeader()
public void setHeader(ProtocolHeader newHeader)
ProtocolHeader as the new header of this
ComProtocolnewHeader - the new header of this protocolpublic void setBody(ProtocolBody newBody)
ProtocolBody as the new body of this
ComProtocolnewBody - the new body of this protocolCopyright © 2019 SMYLD. All rights reserved.