|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Endpoint
The basic implementation of the endpoint. An Endpoint is a logical representation of a physical entity, such as an analog phone or a channel in a trunk. Endpoints are sources or sinks of data and can be physical or virtual. Physical endpoint creation requires hardware installation while software is sufficient for creating a virtual Endpoint. An interface on a gateway that terminates a trunk connected to a PSTN switch is an example of a physical Endpoint. An audio source in an audio-content server is an example of a virtual Endpoint.
| Method Summary | |
|---|---|
void |
addNotificationListener(NotificationListener listener)
Register NotificationListener to listen for MsNotifyEvent
which are fired due to events detected by Endpoints like DTMF. |
Connection |
createConnection()
Creates new connection with specified mode. |
Connection |
createLocalConnection()
Creates new connection with specified mode. |
void |
deleteAllConnections()
Deletes all connection associated with this Endpoint. |
void |
deleteConnection(java.lang.String connectionID)
Deletes specified connection. |
java.lang.String |
describe(MediaType mediaType)
Generates media description for the specified media type. |
java.lang.String |
getLocalName()
Gets the local name attribute. |
java.util.Collection<MediaType> |
getMediaTypes()
Gets the list of supported media types. |
MediaSink |
getSink(MediaType media)
|
MediaSource |
getSource(MediaType media)
|
EndpointState |
getState()
Gets the current state of the endpoint |
void |
removeNotificationListener(NotificationListener listener)
Remove the NotificationListener |
void |
start()
Starts endpoint. |
void |
stop()
Terminates endpoint's execution. |
| Method Detail |
|---|
java.lang.String getLocalName()
EndpointState getState()
java.util.Collection<MediaType> getMediaTypes()
void start()
throws ResourceUnavailableException
ResourceUnavailableExceptionvoid stop()
Connection createConnection()
throws TooManyConnectionsException,
ResourceUnavailableException
mode - the constant which identifies mode of the connection to be created.
TooManyConnectionsException
ResourceUnavailableException
Connection createLocalConnection()
throws TooManyConnectionsException,
ResourceUnavailableException
mode - the constant which identifies mode of the connection to be created.
TooManyConnectionsException
ResourceUnavailableExceptionvoid deleteConnection(java.lang.String connectionID)
connectionID - the identifier of the connection to be deleted.void deleteAllConnections()
void addNotificationListener(NotificationListener listener)
MsNotifyEvent
which are fired due to events detected by Endpoints like DTMF. Use above
execute methods to register for event passing appropriate
RequestedEvent
listener - void removeNotificationListener(NotificationListener listener)
listener - MediaSink getSink(MediaType media)
MediaSource getSource(MediaType media)
java.lang.String describe(MediaType mediaType)
throws ResourceUnavailableException
mediaType - the media type for which descriptor is requested.
ResourceUnavailableException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||