/** * On Server-side, HandlerChains cannot be changed after it is deployed. * During assembling the Pipelines, we can decide if we really need a * SOAPHandlerPipe and LogicalHandlerPipe for a particular Endpoint. */ public Pipe createServer(ServerPipeAssemblerContext context) { Pipe head = context.getTerminalPipe(); head = context.createHandlerPipe(head); head = context.createMonitoringPipe(head); head = context.createServerMUPipe(head); head = context.createWsaPipe(head); head = context.createSecurityPipe(head); return head; }
protected ServerTubeAssemblerContext createServerTubeAssemblerContext( EndpointAwareTube terminalTube, boolean isSynchronous) { ServerTubeAssemblerContext ctx = new ServerPipeAssemblerContext( seiModel, port, this, terminalTube, isSynchronous); return ctx; }
public Pipe createServer(ServerPipeAssemblerContext context) { Pipe p = context.getTerminalPipe(); p = context.createHandlerPipe(p); p = context.createServerMUPipe(p); p = context.createMonitoringPipe(p); // check for WS-Addressing if (isAddressingEnabled( context.getWsdlModel(), context.getEndpoint().getBinding())) { p = context.createWsaPipe(p); } //look for XWSS 2.0 Style Security if (isSecurityConfigPresent(context)) { p = initializeXWSSServerPipe(context.getEndpoint(), context.getWsdlModel(), p); } return p; }
public MonitoringPipe(ServerPipeAssemblerContext ctxt, Pipe tail, WebServiceEndpoint ep) { super(tail); this.endpoint = ep; this.seiModel = ctxt.getSEIModel(); this.wsdlModel = ctxt.getWsdlModel(); this.owner = ctxt.getEndpoint(); wsEngine = WebServiceEngineImpl.getInstance(); }
private static boolean isSecurityConfigPresent(ServerPipeAssemblerContext context) { QName serviceQName = context.getEndpoint().getServiceName(); Container container = context.getEndpoint().getContainer();
/** * On Server-side, HandlerChains cannot be changed after it is deployed. * During assembling the Pipelines, we can decide if we really need a * SOAPHandlerPipe and LogicalHandlerPipe for a particular Endpoint. */ public Pipe createServer(ServerPipeAssemblerContext context) { Pipe head = context.getTerminalPipe(); head = context.createHandlerPipe(head); head = context.createMonitoringPipe(head); head = context.createServerMUPipe(head); head = context.createWsaPipe(head); head = context.createSecurityPipe(head); return head; }
protected ServerTubeAssemblerContext createServerTubeAssemblerContext( EndpointAwareTube terminalTube, boolean isSynchronous) { ServerTubeAssemblerContext ctx = new ServerPipeAssemblerContext( seiModel, port, this, terminalTube, isSynchronous); return ctx; }
/** * On Server-side, HandlerChains cannot be changed after it is deployed. * During assembling the Pipelines, we can decide if we really need a * SOAPHandlerPipe and LogicalHandlerPipe for a particular Endpoint. */ public Pipe createServer(ServerPipeAssemblerContext context) { Pipe head = context.getTerminalPipe(); head = context.createHandlerPipe(head); head = context.createMonitoringPipe(head); head = context.createServerMUPipe(head); head = context.createWsaPipe(head); head = context.createSecurityPipe(head); return head; }
protected ServerTubeAssemblerContext createServerTubeAssemblerContext( EndpointAwareTube terminalTube, boolean isSynchronous) { ServerTubeAssemblerContext ctx = new ServerPipeAssemblerContext( seiModel, port, this, terminalTube, isSynchronous); return ctx; }
/** * Creates a {@link Tube} that does the monitoring of the invocation for a * container */ public @NotNull Tube createMonitoringTube(@NotNull Tube next) { ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class); if (hook != null) { ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous); return PipeAdapter.adapt(hook.createMonitoringPipe(ctxt, PipeAdapter.adapt(next))); } return next; }
/** * Creates a {@link Tube} that does the monitoring of the invocation for a * container */ public @NotNull Tube createMonitoringTube(@NotNull Tube next) { ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class); if (hook != null) { ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous); return PipeAdapter.adapt(hook.createMonitoringPipe(ctxt, PipeAdapter.adapt(next))); } return next; }
/** * Creates a {@link Tube} that adds container specific security */ public @NotNull Tube createSecurityTube(@NotNull Tube next) { ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class); if (hook != null) { ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous); return PipeAdapter.adapt(hook.createSecurityPipe(ctxt, PipeAdapter.adapt(next))); } return next; }
/** * Creates a {@link Tube} that adds container specific security */ public @NotNull Tube createSecurityTube(@NotNull Tube next) { ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class); if (hook != null) { ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous); return PipeAdapter.adapt(hook.createSecurityPipe(ctxt, PipeAdapter.adapt(next))); } return next; }
/** * Creates a {@link Tube} that adds container specific security */ public @NotNull Tube createSecurityTube(@NotNull Tube next) { ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class); if (hook != null) { ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous); return PipeAdapter.adapt(hook.createSecurityPipe(ctxt, PipeAdapter.adapt(next))); } return next; }
/** * Creates a {@link Tube} that does the monitoring of the invocation for a * container */ public @NotNull Tube createMonitoringTube(@NotNull Tube next) { ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class); if (hook != null) { ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous); return PipeAdapter.adapt(hook.createMonitoringPipe(ctxt, PipeAdapter.adapt(next))); } return next; }
protected WSEndpointImpl(@NotNull QName serviceName, @NotNull QName portName, WSBinding binding, Container container, SEIModel seiModel, WSDLPort port, Tube masterTubeline) { this.serviceName = serviceName; this.portName = portName; this.binding = binding; this.soapVersion = binding.getSOAPVersion(); this.container = container; this.endpointPolicy = null; this.port = port; this.seiModel = seiModel; this.serviceDef = null; this.implementationClass = null; this.masterTubeline = masterTubeline; this.masterCodec = ((BindingImpl) this.binding).createCodec(); LazyMOMProvider.INSTANCE.registerEndpoint(this); initManagedObjectManager(); this.operationDispatcher = (port == null) ? null : new OperationDispatcher(port, binding, seiModel); this.context = new ServerPipeAssemblerContext( seiModel, port, this, null /* not known */, false); tubePool = new TubePool(masterTubeline); engine = new Engine(toString(), container); wsdlProperties = (port == null) ? new WSDLDirectProperties(serviceName, portName, seiModel) : new WSDLPortProperties(port, seiModel); }
protected WSEndpointImpl(@NotNull QName serviceName, @NotNull QName portName, WSBinding binding, Container container, SEIModel seiModel, WSDLPort port, Tube masterTubeline) { this.serviceName = serviceName; this.portName = portName; this.binding = binding; this.soapVersion = binding.getSOAPVersion(); this.container = container; this.endpointPolicy = null; this.port = port; this.seiModel = seiModel; this.serviceDef = null; this.implementationClass = null; this.masterTubeline = masterTubeline; this.masterCodec = ((BindingImpl) this.binding).createCodec(); LazyMOMProvider.INSTANCE.registerEndpoint(this); initManagedObjectManager(); this.operationDispatcher = (port == null) ? null : new OperationDispatcher(port, binding, seiModel); this.context = new ServerPipeAssemblerContext( seiModel, port, this, null /* not known */, false); tubePool = new TubePool(masterTubeline); engine = new Engine(toString(), container); wsdlProperties = (port == null) ? new WSDLDirectProperties(serviceName, portName, seiModel) : new WSDLPortProperties(port, seiModel); }
protected WSEndpointImpl(@NotNull QName serviceName, @NotNull QName portName, WSBinding binding, Container container, SEIModel seiModel, WSDLPort port, Tube masterTubeline) { this.serviceName = serviceName; this.portName = portName; this.binding = binding; this.soapVersion = binding.getSOAPVersion(); this.container = container; this.endpointPolicy = null; this.port = port; this.seiModel = seiModel; this.serviceDef = null; this.implementationClass = null; this.masterTubeline = masterTubeline; this.masterCodec = ((BindingImpl) this.binding).createCodec(); LazyMOMProvider.INSTANCE.registerEndpoint(this); initManagedObjectManager(); this.operationDispatcher = (port == null) ? null : new OperationDispatcher(port, binding, seiModel); this.context = new ServerPipeAssemblerContext( seiModel, port, this, null /* not known */, false); tubePool = new TubePool(masterTubeline); engine = new Engine(toString(), container); wsdlProperties = (port == null) ? new WSDLDirectProperties(serviceName, portName, seiModel) : new WSDLPortProperties(port, seiModel); }