public class SimpleFileStorageAppSoapMockStub extends com.collabnet.ce.soap60.webservices.ClientSoapMockStub implements ISimpleFileStorageAppSoap
Constructor and Description |
---|
SimpleFileStorageAppSoapMockStub(String soapServerUrl) |
Modifier and Type | Method and Description |
---|---|
void |
endFileUpload(String sessionId,
String fileStorageId)
Simulate a call to endFileUpload
|
long |
getSize(String sessionId,
String fileStorageId)
Simulate a call to getSize
|
void |
prepareEndFileUpload(String sessionId,
String fileStorageId)
Prepare a simulated response to endFileUpload
|
void |
prepareEndFileUpload(String sessionId,
String fileStorageId,
Exception exception)
Prepare a simulated response to endFileUpload
|
void |
prepareGetSize(String sessionId,
String fileStorageId,
Object returnValue)
Prepare a simulated response to getSize
|
void |
prepareRead(String sessionId,
String fileStorageId,
int offset,
int length,
Object returnValue)
Prepare a simulated response to read
|
void |
prepareStartFileUpload(String sessionId,
Object returnValue)
Prepare a simulated response to startFileUpload
|
void |
prepareWrite(String sessionId,
String fileStorageId,
byte[] data)
Prepare a simulated response to write
|
void |
prepareWrite(String sessionId,
String fileStorageId,
byte[] data,
Exception exception)
Prepare a simulated response to write
|
byte[] |
read(String sessionId,
String fileStorageId,
int offset,
int length)
Simulate a call to read
|
String |
startFileUpload(String sessionId)
Simulate a call to startFileUpload
|
void |
write(String sessionId,
String fileStorageId,
byte[] data)
Simulate a call to write
|
addSimulatedResult, addSimulatedResult, addSimulatedResult, getCallCount, getCallParameters, getUnusedCalls, simulateCall
public SimpleFileStorageAppSoapMockStub(String soapServerUrl)
public void prepareStartFileUpload(String sessionId, Object returnValue)
SimpleFileStorageAppSoap.startFileUpload(java.lang.String)
public String startFileUpload(String sessionId) throws RemoteException
startFileUpload
in interface ISimpleFileStorageAppSoap
sessionId
- User session id.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error is encountered.RemoteException
SimpleFileStorageAppSoap.startFileUpload(java.lang.String)
public void prepareWrite(String sessionId, String fileStorageId, byte[] data)
SimpleFileStorageAppSoap.write(java.lang.String, java.lang.String, byte[])
public void prepareWrite(String sessionId, String fileStorageId, byte[] data, Exception exception)
SimpleFileStorageAppSoap.write(java.lang.String, java.lang.String, byte[])
public void write(String sessionId, String fileStorageId, byte[] data) throws RemoteException
write
in interface ISimpleFileStorageAppSoap
sessionId
- User session id.fileStorageId
- Id of temporary file storage for the file being uploaded.data
- Data to be uploaded.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error is encountered.com.collabnet.ce.soap60.fault.IllegalArgumentFault
- when the specified fileStorageId is invalid.RemoteException
SimpleFileStorageAppSoap.write(java.lang.String, java.lang.String, byte[])
public void prepareEndFileUpload(String sessionId, String fileStorageId)
SimpleFileStorageAppSoap.endFileUpload(java.lang.String, java.lang.String)
public void prepareEndFileUpload(String sessionId, String fileStorageId, Exception exception)
SimpleFileStorageAppSoap.endFileUpload(java.lang.String, java.lang.String)
public void endFileUpload(String sessionId, String fileStorageId) throws RemoteException
endFileUpload
in interface ISimpleFileStorageAppSoap
sessionId
- User session id.fileStorageId
- Id of temporary file storage for the file to finish uploading.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error is encountered.com.collabnet.ce.soap60.fault.IllegalArgumentFault
- when the specified fileStorageId is invalid.RemoteException
SimpleFileStorageAppSoap.endFileUpload(java.lang.String, java.lang.String)
public void prepareGetSize(String sessionId, String fileStorageId, Object returnValue)
SimpleFileStorageAppSoap.getSize(java.lang.String, java.lang.String)
public long getSize(String sessionId, String fileStorageId) throws RemoteException
getSize
in interface ISimpleFileStorageAppSoap
sessionId
- User session id.fileStorageId
- Id of temporary file storage.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error is encountered.com.collabnet.ce.soap60.fault.IllegalArgumentFault
- when the specified fileStorageId is invalid.RemoteException
SimpleFileStorageAppSoap.getSize(java.lang.String, java.lang.String)
public void prepareRead(String sessionId, String fileStorageId, int offset, int length, Object returnValue)
SimpleFileStorageAppSoap.read(java.lang.String, java.lang.String, int, int)
public byte[] read(String sessionId, String fileStorageId, int offset, int length) throws RemoteException
read
in interface ISimpleFileStorageAppSoap
sessionId
- User session id.fileStorageId
- Id of temporary file storage returned by DocmentApp.getDocumentFileId or FrsApp.getFrsFileIdoffset
- Offset within file from where to read.length
- Number of bytes to read.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error is encountered.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user doesn't have permission to view the filecom.collabnet.ce.soap60.fault.IllegalArgumentFault
- when the specified fileStorageId is invalid.RemoteException
SimpleFileStorageAppSoap.read(java.lang.String, java.lang.String, int, int)
Copyright © 2016 CollabNet. All Rights Reserved.