Package org.apache.openejb.jee

Examples of org.apache.openejb.jee.PortComponentRef$JAXB


        try {
            final XMLStreamReader filter = Sxc.prepareReader(inputStream);
            synchronized (Adapters.handlerChainsStringQNameAdapterAdapter) { // few threads on it so synchronized > lock
                Adapters.handlerChainsStringQNameAdapterAdapter.setNamespaceContext(filter.getNamespaceContext());
                try {
                    return Sxc.unmarhsal(new HandlerChains$JAXB(), new XoXMLStreamReaderImpl(filter));
                } finally {
                    Adapters.handlerChainsStringQNameAdapterAdapter.setNamespaceContext(null);
                }
            }
        } finally {
View Full Code Here


            IO.close(inputStream);
        }
    }

    public static void marshal(final HandlerChains handlerChains, final OutputStream outputStream) throws Exception {
        Sxc.marshal(new HandlerChains$JAXB(), handlerChains, new StreamResult(outputStream));
    }
View Full Code Here

* @version $Rev$ $Date$
*/
public class HandlerChainsXml {

    public static HandlerChains unmarshal(final InputStream inputStream) throws Exception {
        return Sxc.unmarshalJavaee(new HandlerChains$JAXB(), inputStream);
    }
View Full Code Here

        try {
            final XMLStreamReader filter = Sxc.prepareReader(inputStream);
            synchronized (Adapters.handlerChainsStringQNameAdapterAdapter) { // few threads on it so synchronized > lock
                Adapters.handlerChainsStringQNameAdapterAdapter.setNamespaceContext(filter.getNamespaceContext());
                try {
                    return Sxc.unmarhsal(new HandlerChains$JAXB(), new XoXMLStreamReaderImpl(filter));
                } finally {
                    Adapters.handlerChainsStringQNameAdapterAdapter.setNamespaceContext(null);
                }
            }
        } finally {
View Full Code Here

            IO.close(inputStream);
        }
    }

    public static void marshal(final HandlerChains handlerChains, final OutputStream outputStream) throws Exception {
        Sxc.marshal(new HandlerChains$JAXB(), handlerChains, new StreamResult(outputStream));
    }
View Full Code Here

* @version $Rev$ $Date$
*/
public class HandlerChainsXml {

    public static HandlerChains unmarshal(InputStream inputStream) throws Exception {
        return Sxc.unmarshalJavaee(new HandlerChains$JAXB(), inputStream);
    }
View Full Code Here

        try {
            final XMLStreamReader filter = Sxc.prepareReader(inputStream);
            synchronized (Adapters.handlerChainsStringQNameAdapterAdapter) { // few threads on it so synchronized > lock
                Adapters.handlerChainsStringQNameAdapterAdapter.setNamespaceContext(filter.getNamespaceContext());
                try {
                    return Sxc.unmarhsal(new HandlerChains$JAXB(), new XoXMLStreamReaderImpl(filter));
                } finally {
                    Adapters.handlerChainsStringQNameAdapterAdapter.setNamespaceContext(null);
                }
            }
        } finally {
View Full Code Here

            IO.close(inputStream);
        }
    }

    public static void marshal(HandlerChains handlerChains, OutputStream outputStream) throws Exception {
        Sxc.marshal(new HandlerChains$JAXB(), handlerChains, new StreamResult(outputStream));
    }
View Full Code Here

            }
            if (webServiceFeatureAnnotations.size() > 0) {
                if (javax.xml.ws.Service.class.isAssignableFrom(webServiceRefType)) {
                    log.warn("In current JAX-WS spec, no standard web service feature is supported on service creation, " + webServiceFeatureAnnotations + " are ignored");
                } else {
                    PortComponentRef portComponentRef = getPortComponentRef(serviceRef, webServiceRefType.getName());

                    for (Annotation webServiceFeatureAnnotation : webServiceFeatureAnnotations) {
                        Class<? extends Annotation> webServiceFeatureAnnotationType = webServiceFeatureAnnotation.annotationType();
                        if (webServiceFeatureAnnotationType == MTOM.class) {
                            MTOM mtom = (MTOM) webServiceFeatureAnnotation;
                            if (portComponentRef.getMtomThreshold() == null) {
                                portComponentRef.setMtomThreshold(mtom.threshold());
                            }
                            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) {
                                org.apache.openejb.jee.RespectBinding respectBindingValue = new org.apache.openejb.jee.RespectBinding();
                                respectBindingValue.setEnabled(respectBinding.enabled());
                                portComponentRef.setRespectBinding(respectBindingValue);
                            }
                        } else {
                            log.warn("Unsupport web service feature annotation " + webServiceFeatureAnnotation + " on " + webServiceRefName);
                        }
                    }
View Full Code Here

        for (PortComponentRef portComponentRef : portComponentRefs) {
            if (portComponentRef.getServiceEndpointInterface().equals(seiInterfaceName)) {
                return portComponentRef;
            }
        }
        PortComponentRef portComponentRef = new PortComponentRef();
        portComponentRef.setServiceEndpointInterface(seiInterfaceName);
        portComponentRefs.add(portComponentRef);
        return portComponentRef;
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.jee.PortComponentRef$JAXB

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.