public class PlainServerMechanism extends Mechanism
| Modifier and Type | Class and Description |
|---|---|
private static class |
PlainServerMechanism.State |
Mechanism.Status| Modifier and Type | Field and Description |
|---|---|
private PlainServerMechanism.State |
state |
options, session, statusCode, zapProperties, zmtpProperties| Constructor and Description |
|---|
PlainServerMechanism(SessionBase session,
Address peerAddress,
Options options) |
| Modifier and Type | Method and Description |
|---|---|
int |
nextHandshakeCommand(Msg msg) |
int |
processHandshakeCommand(Msg msg) |
private int |
produceError(Msg msg) |
private int |
produceHello(Msg msg) |
private int |
produceInitiate(Msg msg) |
private int |
produceReady(Msg msg) |
private int |
produceWelcome(Msg msg) |
private void |
sendZapRequest(byte[] username,
byte[] password) |
Mechanism.Status |
status() |
int |
zapMsgAvailable() |
addProperty, addProperty, addProperty, addProperty, compare, compare, decode, destroy, encode, getUserId, handleErrorReason, parseErrorMessage, parseMetadata, parseMetadata, peerIdentity, property, receiveAndProcessZapReply, sendZapRequest, socketTypeprivate PlainServerMechanism.State state
public PlainServerMechanism(SessionBase session, Address peerAddress, Options options)
public int nextHandshakeCommand(Msg msg)
nextHandshakeCommand in class Mechanismpublic int processHandshakeCommand(Msg msg)
processHandshakeCommand in class Mechanismpublic Mechanism.Status status()
public int zapMsgAvailable()
zapMsgAvailable in class Mechanismprivate int produceHello(Msg msg)
private int produceWelcome(Msg msg)
private int produceInitiate(Msg msg)
private int produceReady(Msg msg)
private int produceError(Msg msg)
private void sendZapRequest(byte[] username,
byte[] password)