fr.improve.xdi.service
Class WebServiceBinaryHandler

java.lang.Object
  extended byfr.improve.xdi.service.WebServiceBinaryHandler
All Implemented Interfaces:
BinaryHandler, java.io.Serializable

public class WebServiceBinaryHandler
extends java.lang.Object
implements BinaryHandler

BinaryHandler implementation for web service Attach binary data with XML using MIME (SOAP With Attachment)

Author:
Sébastien Letélié
See Also:
Serialized Form

Constructor Summary
WebServiceBinaryHandler()
           
WebServiceBinaryHandler(org.apache.axis.attachments.Attachments in_attachments)
           
 
Method Summary
 java.lang.Object decode(java.lang.String in_contentID)
          Decode binary data used in import process
 java.lang.String encode(byte[] in_object)
          Encode binary data used in export process
 java.util.Collection getAttachments()
          Get all the binary data
 java.lang.String getContentType()
          Get content type of the binary data (MIME) used in import process
 void setContentType(java.lang.String in_contentType)
          Set content type of the binary data (MIME) used in export process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceBinaryHandler

public WebServiceBinaryHandler(org.apache.axis.attachments.Attachments in_attachments)

WebServiceBinaryHandler

public WebServiceBinaryHandler()
Method Detail

decode

public java.lang.Object decode(java.lang.String in_contentID)
Description copied from interface: BinaryHandler
Decode binary data used in import process

Specified by:
decode in interface BinaryHandler
Parameters:
in_contentID -
Returns:
binary data object

encode

public java.lang.String encode(byte[] in_object)
Description copied from interface: BinaryHandler
Encode binary data used in export process

Specified by:
encode in interface BinaryHandler
Parameters:
in_object -
Returns:
reference to the object (ContentID)

getAttachments

public java.util.Collection getAttachments()
Description copied from interface: BinaryHandler
Get all the binary data

Specified by:
getAttachments in interface BinaryHandler
Returns:

getContentType

public java.lang.String getContentType()
Description copied from interface: BinaryHandler
Get content type of the binary data (MIME) used in import process

Specified by:
getContentType in interface BinaryHandler
Returns:
content type
See Also:
BinaryHandler.getContentType()

setContentType

public void setContentType(java.lang.String in_contentType)
Description copied from interface: BinaryHandler
Set content type of the binary data (MIME) used in export process

Specified by:
setContentType in interface BinaryHandler
Parameters:
in_contentType -
See Also:
BinaryHandler.setContentType(java.lang.String)


Copyright © 2004-2005 Improve. All Rights Reserved.