@Deprecated public class FileClient extends AbstractRPCClient
FileService
Modifier and Type | Field and Description |
---|---|
private SessionClient |
session
Deprecated.
|
Constructor and Description |
---|
FileClient(SessionClient session)
Deprecated.
Creates new ProjectClient object for an active session client.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
download(int fileId)
Deprecated.
Download a file when you know the id.
|
FileInfo |
getById(int itemId)
Deprecated.
Get info about a file when you know the ID.
|
getOperation, getService, getServiceFactory, invokeBlocking, invokeBlocking, invokeBlocking, invokeFileBlocking, setServiceFactory
private final SessionClient session
public FileClient(SessionClient session)
session
- The active session clientpublic FileInfo getById(int itemId) throws org.apache.axis2.AxisFault
itemId
- The ID of the fileorg.apache.axis2.AxisFault
- If communication with web service fails.public java.io.InputStream download(int fileId) throws org.apache.axis2.AxisFault, java.io.IOException
fileId
- Id of file to downloadorg.apache.axis2.AxisFault
- If communication with webservices fails.java.io.IOException
- If writing to the target file fails.