Package org.apache.axiom.mime

Examples of org.apache.axiom.mime.ContentType


                                     MessageContext msgContext)
            throws AxisFault {
        Attachments attachments =
                BuilderUtil.createAttachmentsMap(msgContext, inputStream, contentType);

        ContentType ct;
        try {
            ct = new ContentType(contentType);
        } catch (ParseException e) {
            throw new OMException(
                    "Invalid Content Type Field in the Mime Message", e);
        }
       
        String type = ct.getParameter("type");
        Builder builder =
                MessageProcessorSelector.getMessageBuilder(type, msgContext);
       
        if (builder instanceof MIMEAwareBuilder) {
            return ((MIMEAwareBuilder)builder).processMIMEMessage(attachments, type, msgContext);
View Full Code Here

TOP

Related Classes of org.apache.axiom.mime.ContentType

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.