Package org.apache.cxf.jaxrs.ext.multipart

Examples of org.apache.cxf.jaxrs.ext.multipart.Multipart.required()


            } else {
                return fromAttachment(multipart, c, t, anns);
            }
        }
       
        if (id != null && !id.required()) {
            /*
             * If user asked for a null, give them a null.
             */
            return null;
        }
View Full Code Here


            } else {
                return fromAttachment(multipart, c, t, anns);
            }
        }
       
        if (id != null && !id.required()) {
            /*
             * If user asked for a null, give them a null.
             */
            return null;
        }
View Full Code Here

       
        Multipart id = AnnotationUtils.getAnnotation(anns, Multipart.class);
        Attachment multipart = AttachmentUtils.getMultipart(c, id, mt, infos);
        if (multipart != null) {
            return fromAttachment(multipart, c, t, anns);
        } else if (id != null && !id.required()) {
            /*
             * If user asked for a null, give them a null.
             */
            return null;
        }
View Full Code Here

            } else {
                return fromAttachment(multipart, c, t, anns);
            }
        }
       
        if (id != null && !id.required()) {
            /*
             * If user asked for a null, give them a null.
             */
            return null;
        }
View Full Code Here

            } else {
                return fromAttachment(multipart, c, t, anns);
            }
        }
       
        if (id != null && !id.required()) {
            /*
             * If user asked for a null, give them a null.
             */
            return null;
        }
View Full Code Here

       
        Multipart id = AnnotationUtils.getAnnotation(anns, Multipart.class);
        Attachment multipart = AttachmentUtils.getMultipart(c, id, mt, infos);
        if (multipart != null) {
            return fromAttachment(multipart, c, t, anns);
        } else if (id != null && !id.required()) {
            /*
             * If user asked for a null, give them a null.
             */
            return null;
        }
View Full Code Here

            ContentDisposition cd = a.getContentDisposition();
            if (cd == null || !MULTIPART_FORM_DATA_TYPE.equalsIgnoreCase(cd.getType())
                || cd.getParameter("name") == null) {
                Multipart id = AnnotationUtils.getAnnotation(anns, Multipart.class);
               
                if (id == null || id.required()) {
                    throw new WebApplicationException(400);
                } else {
                    return;
                }
            }
View Full Code Here

            } else {
                return fromAttachment(multipart, c, t, anns);
            }
        }
       
        if (id != null && !id.required()) {
            /*
             * Return default value for a missing optional part
             */
            Object defaultValue = null;
            if (c.isPrimitive()) {
View Full Code Here

            ContentDisposition cd = a.getContentDisposition();
            if (cd == null || !MULTIPART_FORM_DATA_TYPE.equalsIgnoreCase(cd.getType())
                || cd.getParameter("name") == null) {
                Multipart id = AnnotationUtils.getAnnotation(anns, Multipart.class);
               
                if (id == null || id.required()) {
                    throw new WebApplicationException(400);
                } else {
                    return;
                }
            }
View Full Code Here

            } else {
                return fromAttachment(multipart, c, t, anns);
            }
        }
       
        if (id != null && !id.required()) {
            /*
             * If user asked for a null, give them a null.
             */
            return null;
        }
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.