org.apache.axis.attachments

Class AttachmentUtils

public class AttachmentUtils extends Object

This class allow access to the Jaf data handler in AttachmentPart.

Author: Rick Rineholt

Method Summary
static DataHandlergetActivationDataHandler(Part part)
Obtain the DataHandler from the part.
static booleanisAttachment(Object value)
Determine if an object is to be treated as an attchment.

Method Detail

getActivationDataHandler

public static DataHandler getActivationDataHandler(Part part)
Obtain the DataHandler from the part.

Parameters: part the part containing the Java Activiation Framework data source.

Returns: The Java activation data handler.

Throws: AxisFault

isAttachment

public static boolean isAttachment(Object value)
Determine if an object is to be treated as an attchment.

Parameters: value the value that is to be determined if its an attachment.

Returns: True if value should be treated as an attchment.

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.