com.atlassian.jira.rpc.soap.util
Class PluginSoapAttachmentHelper
java.lang.Object
com.atlassian.jira.rpc.soap.util.PluginSoapAttachmentHelper
- All Implemented Interfaces:
- com.atlassian.jira.soap.axis.SoapAttachmentHelper
public class PluginSoapAttachmentHelper
- extends java.lang.Object
- implements com.atlassian.jira.soap.axis.SoapAttachmentHelper
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 |
java.io.File |
byteArrayToTempFile(byte[] buffer)
|
javax.activation.DataHandler[] |
getDataHandlers()
|
static PluginSoapAttachmentHelper |
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 |
PluginSoapAttachmentHelper
public PluginSoapAttachmentHelper()
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 com.atlassian.jira.soap.axis.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 com.atlassian.jira.soap.axis.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 com.atlassian.jira.soap.axis.SoapAttachmentHelper
- Throws:
java.rmi.RemoteException
getDataHandlers
public javax.activation.DataHandler[] getDataHandlers()
- Specified by:
getDataHandlers
in interface com.atlassian.jira.soap.axis.SoapAttachmentHelper
getInstance
public static PluginSoapAttachmentHelper getInstance()
byteArrayToTempFile
public java.io.File byteArrayToTempFile(byte[] buffer)
Copyright © 2004-2011 Atlassian. All Rights Reserved.