Package org.apache.openejb.jee

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


        ejbJarJAXBCreate.stop();

        final Event unmarshalEvent = Event.start("unmarshal");
        final Object value;

        final EjbJar$JAXB jaxbType = new EjbJar$JAXB();
        value = Sxc.unmarshalJavaee(resource, jaxbType);

        unmarshalEvent.stop();

        final ByteArrayOutputStream baos = new ByteArrayOutputStream();
View Full Code Here


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

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

    public static EjbJar unmarshal(InputStream inputStream) throws Exception {
        return Sxc.unmarshalJavaee(new EjbJar$JAXB(), inputStream);
    }

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

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

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

    }

    public static FacesConfig unmarshal(final URL url) throws Exception {
        final InputStream inputStream = IO.read(url);
        try {
            return Sxc.unmarshalJavaee(new FacesConfig$JAXB(), inputStream);
        } finally {
            IO.close(inputStream);
        }
    }
View Full Code Here

            IO.close(inputStream);
        }
    }

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

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

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

    }

    public static FacesConfig unmarshal(URL url) throws Exception {
        final InputStream inputStream = IO.read(url);
        try {
            return Sxc.unmarshalJavaee(new FacesConfig$JAXB(), inputStream);
        } finally {
            IO.close(inputStream);
        }
    }
View Full Code Here

            IO.close(inputStream);
        }
    }

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

    @Override
    public void merge(WebFragment webFragment, WebApp webApp, MergeContext mergeContext) throws DeploymentException {
        for (FilterMapping srcFilterMapping : webFragment.getFilterMapping()) {
            String filterName = srcFilterMapping.getFilterName();
            FilterMapping targetFilterMapping = (FilterMapping) mergeContext.getAttribute(createFilterMappingKey(filterName));
            if (targetFilterMapping == null) {
                webApp.getFilterMapping().add(srcFilterMapping);
                mergeContext.setAttribute(createFilterMappingKey(filterName), srcFilterMapping);
                for (SubMergeHandler<FilterMapping, FilterMapping> subMergeHandler : subMergeHandlers) {
                    subMergeHandler.add(srcFilterMapping, mergeContext);
                }
            } else {
                if (isFilterMappingFromWebXml(filterName, mergeContext)) {
                    continue;
                }
                if (isFilterMappingFromAnnotation(filterName, mergeContext)) {
                    //If the current url-patterns configurations are from annotations, so let's drop them
                    targetFilterMapping.getUrlPattern().clear();
                    targetFilterMapping.getDispatcher().clear();
                    targetFilterMapping.getServletName().clear();
                    mergeContext.removeAttribute(createFilterMappingSourceKey(filterName));
                }
                for (SubMergeHandler<FilterMapping, FilterMapping> subMergeHandler : subMergeHandlers) {
                    subMergeHandler.merge(srcFilterMapping, targetFilterMapping, mergeContext);
                }
View Full Code Here

TOP

Related Classes of org.apache.openejb.jee.FilterMapping$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.