/** * The binding of the new pipeline to be created. */ public @NotNull WSBinding getBinding() { return wrappedContext.getBinding(); }
public NextAction processRequest(@NotNull Packet request) { if(request.endpointAddress==address) // cache hit return transport.processRequest(request); // cache miss if(transport!=null) { // delete the current entry transport.preDestroy(); transport = null; address = null; } // otherwise find out what transport will process this. ClientTubeAssemblerContext newContext = new ClientTubeAssemblerContext( request.endpointAddress, context.getWsdlModel(), context.getBindingProvider(), context.getBinding(), context.getContainer(), context.getCodec().copy(), context.getSEIModel(), context.getSEI() ); address = request.endpointAddress; transport = TransportTubeFactory.create(classLoader, newContext); // successful return from the above method indicates a successful pipe creation assert transport!=null; return transport.processRequest(request); }
/** * The binding of the new pipeline to be created. */ public @NotNull WSBinding getBinding() { return wrappedContext.getBinding(); }
public NextAction processRequest(@NotNull Packet request) { if(request.endpointAddress==address) // cache hit return transport.processRequest(request); // cache miss if(transport!=null) { // delete the current entry transport.preDestroy(); transport = null; address = null; } // otherwise find out what transport will process this. ClientTubeAssemblerContext newContext = new ClientTubeAssemblerContext( request.endpointAddress, context.getWsdlModel(), context.getBindingProvider(), context.getBinding(), context.getContainer(), context.getCodec().copy(), context.getSEIModel(), context.getSEI() ); address = request.endpointAddress; transport = TransportTubeFactory.create(classLoader, newContext); // successful return from the above method indicates a successful pipe creation assert transport!=null; return transport.processRequest(request); }
/** * The binding of the new pipeline to be created. */ public @NotNull WSBinding getBinding() { return wrappedContext.getBinding(); }
public NextAction processRequest(@NotNull Packet request) { if(request.endpointAddress==address) // cache hit return transport.processRequest(request); // cache miss if(transport!=null) { // delete the current entry transport.preDestroy(); transport = null; address = null; } // otherwise find out what transport will process this. ClientTubeAssemblerContext newContext = new ClientTubeAssemblerContext( request.endpointAddress, context.getWsdlModel(), context.getBindingProvider(), context.getBinding(), context.getContainer(), context.getCodec().copy(), context.getSEIModel(), context.getSEI() ); address = request.endpointAddress; transport = TransportTubeFactory.create(classLoader, newContext); // successful return from the above method indicates a successful pipe creation assert transport!=null; return transport.processRequest(request); }
protected Tube createHttpTransport(ClientTubeAssemblerContext context) { return new HttpTransportPipe(context.getCodec(), context.getBinding()); }
protected Tube createHttpTransport(ClientTubeAssemblerContext context) { return new HttpTransportPipe(context.getCodec(), context.getBinding()); }
protected Tube createHttpTransport(ClientTubeAssemblerContext context) { return new HttpTransportPipe(context.getCodec(), context.getBinding()); }
public DeferredTransportPipe(ClassLoader classLoader, ClientTubeAssemblerContext context) { this.classLoader = classLoader; this.context = context; if (context.getBinding().getFeature(HttpConfigFeature.class) == null) { context.getBinding().getFeatures().mergeFeatures( new WebServiceFeature[] { new HttpConfigFeature() }, false); } //See if we can create the transport pipe from the available information. try { this.transport = TransportTubeFactory.create(classLoader, context); this.address = context.getAddress(); } catch(Exception e) { //No problem, transport will be initialized while processing the requests } }
public DeferredTransportPipe(ClassLoader classLoader, ClientTubeAssemblerContext context) { this.classLoader = classLoader; this.context = context; if (context.getBinding().getFeature(HttpConfigFeature.class) == null) { context.getBinding().getFeatures().mergeFeatures( new WebServiceFeature[] { new HttpConfigFeature() }, false); } //See if we can create the transport pipe from the available information. try { this.transport = TransportTubeFactory.create(classLoader, context); this.address = context.getAddress(); } catch(Exception e) { //No problem, transport will be initialized while processing the requests } }
public DeferredTransportPipe(ClassLoader classLoader, ClientTubeAssemblerContext context) { this.classLoader = classLoader; this.context = context; if (context.getBinding().getFeature(HttpConfigFeature.class) == null) { context.getBinding().getFeatures().mergeFeatures( new WebServiceFeature[] { new HttpConfigFeature() }, false); } //See if we can create the transport pipe from the available information. try { this.transport = TransportTubeFactory.create(classLoader, context); this.address = context.getAddress(); } catch(Exception e) { //No problem, transport will be initialized while processing the requests } }
context.getBinding(), context.getContainer()); ctxt.setCodec(context.getCodec()); for (TransportPipeFactory factory : ServiceFinder.find(TransportPipeFactory.class,classLoader)) {
context.getBinding(), context.getContainer()); ctxt.setCodec(context.getCodec()); for (TransportPipeFactory factory : ServiceFinder.find(TransportPipeFactory.class,classLoader)) {
context.getBinding(), context.getContainer()); ctxt.setCodec(context.getCodec()); for (TransportPipeFactory factory : ServiceFinder.find(TransportPipeFactory.class,classLoader)) {
@Override public @NotNull Tube createClient(@NotNull ClientTubeAssemblerContext context) { ClientPipeAssemblerContext ctxt = new ClientPipeAssemblerContext( context.getAddress(), context.getWsdlModel(), context.getService(), context.getBinding(), context.getContainer()); return PipeAdapter.adapt(assembler.createClient(ctxt)); }
@Override public @NotNull Tube createClient(@NotNull ClientTubeAssemblerContext context) { ClientPipeAssemblerContext ctxt = new ClientPipeAssemblerContext( context.getAddress(), context.getWsdlModel(), context.getService(), context.getBinding(), context.getContainer()); return PipeAdapter.adapt(assembler.createClient(ctxt)); }
@Override public @NotNull Tube createClient(@NotNull ClientTubeAssemblerContext context) { ClientPipeAssemblerContext ctxt = new ClientPipeAssemblerContext( context.getAddress(), context.getWsdlModel(), context.getService(), context.getBinding(), context.getContainer()); return PipeAdapter.adapt(assembler.createClient(ctxt)); }