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
-
public class DataSourceType extends AbstractXOPType
Binding forDataSource.
-
-
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 Constructor Description DataSourceType(boolean useXmimeBinaryType, String expectedContentTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AttachmentcreateAttachment(Object object, String id)protected byte[]getBytes(Object object)if MtoM is not enabled, we need bytes to turn into base64.protected StringgetContentType(Object object, Context context)protected ObjectreadAttachment(Attachment att, Context context)protected ObjectwrapBytes(byte[] bareBytes, String contentType)If 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, writeObject
-
Methods 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 Detail
-
DataSourceType
public DataSourceType(boolean useXmimeBinaryType, String expectedContentTypes)
-
-
Method Detail
-
readAttachment
protected Object readAttachment(Attachment att, Context context)
- Specified by:
readAttachmentin classAbstractXOPType
-
createAttachment
protected Attachment createAttachment(Object object, String id)
- Specified by:
createAttachmentin classAbstractXOPType
-
getContentType
protected String getContentType(Object object, Context context)
- Specified by:
getContentTypein classAbstractXOPType
-
wrapBytes
protected Object wrapBytes(byte[] bareBytes, String contentType)
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
protected byte[] getBytes(Object object)
Description copied from class:AbstractXOPTypeif MtoM is not enabled, we need bytes to turn into base64.- Specified by:
getBytesin classAbstractXOPType- Returns:
-
-