FileDocCategorySizeDatePackage
ServerPipeCreator.javaAPI DocGlassfish v2 API3689Fri May 04 22:36:10 BST 2007com.sun.enterprise.webservice

ServerPipeCreator

public class ServerPipeCreator extends com.sun.xml.ws.assembler.ServerPipelineHook
This is used by JAXWSContainer to return proper 196 security and app server monitoing pipes to the StandAlonePipeAssembler and TangoPipeAssembler

Fields Summary
private com.sun.enterprise.deployment.WebServiceEndpoint
endpoint
private boolean
isHttpBinding
Constructors Summary
public ServerPipeCreator(com.sun.enterprise.deployment.WebServiceEndpoint ep)

        endpoint = ep;
	isHttpBinding = 
	    ((HTTPBinding.HTTP_BINDING.equals
	      (endpoint.getProtocolBinding())) ? true : false); 
    
Methods Summary
public com.sun.xml.ws.api.pipe.PipecreateMonitoringPipe(com.sun.xml.ws.api.pipe.ServerPipeAssemblerContext ctxt, com.sun.xml.ws.api.pipe.Pipe tail)

        return new MonitoringPipe(ctxt, tail, endpoint);
    
public com.sun.xml.ws.api.pipe.PipecreateSecurityPipe(com.sun.xml.ws.policy.PolicyMap map, com.sun.xml.ws.api.model.SEIModel sei, com.sun.xml.ws.api.model.wsdl.WSDLPort port, com.sun.xml.ws.api.server.WSEndpoint owner, com.sun.xml.ws.api.pipe.Pipe tail)


	HashMap props = new HashMap();

	props.put(PipeConstants.POLICY,map);
	props.put(PipeConstants.SEI_MODEL,sei);
	props.put(PipeConstants.WSDL_MODEL,port);
	props.put(PipeConstants.ENDPOINT,owner);
	props.put(PipeConstants.SERVICE_ENDPOINT,endpoint);
	props.put(PipeConstants.NEXT_PIPE,tail);

        if (WsUtil.isSecurityEnabled(map, port)) {
		endpoint.setSecurePipeline();
        }

        return new CommonServerSecurityPipe(props, tail, isHttpBinding);