org.mobicents.media.server.mgcp.controller
Class Request

java.lang.Object
  extended by org.mobicents.media.server.mgcp.controller.Request

public class Request
extends Object

Author:
kulikov

Constructor Summary
Request(MgcpEndpoint endpoint, Collection<MgcpPackage> packages)
           
 
Method Summary
 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
 Connection getConnection(String ID)
           
 Endpoint getEndpoint()
           
 void onEvent(Text event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Request

public Request(MgcpEndpoint endpoint,
               Collection<MgcpPackage> packages)
Method Detail

accept

public void accept(Text ID,
                   Text callAgent,
                   Collection<Text> events,
                   Collection<Text> signals)
            throws UnknownPackageException,
                   UnknownEventException,
                   UnknownSignalException
Extracts signals and events from the given MGCP message and prepares request for execution.

Parameters:
ID - the identifier of the request provided by the call agent.
events - the requested events parameter
signals - the requested signals parameter
Throws:
UnknownPackageException
UnknownEventException
UnknownSignalException

cancel

public void cancel()
Cancels execution of current request and cleans previously requested signals/events.


execute

public void execute()
Starts the execution of


onEvent

public void onEvent(Text event)

completed

public void completed()

getEndpoint

public Endpoint getEndpoint()

getConnection

public Connection getConnection(String ID)
                         throws UnknownActivityException
Throws:
UnknownActivityException


Copyright © 2012 TeleStax, Inc.. All Rights Reserved.