FileDocCategorySizeDatePackage
ClientPipeCloser.javaAPI DocGlassfish v2 API4006Tue Jul 24 05:01:34 BST 2007com.sun.enterprise.webservice

ClientPipeCloser

public class ClientPipeCloser extends Object

Fields Summary
private Map
svcRefListenerMap
private static final ClientPipeCloser
INSTANCE
Constructors Summary
private ClientPipeCloser()


      
Methods Summary
public voidcleanupClientPipe(com.sun.enterprise.deployment.ServiceReferenceDescriptor desc)

        AuthConfigRegistrationWrapper listenerWrapper = (AuthConfigRegistrationWrapper) svcRefListenerMap.get(desc);
        if (listenerWrapper != null) {
            listenerWrapper.disable();
        }
        svcRefListenerMap.remove(desc);
    
public static com.sun.enterprise.webservice.ClientPipeClosergetInstance()

    
         
        return INSTANCE;
    
public com.sun.enterprise.security.jmac.config.ConfigHelper.AuthConfigRegistrationWrapperlookupListenerWrapper(com.sun.enterprise.deployment.ServiceReferenceDescriptor desc)

        AuthConfigRegistrationWrapper listenerWrapper = (AuthConfigRegistrationWrapper) svcRefListenerMap.get(desc);
        return listenerWrapper;
    
public voidregisterListenerWrapper(com.sun.enterprise.deployment.ServiceReferenceDescriptor desc, com.sun.enterprise.security.jmac.config.ConfigHelper.AuthConfigRegistrationWrapper wrapper)

        svcRefListenerMap.put(desc,wrapper);
    
public voidremoveListenerWrapper(com.sun.enterprise.security.jmac.config.ConfigHelper.AuthConfigRegistrationWrapper wrapper)

       ServiceReferenceDescriptor entryToRemove = null;
       
       for (ServiceReferenceDescriptor svc : svcRefListenerMap.keySet()) {
           AuthConfigRegistrationWrapper wrp = svcRefListenerMap.get(svc);
           if (wrp == wrapper) {
              entryToRemove = svc;  
              break;
           }
       }
       if (entryToRemove != null) {
          svcRefListenerMap.remove(entryToRemove);
       }