⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 providerfactory.java

📁 jtapi for telephone
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
		props.put(Capabilities.ADDR + Capabilities.SET, "f");
	
		props.put(Capabilities.TERM + Capabilities.GET, "f");
		props.put(Capabilities.TERM + Capabilities.SEND, "f");
		props.put(Capabilities.TERM + Capabilities.SET, "f");
	
		props.put(Capabilities.CONN + Capabilities.GET, "f");
		props.put(Capabilities.CONN + Capabilities.SEND, "f");
		props.put(Capabilities.CONN + Capabilities.SET, "f");
	
		props.put(Capabilities.TERM_CONN + Capabilities.GET, "f");
		props.put(Capabilities.TERM_CONN + Capabilities.SEND, "f");
		props.put(Capabilities.TERM_CONN + Capabilities.SET, "f");
	}
	
	return props;
}
/**
 * getDialledDigits method comment.
 */
public java.lang.String getDialledDigits(net.sourceforge.gjtapi.CallId id, java.lang.String address) {
	if (this.jcc != null)
		return this.jcc.getDialledDigits(id, address);
	else
		return null;	// signal that they are not known
}
/**
 * getPrivateData method comment.
 */
public Object getPrivateData(CallId call, String address, String terminal) {
	if (this.privateData != null)
		return this.privateData.getPrivateData(call, address, terminal);
	else
		return null;
}
/**
 * getTerminals method comment.
 */
public net.sourceforge.gjtapi.TermData[] getTerminals() throws ResourceUnavailableException {
	if (this.basicJtapi != null)
		return this.basicJtapi.getTerminals();
	else
            throw new ResourceUnavailableException(ResourceUnavailableException.OBSERVER_LIMIT_EXCEEDED, "Terminal querying not supported");
}
/**
 * getTerminals method comment.
 */
public net.sourceforge.gjtapi.TermData[] getTerminals(String address) throws InvalidArgumentException {
	if (this.basicJtapi != null)
		return this.basicJtapi.getTerminals(address);
	else
		return null;
}
/**
 * hold method comment.
 */
public void hold(CallId call, String address, String terminal) throws MethodNotSupportedException, RawStateException, PrivilegeViolationException, ResourceUnavailableException {
	if (this.callControl != null) {
		this.callControl.hold(call, address, terminal);
	} else {
		throw new MethodNotSupportedException();
	}
}
/**
 * initialize method comment.
 */
public void initialize(java.util.Map props) throws ProviderUnavailableException {
	this.core.initialize(props);
}
/**
 * isMediaTerminal method comment.
 */
public boolean isMediaTerminal(String terminal) {
	if (this.media != null)
		return this.media.isMediaTerminal(terminal);
	else
		return false;
}
/**
 * join method comment.
 */
public CallId join(CallId call1, CallId call2, String address, String terminal) throws MethodNotSupportedException, RawStateException, PrivilegeViolationException, InvalidArgumentException, ResourceUnavailableException {
	if (this.callControl != null)
		return this.callControl.join(call1, call2, address, terminal);
	else
		throw new MethodNotSupportedException();
}
/**
 * play method comment.
 */
public void play(String terminal, java.lang.String[] streamIds, int offset, javax.telephony.media.RTC[] rtcs, java.util.Dictionary optArgs) throws javax.telephony.media.MediaResourceException {
	if (this.media != null)
		this.media.play(terminal, streamIds, offset, rtcs, optArgs);
}
/**
 * record method comment.
 */
public void record(String terminal, String streamId, javax.telephony.media.RTC[] rtcs, java.util.Dictionary optArgs) throws javax.telephony.media.MediaResourceException {
	if (this.media != null)
		this.media.record(terminal, streamId, rtcs, optArgs);
}
/**
 * release method comment.
 */
public void release(String address, CallId call) throws PrivilegeViolationException, MethodNotSupportedException, ResourceUnavailableException, RawStateException {
	if (this.basicJtapi != null)
		this.basicJtapi.release(address, call);
	else
		throw new MethodNotSupportedException();
	
}
/**
 * releaseCallId method comment.
 */
public void releaseCallId(CallId id) {
	this.core.releaseCallId(id);
}
/**
 * removeListener method comment.
 */
public void removeListener(TelephonyListener ro) {
	this.core.removeListener(ro);
}
/**
 * reportCallsOnAddress method comment.
 */
public void reportCallsOnAddress(String address, boolean flag) throws ResourceUnavailableException, InvalidArgumentException {
	if (this.throttle != null)
		this.throttle.reportCallsOnAddress(address, flag);
}
/**
 * reportCallsOnTerminal method comment.
 */
public void reportCallsOnTerminal(String terminal, boolean flag) throws ResourceUnavailableException, InvalidArgumentException {
	if (this.throttle != null)
		this.throttle.reportCallsOnTerminal(terminal, flag);
}
/**
 * reserveCallId method comment.
 */
public CallId reserveCallId(String address) throws InvalidArgumentException {
	return this.core.reserveCallId(address);
}
/**
 * retrieveSignals method comment.
 */
public RawSigDetectEvent retrieveSignals(String terminal, int num, javax.telephony.media.Symbol[] patterns, javax.telephony.media.RTC[] rtcs, java.util.Dictionary optArgs) throws javax.telephony.media.MediaResourceException {
	if (this.media != null) {
		return this.media.retrieveSignals(terminal, num, patterns, rtcs, optArgs);
	} else
		return null;
}
/**
 * sendPrivateData method comment.
 */
public Object sendPrivateData(CallId call, String address, String terminal, Object data) {
	if (this.privateData != null) {
		return this.privateData.sendPrivateData(call, address, terminal, data);
	} else
		return null;
}
/**
 * sendSignals method comment.
 */
public void sendSignals(String terminal, javax.telephony.media.Symbol[] syms, javax.telephony.media.RTC[] rtcs, java.util.Dictionary optArgs) throws javax.telephony.media.MediaResourceException {
	if (this.media != null) {
		this.media.sendSignals(terminal, syms, rtcs, optArgs);
	}
}
/**
 * setLoadControl method comment.
 */
public void setLoadControl(java.lang.String startAddr, java.lang.String endAddr, double duration, double admissionRate, double interval, int[] treatment) throws javax.telephony.MethodNotSupportedException {
	if (this.jcc != null)
		this.jcc.setLoadControl(startAddr, endAddr, duration, admissionRate, interval, treatment);
	else
		throw new MethodNotSupportedException("Low-level Provider does not implement Jcc methods");
}
/**
 * setPrivateData method comment.
 */
public void setPrivateData(CallId call, String address, String terminal, Object data) {
	if (this.privateData != null) {
		this.privateData.setPrivateData(call, address, terminal, data);
	}
}
/**
 * shutdown method comment.
 */
public void shutdown() {
	this.core.shutdown();
}
/**
 * stop method comment.
 */
public void stop(String terminal) {
	if (this.media != null) {
		this.media.stop(terminal);
	}
}
/**
 * stopReportingCall method comment.
 */
public boolean stopReportingCall(CallId call) {
	if (this.throttle != null) {
		return this.throttle.stopReportingCall(call);
	} else
		return false;
}
/**
 * Returns a String that represents the value of this object.
 * @return a string representation of the receiver
 */
public String toString() {
	// Insert code to print the receiver here.
	// This implementation forwards the message to super. You may replace or supplement this.
	return this.core.toString();
}
/**
 * triggerRTC method comment.
 */
public void triggerRTC(String terminal, javax.telephony.media.Symbol action) {
	if (this.media != null) {
		this.media.triggerRTC(terminal, action);
	}
}
/**
 * unHold method comment.
 */
public void unHold(CallId call, String address, String terminal) throws MethodNotSupportedException, RawStateException, PrivilegeViolationException, ResourceUnavailableException {
	if (this.callControl != null)
		this.callControl.unHold(call, address, terminal);
	else
		throw new MethodNotSupportedException();
}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -