public class ManagerWriterImpl extends Object implements ManagerWriter
Constructor and Description |
---|
ManagerWriterImpl()
Creates a new ManagerWriter.
|
Modifier and Type | Method and Description |
---|---|
void |
sendAction(ManagerAction action,
String internalActionId)
Sends the given action to the asterisk server.
|
void |
setSocket(SocketConnectionFacade socket)
Sets the socket to use for writing to Asterisk.
|
void |
setTargetVersion(AsteriskVersion version)
Sets the version of the target Asterisk server.
|
public void setTargetVersion(AsteriskVersion version)
ManagerWriter
setTargetVersion
in interface ManagerWriter
version
- the version of the target Asterisk server.public void setSocket(SocketConnectionFacade socket)
ManagerWriter
setSocket
in interface ManagerWriter
socket
- the socket to use for writing to Asterisk.public void sendAction(ManagerAction action, String internalActionId) throws IOException
ManagerWriter
sendAction
in interface ManagerWriter
action
- the action to send to the asterisk server.internalActionId
- the internal action id to add.IOException
- if there is a problem sending the action.Copyright © 2004–2017. All rights reserved.