Java 8 Binding - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 Binding class.

This code example shows how to use the following methods:getHandlerChain
    protected HandlerChainInvoker getInvoker(T message) {
        Exchange ex = message.getExchange();
        HandlerChainInvoker invoker = 
            ex.get(HandlerChainInvoker.class);
        if (null == invoker) {
            invoker = new HandlerChainInvoker(binding.getHandlerChain(),
                                              isOutbound(message));
            ex.put(HandlerChainInvoker.class, invoker);
        } 
         
        boolean outbound = isOutbound(message, ex);
        if (outbound) {
            invoker.setOutbound();
        } else { 
            invoker.setInbound();
        } 
        invoker.setRequestor(isRequestor(message));
         
        if (ex.isOneWay()
            || ((isRequestor(message) && !outbound) 
4
CodeRank
This code example shows how to use the following methods:getHandlerChain
 
    /** Creates an instance of an InvocationContext based on the Binding that was passed in. */ 
    public static InvocationContext createInvocationContext(Binding binding) {
        InvocationContextImpl ic = new InvocationContextImpl();
        if (binding != null) {
            ic.setHandlers(binding.getHandlerChain());
        } 
 
        return ic;
    } 
     
    public static EndpointInvocationContext createEndpointInvocationContext(Binding binding) {
        EndpointInvocationContext eic = new EndpointInvocationContextImpl();
         
        if (binding != null) {
            eic.setHandlers(binding.getHandlerChain());
        } 
         
        return eic;
    } 
4
CodeRank
This code example shows how to use the following methods:getBindingID
    public <T extends EndpointReference> T getEndpointReference(Class<T> clazz, Element... referenceParameters) {
        if (!isPublished()) { 
            throw new WebServiceException("Endpoint is not published");
        } 
         
        if (!BindingUtils.isSOAPBinding(binding.getBindingID())) {
            throw new UnsupportedOperationException("This method is unsupported for the binding: " + binding.getBindingID());
        } 
         
        EndpointReference jaxwsEPR = null;
        String addressingNamespace = EndpointReferenceUtils.getAddressingNamespace(clazz);
        String address = endpointDesc.getEndpointAddress();
        QName serviceName = endpointDesc.getServiceQName();
        QName portName = endpointDesc.getPortQName();
 
        String wsdlLocation = null;
        if (metadata != null) {
            Source wsdlSource = metadata.get(0);
            if (wsdlSource != null) {   
                wsdlLocation = wsdlSource.getSystemId();
3
CodeRank
See Code Examples for Java 8 Binding Methods: