com.atlassian.jira.soap.axis
Class SoapAttachmentHelperImpl

java.lang.Object
  extended by com.atlassian.jira.soap.axis.SoapAttachmentHelperImpl
All Implemented Interfaces:
SoapAttachmentHelper

public class SoapAttachmentHelperImpl
extends Object
implements SoapAttachmentHelper

Class to abstract dealing with Attachments. Adapted from Kevin Colussi's AttachmentUtil http://marc.theaimsgroup.com/?l=axis-user&m=109103923030924&w=2 http://www.mail-archive.com/axis-user@xml.apache.org/msg08732.html


Constructor Summary
SoapAttachmentHelperImpl()
           
 
Method Summary
 String[] addFiles(org.apache.axis.client.Stub stub, String[] fileLocations)
          This method is used for adding files as attachments for SOAP calls
 DataHandler[] getDataHandlers()
           
static SoapAttachmentHelper getInstance()
           
 void relayAttachments(org.apache.axis.client.Stub stub)
           
 File[] saveFile(String[] attachmentFileNames)
          This method receives the attachment from the client and saves it on the temp directory on the server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapAttachmentHelperImpl

public SoapAttachmentHelperImpl()
Method Detail

addFiles

public String[] addFiles(org.apache.axis.client.Stub stub,
                         String[] fileLocations)
This method is used for adding files as attachments for SOAP calls

Specified by:
addFiles in interface SoapAttachmentHelper
Parameters:
stub - THe Axis SOAP stub generated by Axis
fileLocations - list of files to be attached from the local client file system
Returns:
attachment file names

saveFile

public File[] saveFile(String[] attachmentFileNames)
                throws RemoteException
This method receives the attachment from the client and saves it on the temp directory on the server

Specified by:
saveFile in interface SoapAttachmentHelper
Parameters:
attachmentFileNames - scontaining the file names of the attachments.
Returns:
File[] containing the File objects of the attachments.
Throws:
RemoteException

relayAttachments

public void relayAttachments(org.apache.axis.client.Stub stub)
                      throws RemoteException
Specified by:
relayAttachments in interface SoapAttachmentHelper
Throws:
RemoteException

getDataHandlers

public DataHandler[] getDataHandlers()
Specified by:
getDataHandlers in interface SoapAttachmentHelper

getInstance

public static SoapAttachmentHelper getInstance()


Copyright © 2002-2011 Atlassian. All Rights Reserved.