Package org.apache.cxf.aegis.type.mtom
Class DataSourceType
java.lang.Object
org.apache.cxf.aegis.type.AegisType
org.apache.cxf.aegis.type.mtom.AbstractXOPType
org.apache.cxf.aegis.type.mtom.DataSourceType
Binding for
DataSource.-
Field Summary
Fields inherited from class org.apache.cxf.aegis.type.mtom.AbstractXOPType
XML_MIME_ATTR_LOCAL_NAME, XML_MIME_BASE64, XML_MIME_CONTENT_TYPE, XML_MIME_NS, XOP_HREF, XOP_INCLUDE, XOP_NS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.cxf.message.AttachmentcreateAttachment(Object object, String id) protected byte[]if MtoM is not enabled, we need bytes to turn into base64.protected StringgetContentType(Object object, Context context) protected ObjectreadAttachment(org.apache.cxf.message.Attachment att, Context context) protected ObjectIf one of these types arrives unoptimized, we need to convert it to the desired return type.Methods inherited from class org.apache.cxf.aegis.type.mtom.AbstractXOPType
addToSchemaElement, readMtoM, readObject, usesXmime, writeObjectMethods inherited from class org.apache.cxf.aegis.type.AegisType
equals, getDependencies, getMaxOccurs, getMinOccurs, getSchemaType, getType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, hasMinOccurs, isAbstract, isComplex, isFlatArray, isNillable, isWriteOuter, setAbstract, setFlatArray, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString, usesUtilityTypes, writeSchema
-
Constructor Details
-
DataSourceType
-
-
Method Details
-
readAttachment
- Specified by:
readAttachmentin classAbstractXOPType
-
createAttachment
- Specified by:
createAttachmentin classAbstractXOPType
-
getContentType
- Specified by:
getContentTypein classAbstractXOPType
-
wrapBytes
Description copied from class:AbstractXOPTypeIf one of these types arrives unoptimized, we need to convert it to the desired return type.- Specified by:
wrapBytesin classAbstractXOPType- Parameters:
bareBytes- the bytes pulled out of the base64.contentType- when we support xmime:contentType, this will be passed along.- Returns:
-
getBytes
Description copied from class:AbstractXOPTypeif MtoM is not enabled, we need bytes to turn into base64.- Specified by:
getBytesin classAbstractXOPType- Returns:
-