Examples of FixedMimeTypePolicy


Examples of org.eclipse.persistence.oxm.mappings.FixedMimeTypePolicy

        if (property.isInlineBinaryData()) {
            mapping.setShouldInlineBinaryData(true);
        }
        // use a non-dynamic implementation of MimeTypePolicy to wrap the MIME string
        if (property.getMimeType() != null) {
            mapping.setMimeTypePolicy(new FixedMimeTypePolicy(property.getMimeType()));
        } else {
          if(areEquals(property.getType(), javax.xml.transform.Source.class)) {
                mapping.setMimeTypePolicy(new FixedMimeTypePolicy("application/xml"));
          } else {
            mapping.setMimeTypePolicy(new FixedMimeTypePolicy("application/octet-stream"));
          }
        }

        JavaClass collectionType = property.getType();
        JavaClass itemType = property.getActualType();
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.