FileDocCategorySizeDatePackage
TCPTransportPipeFactory.javaAPI DocExample4015Tue May 29 16:57:16 BST 2007com.sun.xml.ws.transport.tcp.wsit

TCPTransportPipeFactory

public class TCPTransportPipeFactory extends com.sun.xml.ws.transport.tcp.client.TCPTransportPipeFactory
author
Alexey Stashok

Fields Summary
private static final QName
serviceChannelServiceName
Constructors Summary
Methods Summary
public com.sun.xml.ws.api.pipe.PipedoCreate(com.sun.xml.ws.api.pipe.ClientPipeAssemblerContext context)

    
    
          
        return doCreate(context, true);
    
public static com.sun.xml.ws.api.pipe.PipedoCreate(com.sun.xml.ws.api.pipe.ClientPipeAssemblerContext context, boolean checkSchema)

        if (checkSchema && !TCPConstants.PROTOCOL_SCHEMA.equalsIgnoreCase(context.getAddress().getURI().getScheme())) {
            return null;
        }
        
        setClientSettingsIfRequired(context.getWsdlModel());
        if (context.getService().getServiceName().equals(serviceChannelServiceName)) {
            return new ServiceChannelTransportPipe(context);
        }
        
        return new TCPTransportPipe(context);
    
private static voidsetClientSettingsIfRequired(com.sun.xml.ws.api.model.wsdl.WSDLPort port)
Sets the client ConnectionManagement settings, which are passed via cliend side policies for ServiceChannelWS

        if (ConnectionManagementSettings.clientSettings == null) {
            synchronized(ConnectionManagementSettings.class) {
                if (ConnectionManagementSettings.clientSettings == null) {
                    ConnectionManagementSettings.clientSettings = ConnectionManagementSettings.createSettingsInstance(port);
                }
            }
        }