Package org.apache.openejb.jee

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


                        }

                        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

        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

                        }

                        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

TOP

Related Classes of org.apache.openejb.jee.Addressing

Copyright © 2018 www.massapicom. 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.