public class Request extends Object
| Constructor and Description |
|---|
Request(MgcpEndpoint endpoint,
Collection<MgcpPackage> packages) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Text ID,
Text callAgent,
Collection<Text> events,
Collection<Text> signals)
Extracts signals and events from the given MGCP message and prepares
request for execution.
|
void |
cancel()
Cancels execution of current request and cleans previously
requested signals/events.
|
void |
completed() |
void |
execute()
Starts the execution of
|
NotifiedEntity |
getCallAgent() |
Connection |
getConnection(String ID) |
Endpoint |
getEndpoint() |
void |
onEvent(Text event) |
public Request(MgcpEndpoint endpoint, Collection<MgcpPackage> packages)
public void accept(Text ID, Text callAgent, Collection<Text> events, Collection<Text> signals) throws UnknownPackageException, UnknownEventException, UnknownSignalException
ID - the identifier of the request provided by the call agent.events - the requested events parametersignals - the requested signals parameterUnknownPackageExceptionUnknownEventExceptionUnknownSignalExceptionpublic void cancel()
public void execute()
public void onEvent(Text event)
public void completed()
public Endpoint getEndpoint()
public NotifiedEntity getCallAgent()
public Connection getConnection(String ID) throws UnknownActivityException
UnknownActivityExceptionCopyright © 2014 TeleStax, Inc.. All Rights Reserved.