*/
public void removeProvidesPort(java.lang.String portName)
throws gov.cca.CCAException {
logger.finest("called for portName: " + portName);
ProvidesPortInfo pInfo = (ProvidesPortInfo) providesPortMap.get(portName);
if (pInfo != null) {
synchronized(pInfo) {
if (pInfo.getInUse())
// Can't remove if port is still in use
throw new NonstandardException("ProvidesPort " + portName + " still in use");
else if (pInfo.getNumConnections() != 0)
// Can't remove if port is still connected remotely
throw new NonstandardException("ProvidesPort " + portName + " still connected");
else {
pInfo.removePort();
// NOTE: SHOULD I SHUTDOWN THE XSOAP SERVICE HERE?
providesPortMap.remove(portName);
}
}
} else