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

📄 remotelistenerwrapper.java

📁 jtapi for telephone
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
 */
public void connectionSuspended(net.sourceforge.gjtapi.CallId id, java.lang.String address, int cause) {
	// Try to send the event to the client side
	try {
		this.getDelegate().connectionSuspended(this.getRefMapper().swapId(id), address, cause);
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * Sees if the two objects hold equal delegates.
 * @param obj the Object to compare with
 * @return true if these Objects are equal; false otherwise.
 */
public boolean equals(Object obj) {
	if (obj instanceof RemoteListenerWrapper) {
		RemoteListenerWrapper rlw = (RemoteListenerWrapper)obj;
		return this.getDelegate().equals(rlw.getDelegate());
	}
	return false;
}
/**
 * Internal accessor for the stub of the Remote Listener.
 * Creation date: (2000-02-17 13:38:44)
 * @author: Richard Deadman
 * @return The remote stub that implements the RemoteListener interface.
 */
private RemoteListener getDelegate() {
	return delegate;
}
/**
 * Insert the method's description here.
 * Creation date: (2000-04-25 0:15:49)
 * @author: 
 * @return net.sourceforge.gjtapi.raw.remote.CallMapper
 */
private CallMapper getRefMapper() {
	return refMapper;
}
/**
 * Generates a hash code for the receiver.
 * This method is supported primarily for
 * hash tables, such as those provided in java.util.
 * @return an integer hash code for the receiver
 * @see java.util.Hashtable
 */
public int hashCode() {
	return this.getDelegate().hashCode();
}
/**
 * mediaPlayPause method comment.
 */
public void mediaPlayPause(java.lang.String terminal, int index, int offset, javax.telephony.media.Symbol trigger) {
	// Try to send the event to the client side
	try {
		this.getDelegate().mediaPlayPause(terminal, index, offset, new SymbolHolder(trigger));
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * mediaPlayResume method comment.
 */
public void mediaPlayResume(java.lang.String terminal, javax.telephony.media.Symbol trigger) {
	// Try to send the event to the client side
	try {
		this.getDelegate().mediaPlayResume(terminal, new SymbolHolder(trigger));
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * mediaRecorderPause method comment.
 */
public void mediaRecorderPause(java.lang.String terminal, int duration, javax.telephony.media.Symbol trigger) {
	// Try to send the event to the client side
	try {
		this.getDelegate().mediaRecorderPause(terminal, duration, new SymbolHolder(trigger));
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * mediaRecorderResume method comment.
 */
public void mediaRecorderResume(java.lang.String terminal, javax.telephony.media.Symbol trigger) {
	// Try to send the event to the client side
	try {
		this.getDelegate().mediaRecorderResume(terminal, new SymbolHolder(trigger));
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * mediaSignalDetectorDetected method comment.
 */
public void mediaSignalDetectorDetected(java.lang.String terminal, Symbol[] sigs) {
	// Try to send the event to the client side
	try {
		this.getDelegate().mediaSignalDetectorDetected(terminal, SymbolHolder.create(sigs));
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * mediaSignalDetectorOverflow method comment.
 */
public void mediaSignalDetectorOverflow(java.lang.String terminal, javax.telephony.media.Symbol[] sigs) {
	// Try to send the event to the client side
	try {
		this.getDelegate().mediaSignalDetectorOverflow(terminal, SymbolHolder.create(sigs));
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * mediaSignalDetectorPatternMatched method comment.
 */
public void mediaSignalDetectorPatternMatched(java.lang.String terminal, javax.telephony.media.Symbol[] sigs, int index) {
	// Try to send the event to the client side
	try {
		this.getDelegate().mediaSignalDetectorPatternMatched(terminal, SymbolHolder.create(sigs), index);
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * providerPrivateData method comment.
 */
public void providerPrivateData(Serializable data, int cause) {
	// Try to send the event to the client side
	try {
		this.getDelegate().providerPrivateData(data, cause);
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * Internal settor for the RemoteListener stub.
 * Creation date: (2000-02-17 13:38:44)
 * @author: Richard Deadman
 * @param newDelegate Remote stub I delegate to.
 */
private void setDelegate(RemoteListener newDelegate) {
	delegate = newDelegate;
}
/**
 * Insert the method's description here.
 * Creation date: (2000-04-25 0:15:49)
 * @author: 
 * @param newRefMapper net.sourceforge.gjtapi.raw.remote.CallMapper
 */
private void setRefMapper(CallMapper newRefMapper) {
	refMapper = newRefMapper;
}
/**
 * terminalConnectionCreated method comment.
 */
public void terminalConnectionCreated(CallId id, String address, String terminal, int cause) {
	// Try to send the event to the client side
	try {
		this.getDelegate().terminalConnectionCreated(this.getRefMapper().swapId(id), address, terminal, cause);
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * terminalConnectionDropped method comment.
 */
public void terminalConnectionDropped(CallId id, String address, String terminal, int cause) {
	// Try to send the event to the client side
	try {
		this.getDelegate().terminalConnectionDropped(this.getRefMapper().swapId(id), address, terminal, cause);
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * terminalConnectionHeld method comment.
 */
public void terminalConnectionHeld(CallId id, String address, String terminal, int cause) {
	// Try to send the event to the client side
	try {
		this.getDelegate().terminalConnectionHeld(this.getRefMapper().swapId(id), address, terminal, cause);
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * terminalConnectionRinging method comment.
 */
public void terminalConnectionRinging(CallId id, String address, String terminal, int cause) {
	// Try to send the event to the client side
	try {
		this.getDelegate().terminalConnectionRinging(this.getRefMapper().swapId(id), address, terminal, cause);
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * terminalConnectionTalking method comment.
 */
public void terminalConnectionTalking(CallId id, String address, String terminal, int cause) {
	// Try to send the event to the client side
	try {
		this.getDelegate().terminalConnectionTalking(this.getRefMapper().swapId(id), address, terminal, cause);
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * terminalPrivateData method comment.
 */
public void terminalPrivateData(String terminal, Serializable data, int cause) {
	// Try to send the event to the client side
	try {
		this.getDelegate().terminalPrivateData(terminal, data, cause);
	} catch (RemoteException re) {
		// eat
		System.err.println("Error pushing events back to client: ");
		re.printStackTrace(System.err);
	}
}
/**
 * Returns a String that represents the value of this object.
 * @return a string representation of the receiver
 */
public String toString() {
	return "RawObserver wrapper for RemoteObserver: " + this.getDelegate().toString();
}
}

⌨️ 快捷键说明

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