public class PollRequestTCPMsg extends TCPMessage
TCPMessage.Flag, TCPMessage.Type, TCPMessage.Version| Constructor and Description |
|---|
PollRequestTCPMsg(java.io.InputStream is) |
PollRequestTCPMsg(int pollRef)
Create a new
PollRequestTCPMsg with the given polling reference number and the default version (CMP2000). |
PollRequestTCPMsg(TCPMessage.Version version, int pollRef)
Create a new
PollRequestTCPMsg with the given version and polling reference number. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkStatus(int pollRef)
Check that if this pollRef is the same as the given polling reference number.
|
int |
getPollRef() |
TCPMessage.Type |
getType()
Get the TCP-based message type.
|
java.lang.String |
toString() |
getVersion, hasFlag, input, inputInstance, length, output, setFlagpublic PollRequestTCPMsg(TCPMessage.Version version, int pollRef)
PollRequestTCPMsg with the given version and polling reference number.version - the PKI TCP transport protocol version.pollRef - the polling reference, obtained from the corresponding PollResponseTCPMsg using the getPollRef() method.public PollRequestTCPMsg(int pollRef)
PollRequestTCPMsg with the given polling reference number and the default version (CMP2000).pollRef - the polling reference, obtained from the corresponding PollResponseTCPMsg using the getPollRef() method.
public PollRequestTCPMsg(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic TCPMessage.Type getType()
TCPMessagegetType in class TCPMessagepublic int getPollRef()
public boolean checkStatus(int pollRef)
pollRef - the polling reference, obtained from the corresponding PollResponseTCPMsg using the getPollRef() method.public java.lang.String toString()
toString in class java.lang.Object