Examples of Addressing


Examples of javax.xml.ws.soap.Addressing

                features.add(new MTOMFeature(true));               
            }
        }
       

        Addressing addressing = null;
        if (implementorClass != null) {
            addressing = implementorClass.getAnnotation(Addressing.class);
        }

        if (addressing == null && serviceClass != null) {
            addressing = serviceClass.getAnnotation(Addressing.class);
        }

        if (addressing != null) {
            features.add(new AddressingFeature(addressing.enabled(), addressing.required()));
        }

        if (features.size() > 0) {
            wsFeatures = features;
        }
View Full Code Here

Examples of javax.xml.ws.soap.Addressing

                features.add(new MTOMFeature(true));               
            }
        }
       

        Addressing addressing = null;
        if (implementorClass != null) {
            addressing = implementorClass.getAnnotation(Addressing.class);
        }

        if (addressing == null && serviceClass != null) {
            addressing = serviceClass.getAnnotation(Addressing.class);
        }

        if (addressing != null) {
            features.add(new AddressingFeature(addressing.enabled(), addressing.required()));
        }

        if (features.size() > 0) {
            wsFeatures = features;
        }
View Full Code Here

Examples of javax.xml.ws.soap.Addressing

        }
        return false;
    }   

    private void buildWsdlExtensibilities(BindingInfo bindingInfo) {
        Addressing addressing = getAddressing();
        if (addressing != null) {           
            ExtensionRegistry extensionRegistry = getBus().getExtension(WSDLManager.class)
            .getExtensionRegistry();           
            try {
                ExtensibilityElement el = extensionRegistry.createExtension(javax.wsdl.Binding.class,
                                                                            JAXWSAConstants.
                                                                            WSAW_USINGADDRESSING_QNAME);
                el.setRequired(addressing.required());
                bindingInfo.addExtensor(el);
            } catch (WSDLException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
View Full Code Here

Examples of org.apache.openejb.jee.Addressing

                            if (portComponentRef.getEnableMtom() == null) {
                                portComponentRef.setEnableMtom(mtom.enabled());
                            }
                        } else if (webServiceFeatureAnnotationType == javax.xml.ws.soap.Addressing.class) {
                            javax.xml.ws.soap.Addressing addressingAnnotation = (javax.xml.ws.soap.Addressing) webServiceFeatureAnnotation;
                            Addressing addressing = portComponentRef.getAddressing();
                            if (addressing == null) {
                                addressing = new Addressing();
                                addressing.setEnabled(addressingAnnotation.enabled());
                                addressing.setRequired(addressingAnnotation.required());
                                addressing.setResponses(AddressingResponses.valueOf(addressingAnnotation.responses().toString()));
                                portComponentRef.setAddressing(addressing);
                            } else {
                                if (addressing.getEnabled() == null) {
                                    addressing.setEnabled(addressingAnnotation.enabled());
                                }
                                if (addressing.getRequired() == null) {
                                    addressing.setRequired(addressingAnnotation.required());
                                }
                                if (addressing.getResponses() == null) {
                                    addressing.setResponses(AddressingResponses.valueOf(addressingAnnotation.responses().toString()));
                                }
                            }
                        } else if (webServiceFeatureAnnotationType == RespectBinding.class) {
                            RespectBinding respectBinding = (RespectBinding) webServiceFeatureAnnotation;
                            if (portComponentRef.getRespectBinding() == null) {
View Full Code Here

Examples of org.apache.openejb.jee.Addressing

                        }

                        String location = servletLocations.get(serviceLink);
                        portInfo.setLocation(location);

                        Addressing addressing = port.getAddressing();
                        if (addressing != null) {
                            AddressingFeatureInfo addressingFeatureInfo = portInfo.getAddressingFeatureInfo();
                            if (addressingFeatureInfo == null) {
                                addressingFeatureInfo = new AddressingFeatureInfo();
                                portInfo.setAddressingFeatureInfo(addressingFeatureInfo);
                            }
                            if (addressing.getEnabled() != null) {
                                addressingFeatureInfo.setEnabled(addressing.getEnabled());
                            }
                            if (addressing.getRequired() != null) {
                                addressingFeatureInfo.setRequired(addressing.getRequired());
                            }
                            if (addressing.getResponses() != null) {
                                addressingFeatureInfo.setResponses(AddressingFeature.Responses.valueOf(addressing.getResponses().name()));
                            }
                        }

                        if (port.getEnableMtom() != null || port.getMtomThreshold() != null) {
                            MTOMFeatureInfo mtomFeatureInfo = portInfo.getMtomFeatureInfo();
View Full Code Here

Examples of org.apache.openejb.jee.Addressing

        return buildWebServiceFeatureInfos(portComponentRef);
    }

    private List<WebServiceFeatureInfo> buildWebServiceFeatureInfos(PortComponentRef portComponentRef) {
        List<WebServiceFeatureInfo> webServiceFeatureInfos = new ArrayList<WebServiceFeatureInfo>(3);
        Addressing addressing = portComponentRef.getAddressing();
        if (addressing != null) {
            webServiceFeatureInfos.add(new AddressingFeatureInfo(addressing.getEnabled() == null ? true : addressing.getEnabled(), addressing.getRequired() == null ? false : addressing.getRequired(),
                    addressing.getResponses() != null ? AddressingFeature.Responses.valueOf(addressing.getResponses().toString()) : AddressingFeature.Responses.ALL));
        }
        if (portComponentRef.getEnableMtom() != null) {
            webServiceFeatureInfos.add(new MTOMFeatureInfo(portComponentRef.isEnableMtom(), portComponentRef.getMtomThreshold() == null ? 0 : portComponentRef.getMtomThreshold()));
        }
        if (portComponentRef.getRespectBinding() != null && portComponentRef.getRespectBinding().getEnabled() != null) {
View Full Code Here

Examples of org.apache.openejb.jee.Addressing

                        }

                        String location = servletLocations.get(serviceLink);
                        portInfo.setLocation(location);

                        Addressing addressing = port.getAddressing();
                        if (addressing != null) {
                            AddressingFeatureInfo addressingFeatureInfo = portInfo.getAddressingFeatureInfo();
                            if (addressingFeatureInfo == null) {
                                addressingFeatureInfo = new AddressingFeatureInfo();
                                portInfo.setAddressingFeatureInfo(addressingFeatureInfo);
                            }
                            if (addressing.getEnabled() != null) {
                                addressingFeatureInfo.setEnabled(addressing.getEnabled());
                            }
                            if (addressing.getRequired() != null) {
                                addressingFeatureInfo.setRequired(addressing.getRequired());
                            }
                            if (addressing.getResponses() != null) {
                                addressingFeatureInfo.setResponses(AddressingFeature.Responses.valueOf(addressing.getResponses().name()));
                            }
                        }

                        if (port.getEnableMtom() != null || port.getMtomThreshold() != null) {
                            MTOMFeatureInfo mtomFeatureInfo = portInfo.getMtomFeatureInfo();
View Full Code Here

Examples of org.jboss.metadata.javaee.spec.Addressing

        // propagate MTOM properties
        portComponentUMDM.setMtomEnabled(portComponentMD.isEnableMtom());
        portComponentUMDM.setMtomThreshold(portComponentMD.getMtomThreshold());

        // propagate addressing properties
        final Addressing addressingMD = portComponentMD.getAddressing();
        if (addressingMD != null) {
            portComponentUMDM.setAddressingAnnotationSpecified(true);
            portComponentUMDM.setAddressingEnabled(addressingMD.isEnabled());
            portComponentUMDM.setAddressingRequired(addressingMD.isRequired());
            portComponentUMDM.setAddressingResponses(addressingMD.getResponses());
        }

        // propagate respect binding properties
        if (portComponentMD.getRespectBinding() != null) {
            portComponentUMDM.setRespectBindingAnnotationSpecified(true);
View Full Code Here

Examples of org.jboss.metadata.javaee.spec.Addressing

        // propagate MTOM properties
        builder.setMtomEnabled(portComponentMD.isEnableMtom());
        builder.setMtomThreshold(portComponentMD.getMtomThreshold());

        // propagate addressing properties
        final Addressing addressingMD = portComponentMD.getAddressing();
        if (addressingMD != null) {
            builder.setAddressingAnnotationSpecified(true);
            builder.setAddressingEnabled(addressingMD.isEnabled());
            builder.setAddressingRequired(addressingMD.isRequired());
            builder.setAddressingResponses(addressingMD.getResponses());
        }

        // propagate respect binding properties
        if (portComponentMD.getRespectBinding() != null) {
            builder.setRespectBindingAnnotationSpecified(true);
View Full Code Here

Examples of org.jboss.switchboard.javaee.environment.Addressing

      // propagate MTOM properties
      portComponentUMDM.setMtomEnabled(portComponentSBMD.isMtomEnabled());
      portComponentUMDM.setMtomThreshold(portComponentSBMD.getMtomThreshold());

      // propagate addressing properties
      final Addressing addressingSBMD = portComponentSBMD.getAddressing();
      if (addressingSBMD != null)
      {
         portComponentUMDM.setAddressingEnabled(addressingSBMD.isEnabled());
         portComponentUMDM.setAddressingRequired(addressingSBMD.isRequired());
         portComponentUMDM.setAddressingResponses(addressingSBMD.getResponses());
      }

      // propagate respect binding properties
      portComponentUMDM.setRespectBindingEnabled(portComponentSBMD.isRespectBindingEnabled());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.