📄 java.telephony.callcontrol.callcontrolterminal.html
字号:
<!--NewPage--><html><head><!-- Generated by javadoc on Fri Feb 07 16:42:30 PST 1997 --><a name="_top_"></a><title> Interface java.telephony.callcontrol.CallControlTerminal</title></head><body><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-java.telephony.callcontrol.html">This Package</a> <a href="java.telephony.callcontrol.CallControlConnection.html#_top_">Previous</a> <a href="java.telephony.callcontrol.CallControlTerminalConnection.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre><hr><h1> Interface java.telephony.callcontrol.CallControlTerminal</h1><dl> <dt> public interface <b>CallControlTerminal</b> <dt> extends <a href="java.lang.Object.html#_top_">Object</a> <dt> extends <a href="java.telephony.Terminal.html#_top_">Terminal</a></dl>The CallControlTerminal interface extends the core Terminal interface. Thisinterface provides additional Terminal-related functionality for theCall Control package.<p>The CallControlTerminal permits applications to place a Terminal on holdor take a Terminal off of hold with respect to one of its telephone calls.The CallControlTerminal interface provides the pickup() method for the Call Pickup feature.<hr><a name="index"></a><h2> <img src="images/method-index.gif" width=207 height=38 alt="Method Index"></h2><dl> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getDoNotDisturb()"><b>getDoNotDisturb</b></a>() <dd> Returns true if the do-not-disturb feature is on, false otherwise. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#pickup(java.telephony.Connection, java.telephony.Address)"><b>pickup</b></a>(Connection, Address) <dd> pickup() is analogous to TerminalConnection.answer(). <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#pickup(java.telephony.TerminalConnection, java.telephony.Address)"><b>pickup</b></a>(TerminalConnection, Address) <dd> pickup() is analogous to TerminalConnection.answer(). <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#pickup(java.telephony.Address, java.telephony.Address)"><b>pickup</b></a>(Address, Address) <dd> pickup() is analogous to TerminalConnection.answer(). <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#pickupFromGroup(java.lang.String, java.telephony.Address)"><b>pickupFromGroup</b></a>(String, Address) <dd> pickupFromGroup() is analogous to TerminalConnection.answer(). <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#pickupFromGroup(java.telephony.Address)"><b>pickupFromGroup</b></a>(Address) <dd> pickupFromGroup() is analogous to TerminalConnection.answer(). <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setDoNotDisturb(boolean)"><b>setDoNotDisturb</b></a>(boolean) <dd> Specifices whether the do not disturb feature should be turned on forthis terminal.</dl><a name="methods"></a><h2> <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="getDoNotDisturb()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getDoNotDisturb"><b>getDoNotDisturb</b></a><pre> public abstract boolean getDoNotDisturb() throws <a href="java.telephony.PlatformException.html#_top_">PlatformException</a></pre><dl> <dd> Returns true if the do-not-disturb feature is on, false otherwise.<p> <dl> <dt> <b>Returns:</b> <dd> True if do not disturb is on, false if it is off. <dt> <b>Throws:</b> <a href="java.telephony.PlatformException.html#_top_">PlatformException</a> <dd> A platform-specific exception occurred. </dl></dl><a name="setDoNotDisturb(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setDoNotDisturb"><b>setDoNotDisturb</b></a><pre> public abstract void setDoNotDisturb(boolean enable) throws <a href="java.telephony.PlatformException.html#_top_">PlatformException</a></pre><dl> <dd> Specifices whether the do not disturb feature should be turned on forthis terminal. If the first argument, enable, is true, do not disturb isturned on. If enable is false, do not disturb is turned off.<p>The Provider must in IN_SERVICE as a pre-condition for the method.<OL><LI>(terminal.getProvider()).getState() == IN_SERVICE</OL><p>If this method returns successfully without throwing an exception, theProvider is still IN_SERVICE and the do not disturb state is set tothe argument 'enable' as given in the post-conditions below:<p><OL><LI>(terminal.getProvider()).getState() == IN_SERVICE<LI>terminal.getDoNotDisturb() == enable</OL><p> <dl> <dt> <b>Parameters:</b> <dd> enable - True to turn do not disturb on, false to turn messagewaiting off. <dt> <b>Throws:</b> <a href="java.telephony.PlatformException.html#_top_">PlatformException</a> <dd> A platform-specific exception occurred. </dl></dl><a name="pickup(java.telephony.Connection, java.telephony.Address)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="pickup"><b>pickup</b></a><pre> public abstract <a href="java.telephony.TerminalConnection.html#_top_">TerminalConnection</a> pickup(<a href="java.telephony.Connection.html#_top_">Connection</a> pickConnection, <a href="java.telephony.Address.html#_top_">Address</a> terminalAddress) throws <a href="java.telephony.InvalidArgumentException.html#_top_">InvalidArgumentException</a>, <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a>, <a href="java.telephony.MethodNotSupportedException.html#_top_">MethodNotSupportedException</a>, <a href="java.telephony.PrivilegeViolationException.html#_top_">PrivilegeViolationException</a>, <a href="java.telephony.ResourceUnavailableException.html#_top_">ResourceUnavailableException</a>, <a href="java.telephony.PlatformException.html#_top_">PlatformException</a>, <a href="java.lang.Exception.html#_top_">Exception</a></pre><dl> <dd> pickup() is analogous to TerminalConnection.answer(). The difference is thatfor answer(), the Terminal that "answers" the Call is the one specified bythe TerminalConnection object. For pickup(), "this" Terminal is the oneanswering the Call. pickup() picks the call from the specified Connection andpulls it to "this" Terminal using the specified Address. Picking up a call changesthe state of the Connection from QUEUED or ALERTING to DISCONNECTED (if the Address specifiedis different than the Address of the Connection) or CONNECTED (if the Addressspecified is that same as the Address of the Connection). If the Addresses AREdifferent, a new Connection (to the specified Address) is added to the Call inthe CONNECTED state. The TerminalConnections from the original Connection areplaced into the DISCONNECTED state. The proper TerminalConnections in the new Connection are created, including theone to "this" Terminal. That TerminalConnection will be in the ACTIVE state andis returned by pickup().<p> <dl> <dt> <b>Parameters:</b> <dd> pickConnection - The Connection to be picked. <dd> terminalAddress - The Address associated with the Terminal. <dt> <b>Returns:</b> <dd> s The new TerminalConnection associated with the Terminal. <dt> <b>Throws:</b> <a href="java.telephony.InvalidArgumentException.html#_top_">InvalidArgumentException</a> <dd> One of the arguments provided isnot valid. <dt> <b>Throws:</b> <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a> <dd> The state of some object is not validas designated by the pre-conditions for this method. <dt> <b>Throws:</b> <a href="java.telephony.MethodNotSupportedException.html#_top_">MethodNotSupportedException</a> <dd> This method is not supported bythe implementation. <dt> <b>Throws:</b> <a href="java.telephony.PrivilegeViolationException.html#_top_">PrivilegeViolationException</a> <dd> The application does not havethe proper authority to invoke this method. <dt> <b>Throws:</b> <a href="java.telephony.ResourceUnavailableException.html#_top_">ResourceUnavailableException</a> <dd> An internal resource neccessaryfor the successful invocation of this method is not available. <dt> <b>Throws:</b> <a href="java.telephony.PlatformException.html#_top_">PlatformException</a> <dd> A platform-specific exception occurred. <dt> <b>Throws:</b> <a href="java.lang.Exception.html#_top_">Exception</a> <dd> An implementation-specific exception occurred. </dl></dl><a name="pickup(java.telephony.TerminalConnection, java.telephony.Address)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="pickup"><b>pickup</b></a><pre> public abstract <a href="java.telephony.TerminalConnection.html#_top_">TerminalConnection</a> pickup(<a href="java.telephony.TerminalConnection.html#_top_">TerminalConnection</a> pickTermConn, <a href="java.telephony.Address.html#_top_">Address</a> terminalAddress) throws <a href="java.telephony.InvalidArgumentException.html#_top_">InvalidArgumentException</a>, <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a>, <a href="java.telephony.MethodNotSupportedException.html#_top_">MethodNotSupportedException</a>, <a href="java.telephony.PrivilegeViolationException.html#_top_">PrivilegeViolationException</a>, <a href="java.telephony.ResourceUnavailableException.html#_top_">ResourceUnavailableException</a>, <a href="java.telephony.PlatformException.html#_top_">PlatformException</a>, <a href="java.lang.Exception.html#_top_">Exception</a></pre><dl> <dd> pickup() is analogous to TerminalConnection.answer(). The difference is thatfor answer(), the Terminal that "answers" the Call is the one specified bythe TerminalConnection object. For pickup(), "this" Terminal is the oneanswering the Call. pickup() picks the call from the specified TerminalConnection andpulls it to "this" Terminal using the specified Address. Picking up a call changesthe state of the Connection that contains the specified TerminalConnectionfrom QUEUED or ALERTING to DISCONNECTED (if the Address specifiedis different than the Address of the Connection) or CONNECTED (if the Addressspecified is that same as the Address of the Connection). If the Addresses AREdifferent, a new Connection (to the specified Address) is added to the Call inthe CONNECTED state. The TerminalConnections from the original Connection areplaced into the DISCONNECTED state. The proper TerminalConnections in the newConnection are created, including theone to "this" Terminal. That TerminalConnection will be in the ACTIVE state andis returned by pickup().<p> <dl> <dt> <b>Parameters:</b> <dd> pickTermConn - The TerminalConnection to be picked. <dd> terminalAddress - The Address associated with the Terminal. <dt> <b>Returns:</b> <dd> s The new TerminalConnection associated with the Terminal. <dt> <b>Throws:</b> <a href="java.telephony.InvalidArgumentException.html#_top_">InvalidArgumentException</a>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -