public class MgcpPackage extends Object
| Constructor and Description |
|---|
MgcpPackage(String name,
Collection<Signal> signals)
Creates new package.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Text event) |
void |
completed() |
Connection |
getConnection(String ID) |
Endpoint |
getEndpoint() |
Text |
getName()
Gets the name of this package.
|
Signal |
getSignal(Text name) |
void |
onEvent(Text event) |
void |
reset() |
void |
setRequest(Request request)
Assign request executor.
|
protected Request request
public MgcpPackage(String name, Collection<Signal> signals)
name - the name of the package.signals - the list of executors for events/signals.public Text getName()
public void setRequest(Request request)
request - the request executor.public void accept(Text event) throws UnknownEventException
UnknownEventExceptionpublic void reset()
public void onEvent(Text event)
public void completed()
public Endpoint getEndpoint()
public Connection getConnection(String ID) throws UnknownActivityException
UnknownActivityExceptionCopyright © 2017 TeleStax, Inc.. All Rights Reserved.