public class GenericMgcpEvent extends Object implements MgcpEvent
| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
builder |
protected int |
connectionId |
protected Map<String,String> |
parameters |
protected String |
pkg |
protected String |
signal |
protected String |
symbol |
| Constructor and Description |
|---|
GenericMgcpEvent(String pkg,
String symbol,
int connectionId) |
GenericMgcpEvent(String pkg,
String symbol,
String signal) |
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectionId()
Gets the identifier of the connection that fired the event.
|
String |
getPackage()
Gets the package the event belongs to.
|
String |
getParameter(String type)
Gets a parameter from the event.
|
String |
getSignal()
Gets the name of the signal who fired the event.
|
String |
getSymbol()
Gets the symbol representing the event.
|
void |
setParameter(String key,
String value) |
String |
toString() |
protected final String pkg
protected final String symbol
protected final String signal
protected final int connectionId
protected final StringBuilder builder
public String getPackage()
MgcpEventgetPackage in interface MgcpEventpublic String getSymbol()
MgcpEventpublic int getConnectionId()
MgcpEventgetConnectionId in interface MgcpEventpublic String getSignal()
MgcpEventpublic String getParameter(String type)
MgcpEventgetParameter in interface MgcpEventtype - The type of parameter to be returned.Copyright © 2017 TeleStax, Inc.. All Rights Reserved.