com.atlassian.jira.soap.axis
Class SoapAttachmentHelperImpl
java.lang.Object
com.atlassian.jira.soap.axis.SoapAttachmentHelperImpl
- All Implemented Interfaces:
- SoapAttachmentHelper
- public class SoapAttachmentHelperImpl
- extends java.lang.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
Method Summary |
java.lang.String[] |
addFiles(org.apache.axis.client.Stub stub,
java.lang.String[] fileLocations)
This method is used for adding files as attachments for SOAP calls |
javax.activation.DataHandler[] |
getDataHandlers()
|
static SoapAttachmentHelper |
getInstance()
|
void |
relayAttachments(org.apache.axis.client.Stub stub)
|
java.io.File[] |
saveFile(java.lang.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 |
SoapAttachmentHelperImpl
public SoapAttachmentHelperImpl()
addFiles
public java.lang.String[] addFiles(org.apache.axis.client.Stub stub,
java.lang.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 AxisfileLocations
- list of files to be attached from the local client file system
- Returns:
- attachment file names
saveFile
public java.io.File[] saveFile(java.lang.String[] attachmentFileNames)
throws java.rmi.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:
java.rmi.RemoteException
relayAttachments
public void relayAttachments(org.apache.axis.client.Stub stub)
throws java.rmi.RemoteException
- Specified by:
relayAttachments
in interface SoapAttachmentHelper
- Throws:
java.rmi.RemoteException
getDataHandlers
public javax.activation.DataHandler[] getDataHandlers()
- Specified by:
getDataHandlers
in interface SoapAttachmentHelper
getInstance
public static SoapAttachmentHelper getInstance()
Copyright © 2002-2005 Atlassian. All Rights Reserved.