• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Tube类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.xml.internal.ws.api.pipe.Tube的典型用法代码示例。如果您正苦于以下问题:Java Tube类的具体用法?Java Tube怎么用?Java Tube使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Tube类属于com.sun.xml.internal.ws.api.pipe包,在下文中一共展示了Tube类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createPipeline

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
/**
 * Creates a new pipeline for the given port name.
 */
private Tube createPipeline(WSPortInfo portInfo, WSBinding binding) {
    //Check all required WSDL extensions are understood
    checkAllWSDLExtensionsUnderstood(portInfo, binding);
    SEIModel seiModel = null;
    Class sei = null;
    if (portInfo instanceof SEIPortInfo) {
            SEIPortInfo sp = (SEIPortInfo) portInfo;
        seiModel = sp.model;
        sei = sp.sei;
    }
    BindingID bindingId = portInfo.getBindingId();

    TubelineAssembler assembler = TubelineAssemblerFactory.create(
            Thread.currentThread().getContextClassLoader(), bindingId, owner.getContainer());
    if (assembler == null) {
        throw new WebServiceException("Unable to process bindingID=" + bindingId); // TODO: i18n
    }
    return assembler.createClient(
            new ClientTubeAssemblerContext(
                    portInfo.getEndpointAddress(),
                    portInfo.getPort(),
                    this, binding, owner.getContainer(), ((BindingImpl) binding).createCodec(), seiModel, sei));
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:27,代码来源:Stub.java


示例2: createServer

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
/**
 * 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 Tube createServer(ServerTubeAssemblerContext context) {
    Tube head = context.getTerminalTube();
    head = context.createValidationTube(head);
    head = context.createHandlerTube(head);
    head = context.createMonitoringTube(head);
    head = context.createServerMUTube(head);
    head = context.createWsaTube(head);
    if (dump) {
        // for debugging inject a dump pipe. this is left in the production code,
        // as it would be very handy for a trouble-shooting at the production site.
        head = context.createDumpTube("server", System.out, head);
    }
    head = context.createSecurityTube(head);
    return head;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:21,代码来源:StandaloneTubeAssembler.java


示例3: adapt

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
public static Tube adapt(Pipe p) {
    if (p instanceof Tube) {
        return (Tube) p;
    } else {
        return new PipeAdapter(p);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:PipeAdapter.java


示例4: WsaTube

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
public WsaTube(WSDLPort wsdlPort, WSBinding binding, Tube next) {
    super(next);
    this.wsdlPort = wsdlPort;
    this.binding = binding;
    addKnownHeadersToBinding(binding);
    addressingVersion = binding.getAddressingVersion();
    soapVersion = binding.getSOAPVersion();
    helper = getTubeHelper();
    addressingRequired = AddressingVersion.isRequired(binding);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:WsaTube.java


示例5: createSourceDispatch

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
@Deprecated
public static Dispatch<Source> createSourceDispatch(QName port, Mode mode, WSServiceDelegate owner, Tube pipe, BindingImpl binding, WSEndpointReference epr) {
    if(isXMLHttp(binding))
        return new RESTSourceDispatch(port,mode,owner,pipe,binding,epr);
    else
        return new SOAPSourceDispatch(port,mode,owner,pipe,binding,epr);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:8,代码来源:DispatchImpl.java


示例6: ServerSOAPHandlerTube

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
/**
 * Creates a new instance of SOAPHandlerTube
 */
public ServerSOAPHandlerTube(WSBinding binding, WSDLPort port, Tube next) {
    super(next, port, binding);
    if (binding.getSOAPVersion() != null) {
        // SOAPHandlerTube should n't be used for bindings other than SOAP.
        // TODO: throw Exception
    }
    setUpHandlersOnce();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:ServerSOAPHandlerTube.java


示例7: ServerSchemaValidationTube

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
public ServerSchemaValidationTube(WSEndpoint endpoint, WSBinding binding,
        SEIModel seiModel, WSDLPort wsdlPort, Tube next) {
    super(binding, next);
    this.seiModel = seiModel;
    this.wsdlPort = wsdlPort;

    if (endpoint.getServiceDefinition() != null) {
        MetadataResolverImpl mdresolver = new MetadataResolverImpl(endpoint.getServiceDefinition());
        Source[] sources = getSchemaSources(endpoint.getServiceDefinition(), mdresolver);
        for(Source source : sources) {
            LOGGER.fine("Constructing service validation schema from = "+source.getSystemId());
            //printDOM((DOMSource)source);
        }
        if (sources.length != 0) {
            noValidation = false;
            sf.setResourceResolver(mdresolver);
            try {
                schema = sf.newSchema(sources);
            } catch(SAXException e) {
                throw new WebServiceException(e);
            }
            validator = schema.newValidator();
            return;
        }
    }
    noValidation = true;
    schema = null;
    validator = null;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:30,代码来源:ServerSchemaValidationTube.java


示例8: ClientSOAPHandlerTube

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
/**
 * Creates a new instance of SOAPHandlerTube
 */
public ClientSOAPHandlerTube(WSBinding binding, WSDLPort port, Tube next) {
    super(next, port, binding);
    if (binding.getSOAPVersion() != null) {
        // SOAPHandlerTube should n't be used for bindings other than SOAP.
        // TODO: throw Exception
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:ClientSOAPHandlerTube.java


示例9: createTube

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
public Tube createTube(ClientTubelineAssemblyContext context) throws WebServiceException {
    MessageDumpingFeature messageDumpingFeature = context.getBinding().getFeature(MessageDumpingFeature.class);
    if (messageDumpingFeature != null) {
        return new MessageDumpingTube(context.getTubelineHead(), messageDumpingFeature);
    }

    return context.getTubelineHead();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:MessageDumpingTubeFactory.java


示例10: LoggingDumpTube

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
public LoggingDumpTube(Level loggingLevel, Position position, Tube tubelineHead) {
    super(tubelineHead);

    this.position = position;
    this.loggingLevel = loggingLevel;

    this.tubeId = ID_GENERATOR.incrementAndGet();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:LoggingDumpTube.java


示例11: createTube

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
public Tube createTube(ServerTubelineAssemblyContext context) throws WebServiceException {
    MessageDumpingFeature messageDumpingFeature = context.getEndpoint().getBinding().getFeature(MessageDumpingFeature.class);
    if (messageDumpingFeature != null) {
        return new MessageDumpingTube(context.getTubelineHead(), messageDumpingFeature);
    }

    return context.getTubelineHead();
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:9,代码来源:MessageDumpingTubeFactory.java


示例12: SEIStub

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
@Deprecated
public SEIStub(WSServiceDelegate owner, BindingImpl binding, SOAPSEIModel seiModel, Tube master, WSEndpointReference epr) {
    super(owner, master, binding, seiModel.getPort(), seiModel.getPort().getAddress(), epr);
    this.seiModel = seiModel;
    this.soapVersion = binding.getSOAPVersion();
    databinding = seiModel.getDatabinding();
    initMethodHandlers();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:SEIStub.java


示例13: getImplementation

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
@Override
public <T> T getImplementation(Class<T> type) {
    for (Tube tube : tubes) {
        if (type.isInstance(tube)) {
            return type.cast(tube);
        }
    }
    return null;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:10,代码来源:TubelineAssemblyContextImpl.java


示例14: decorateClientTail

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
@Override
public Tube decorateClientTail(
        Tube tube,
        ClientTubelineAssemblyContext context) {
    for (TubelineAssemblyDecorator decorator : decorators) {
        tube = decorator.decorateClientTail(tube, context);
    }
    return tube;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:TubelineAssemblyDecorator.java


示例15: decorateServerTail

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
@Override
public Tube decorateServerTail(
        Tube tube, ServerTubelineAssemblyContext context) {
    for (TubelineAssemblyDecorator decorator : decorators) {
        tube = decorator.decorateServerTail(tube, context);
    }
    return tube;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:9,代码来源:TubelineAssemblyDecorator.java


示例16: decorateClient

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
@Override
public Tube decorateClient(Tube tube, ClientTubelineAssemblyContext context) {
    for (TubelineAssemblyDecorator decorator : decorators) {
        tube = decorator.decorateClient(tube, context);
    }
    return tube;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:8,代码来源:TubelineAssemblyDecorator.java


示例17: ClientSchemaValidationTube

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
public ClientSchemaValidationTube(WSBinding binding, WSDLPort port, Tube next) {
    super(binding, next);
    this.port = port;
    if (port != null) {
        String primaryWsdl = port.getOwner().getParent().getLocation().getSystemId();
        MetadataResolverImpl mdresolver = new MetadataResolverImpl();
        Map<String, SDDocument> docs = MetadataUtil.getMetadataClosure(primaryWsdl, mdresolver, true);
        mdresolver = new MetadataResolverImpl(docs.values());
        Source[] sources = getSchemaSources(docs.values(), mdresolver);
        for(Source source : sources) {
            LOGGER.fine("Constructing client validation schema from = "+source.getSystemId());
            //printDOM((DOMSource)source);
        }
        if (sources.length != 0) {
            noValidation = false;
            sf.setResourceResolver(mdresolver);
            try {
                schema = sf.newSchema(sources);
            } catch(SAXException e) {
                throw new WebServiceException(e);
            }
            validator = schema.newValidator();
            return;
        }
    }
    noValidation = true;
    schema = null;
    validator = null;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:30,代码来源:ClientSchemaValidationTube.java


示例18: create

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
@Override
protected Tube create() {
    return TubeCloner.clone(master);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:5,代码来源:Pool.java


示例19: ClientMUTube

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
public ClientMUTube(WSBinding binding, Tube next) {
    super(binding, next);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:ClientMUTube.java


示例20: process

import com.sun.xml.internal.ws.api.pipe.Tube; //导入依赖的package包/类
/**
* Send a response to a non-anonymous address. Also closes the transport back channel
* of {@link Packet} if it's not closed already.
*
* @param packet
*      The response from our server, which will be delivered to the destination.
* @return The response packet that should be used to complete the tubeline response processing
*/
   public Packet process(Packet packet) {
   Fiber.CompletionCallback fiberCallback = null;
   Fiber currentFiber = Fiber.getCurrentIfSet();
   if (currentFiber != null) {
       // Link completion of the current fiber to the new fiber that will
       // deliver the async response. This allows access to the response
       // packet that may be generated by sending a new message for the
       // current async response.

           final Fiber.CompletionCallback currentFiberCallback =
               currentFiber.getCompletionCallback();

                   if (currentFiberCallback != null) {
                     fiberCallback = new Fiber.CompletionCallback() {
                     public void onCompletion(@NotNull Packet response) {
                       currentFiberCallback.onCompletion(response);
                     }

                     public void onCompletion(@NotNull Throwable error) {
                       currentFiberCallback.onCompletion(error);
                     }
                   };
                   currentFiber.setCompletionCallback(null);
           }
   }

   // we need to assemble a pipeline to talk to this endpoint.
           WSEndpoint<?> endpoint = packet.endpoint;
           WSBinding binding = endpoint.getBinding();
   Tube transport = TransportTubeFactory.create(Thread.currentThread().getContextClassLoader(),
       new ClientTubeAssemblerContext(
                   packet.endpointAddress, endpoint.getPort(), (WSService) null,
                   binding, endpoint.getContainer(),
                   ((BindingImpl) binding).createCodec(), null, null));
   Fiber fiber = endpoint.getEngine().createFiber();
   fiber.start(transport, packet, fiberCallback);

   // then we'll proceed the rest like one-way.
   Packet copy = packet.copy(false);
   copy.endpointAddress = null;

   return copy;
   }
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:52,代码来源:NonAnonymousResponseProcessor.java



注:本文中的com.sun.xml.internal.ws.api.pipe.Tube类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java FieldMatrix类代码示例发布时间:2022-05-23
下一篇:
Java JAXWSBindingsConstants类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap