Package org.glassfish.web.deployment.descriptor

Examples of org.glassfish.web.deployment.descriptor.MultipartConfigDescriptor


            throws AnnotationProcessorException {

        MultipartConfig multipartConfigAn = (MultipartConfig)ainfo.getAnnotation();
        com.sun.enterprise.deployment.web.MultipartConfig multipartConfig = webCompDesc.getMultipartConfig();
        if (multipartConfig == null) {
            multipartConfig = new MultipartConfigDescriptor();
            webCompDesc.setMultipartConfig(multipartConfig);
        }

        if (multipartConfig.getLocation() == null) {
            multipartConfig.setLocation(multipartConfigAn.location());
View Full Code Here


            roleRefNode.writeDescriptor(myNode, WebTagNames.ROLE_REFERENCE,
                            (RoleReference) roleRefs.nextElement());           
        }

        // multipart-config
        MultipartConfigDescriptor multipartConfigDesc =
                (MultipartConfigDescriptor)descriptor.getMultipartConfig();
        if (multipartConfigDesc != null) {
            MultipartConfigNode multipartConfigNode = new MultipartConfigNode();
            multipartConfigNode.writeDescriptor(myNode, WebTagNames.MULTIPART_CONFIG,
                    multipartConfigDesc);
View Full Code Here

     * @return the descriptor instance to associate with this XMLNode
     */
    @Override
    public MultipartConfigDescriptor getDescriptor() {
        if (descriptor == null) {
            descriptor = new MultipartConfigDescriptor();
        }
        return descriptor;
    }
View Full Code Here

TOP

Related Classes of org.glassfish.web.deployment.descriptor.MultipartConfigDescriptor

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.