public class ManagerWriterMock extends Object implements ManagerWriter
| Modifier and Type | Field and Description |
|---|---|
int |
challengeActionsSent |
int |
loginActionsSent |
int |
logoffActionsSent |
int |
otherActionsSent |
| Constructor and Description |
|---|
ManagerWriterMock() |
| Modifier and Type | Method and Description |
|---|---|
void |
sendAction(ManagerAction action,
String internalActionId) |
void |
setDispatcher(org.asteriskjava.manager.internal.Dispatcher dispatcher) |
void |
setExpectedKey(String key) |
void |
setExpectedUsername(String username) |
void |
setSendProtocolIdentifierReceivedEvent(boolean sendConnectEvent) |
void |
setSendResponse(boolean sendResponse) |
void |
setSocket(SocketConnectionFacade socket) |
void |
setTargetVersion(AsteriskVersion version) |
public int challengeActionsSent
public int loginActionsSent
public int logoffActionsSent
public int otherActionsSent
public void setTargetVersion(AsteriskVersion version)
setTargetVersion in interface ManagerWriterpublic void setDispatcher(org.asteriskjava.manager.internal.Dispatcher dispatcher)
public void setExpectedKey(String key)
public void setExpectedUsername(String username)
public void setSendResponse(boolean sendResponse)
public void setSendProtocolIdentifierReceivedEvent(boolean sendConnectEvent)
public void setSocket(SocketConnectionFacade socket)
setSocket in interface ManagerWriterpublic void sendAction(ManagerAction action, String internalActionId) throws IOException
sendAction in interface ManagerWriterIOExceptionCopyright © 2004-2012 Stefan Reuter. All Rights Reserved.