|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.core.model.PropertySetContainer
org.eclipse.rse.core.model.RSEModelObject
org.eclipse.rse.core.subsystems.SubSystem
org.eclipse.rse.subsystems.files.core.subsystems.RemoteFileSubSystem
Specialization for file subsystem factories.
It is subclassed via use of a Rose model and MOF/EMF, or better yet
by subclassing org.eclipse.rse.core.servicesubsystem.impl.FileServiceSubSystem.
For your convenience, there is built-in name filtering support. To use it, call:
setListValues(int, String) or setListValues(int, String, String) to set the filter criteria
accept(String, boolean) to test a given name for a match
This class returns instances of RemoteFile objects.
| Nested Class Summary |
|---|
| Nested classes inherited from class org.eclipse.rse.core.subsystems.SubSystem |
|---|
SubSystem.ChangeStatusJob, SubSystem.ConnectJob, SubSystem.DisconnectJob, SubSystem.DisplayErrorMessageJob, SubSystem.GetPropertiesJob, SubSystem.GetPropertyJob, SubSystem.ResolveAbsoluteJob, SubSystem.ResolveAbsolutesJob, SubSystem.ResolveRelativeJob, SubSystem.SetPropertiesJob, SubSystem.SetPropertyJob, SubSystem.SubSystemOperationJob |
| Field Summary | |
|---|---|
protected HashMap |
_cachedRemoteFiles
|
protected ArrayList |
_searchHistory
|
protected RemoteFileFilterString |
currFilterString
|
protected RemoteFileContext |
DEFAULT_CONTEXT
|
protected RemoteFileContext |
DEFAULT_CONTEXT_NOFILTERSTRING
|
protected RemoteFileFilterString |
FILTERSTRING_LISTROOTS
|
protected NamePatternMatcher |
folderNameMatcher
|
protected static String |
HOME_FOLDER_EDEFAULT
The default value of the ' Home Folder' attribute |
protected String |
homeFolder
|
protected IMatcher |
matcher
|
protected IProgressMonitor |
monitor
|
String |
osCmdShell
|
String |
osName
|
boolean |
osVarsSet
|
boolean |
osWindows
|
boolean |
osWindows95
|
boolean |
osWindowsNT
|
| Fields inherited from class org.eclipse.rse.core.model.RSEModelObject |
|---|
_isDirty, _wasRestored |
| Constructor Summary | |
|---|---|
RemoteFileSubSystem(IHost host,
IConnectorService connectorService)
Default constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
accept(String name,
boolean isFile)
Method to decide if a given folder or file name matches the present criteria. |
protected void |
addResolvedFilterStringObjects(Vector allChildrenSoFar,
Object[] childrenForThisFilterString,
String[] allFilterStrings,
int currFilterStringIndex)
Overridable parent extension point for adding the results of a filter string to the overall list of results. |
void |
cacheRemoteFile(IRemoteFile file)
Store the IRemoteFile in a hashmap to quick subsequent retrieval |
void |
cacheRemoteFile(IRemoteFile file,
String path)
Store the IRemoteFile in a hashmap to quick subsequent retrieval |
void |
cancelSearch(IHostSearchResultConfiguration searchConfig)
Given a search configuration, cancel the search. |
boolean |
checkForCancel()
Long running list processing calls this method to check for a user-cancel event. |
void |
communicationsStateChange(CommunicationsEvent e)
This method is invoked whenever the communications state is invoked immediately before and after the state of the communications changes. |
boolean |
doesFilterMatch(ISystemFilter filter,
String remoteObjectAbsoluteName)
Return true if the given remote object name will pass the filtering criteria for any of the filter strings in this filter. |
boolean |
doesFilterStringListContentsOf(ISystemFilterString filterString,
String remoteObjectAbsoluteName)
Return true if the given filter string lists the contents of the given remote object. |
boolean |
doesFilterStringMatch(String filterString,
String remoteObjectAbsoluteName,
boolean caseSensitive)
Return true if the given remote object name will pass the filtering criteria for the given filter string. |
void |
download(IRemoteFile source,
File destination,
IProgressMonitor monitor)
Get the remote file and save it locally. |
void |
download(IRemoteFile source,
File destination,
String encoding,
IProgressMonitor monitor)
Get the remote file and save it locally. |
void |
download(IRemoteFile source,
IFile destination,
IProgressMonitor monitor)
Get the remote file and save it locally. |
void |
download(IRemoteFile source,
IFile destination,
String encoding,
IProgressMonitor monitor)
Get the remote file and save it locally. |
void |
download(IRemoteFile source,
String destination,
IProgressMonitor monitor)
Get the remote file and save it locally. |
void |
downloadUTF8(IRemoteFile source,
File destination,
IProgressMonitor monitor)
Get the remote file and save it locally. |
void |
downloadUTF8(IRemoteFile source,
IFile destination,
IProgressMonitor monitor)
Get the remote file and save it locally. |
void |
downloadUTF8(IRemoteFile source,
String destination,
IProgressMonitor monitor)
Get the remote file and save it locally. |
IRemoteFile |
getCachedRemoteFile(String path)
Returns the cached remote file with the specified path. |
protected RemoteFileContext |
getContext(IRemoteFile parent)
|
protected RemoteFileContext |
getContext(IRemoteFile parent,
RemoteFileFilterString rffs)
|
protected RemoteFileFilterString |
getCurrentFilterString()
|
protected RemoteFileContext |
getDefaultContext()
|
protected RemoteFileContext |
getDefaultContextNoFilterString()
|
protected RemoteFileFilterString |
getFilterStringListRoots()
|
protected String |
getFirstParentFilterString(Object parent)
Called by parent when we defer getting a filter string until later, where we query it from the parent. |
String |
getHomeFolder()
|
String |
getLineSeparator()
Return as a string the line separator. |
InetAddress |
getLocalAddress()
Returns the address found by calling InetAddress.getLocalHost(). |
Object |
getObjectWithAbsoluteName(String key)
Return the object within the subsystem that corresponds to the specified unique ID. |
String |
getParentFolderName(IRemoteFile folderOrFile)
Given a folder or file, return its parent folder name, fully qualified |
IRemoteFileSubSystemConfiguration |
getParentRemoteFileSubSystemConfiguration()
Return parent subsystem factory, cast to a RemoteFileSubSystemConfiguration Assumes SubSystem.setSubSystemConfiguration(ISubSystemConfiguration) has already been called. |
String |
getPathSeparator()
Return in string format the character used to separate paths. |
char |
getPathSeparatorChar()
Return in char format the character used to separate paths. |
PropertyPage |
getPropertyPage(Composite parent)
Return the single property page to show in the tabbed notebook for the for SubSystem property of the parent Connection. |
IRemoteFile |
getRemoteFileObject(IRemoteFile parent,
String folderOrFileName)
Given a un-qualified file or folder name, and its parent folder object, return an IRemoteFile object for the file. |
SystemRemoteResourceSet |
getRemoteFileObjects(List folderOrFileNames)
Overrideable Override this method to provide optimized implementation Given a set of fully qualified file or folder names, return an ISystemResourceSet object for it. |
IRemoteSearchResult |
getRemoteSearchResultObject(String key)
Given a key, returns a search result object for it. |
String |
getSeparator()
Return in string format the character used to separate folders. |
char |
getSeparatorChar()
Return in character format the character used to separate folders. |
Object |
getTargetForFilter(ISystemFilterReference filterRef)
Returns the parent object associated with a filter reference. |
int |
getUnusedPort()
Returns -1 by default. |
void |
initializeSubSystem(IProgressMonitor monitor)
Called on each subsystem associated with a particular IConnectorService after it connects |
protected Object[] |
internalResolveFilterString(IProgressMonitor monitor,
Object parent,
String filterString)
Actually resolve a relative filter string. |
protected Object[] |
internalResolveFilterString(IProgressMonitor monitor,
String filterString)
Actually resolve an absolute filter string. |
Object[] |
internalResolveFilterStrings(IProgressMonitor monitor,
String[] filterStrings)
Resolves filter strings. |
protected Object[] |
internalResolveOneFilterString(IProgressMonitor monitor,
Object parent,
RemoteFileFilterString fs,
boolean sort)
Do one filter string relative resolve |
boolean |
isCaseSensitive()
Return true if file names are case-sensitive. |
boolean |
isPassiveCommunicationsListener()
This method determines if the communications listener is a passive or active listener. |
boolean |
isPrimarySubSystem()
|
IRemoteFile[] |
listFiles(IRemoteFile parent,
IProgressMonitor monitor)
Return a list of all remote files in the given parent folder on the remote system |
IRemoteFile[] |
listFiles(IRemoteFile parent,
String fileNameFilter,
IProgressMonitor monitor)
Return a list of remote files in the given folder, which match the given name pattern. |
IRemoteFile[] |
listFolders(IRemoteFile parent,
IProgressMonitor monitor)
Return a list of all remote folders in the given parent folder on the remote system |
IRemoteFile[] |
listFolders(IRemoteFile parent,
String fileNameFilter,
IProgressMonitor monitor)
Return a full list of remote folders in the given parent folder on the remote system. |
IRemoteFile[] |
listFoldersAndFiles(IRemoteFile parent,
IProgressMonitor monitor)
Return a list of all remote folders and files in the given folder. |
IRemoteFile[] |
listFoldersAndFiles(IRemoteFile parent,
String fileNameFilter,
IProgressMonitor monitor)
Return a list of remote folders and files in the given folder. |
IRemoteFile[] |
listRoots(IProgressMonitor monitor)
Return a list of roots/drives on the remote system |
protected void |
removeCachedRemoteFile(IRemoteFile file)
|
protected void |
removeCachedRemoteFile(String path)
|
static int |
runLocalCommand(String cmd,
Vector lines)
helper method to run an external command |
void |
setHomeFolder(String newHomeFolder)
|
protected void |
setListValues(int includeFilesOrFolders,
String nameFilter)
Method to set variables to affect the folder content subsetting. |
protected void |
setListValues(int includeFilesOrFolders,
String folderNameFilter,
String fileNameFilter)
Overloaded method to set variables to affect the folder content subsetting, when there is separate filters for both folder names and filter names. |
Object[] |
sortResolvedFilterStringObjects(Object[] children)
Sort the concatenated list of all objects returned by resolving one or more filter strings. |
String |
toString()
|
void |
uninitializeSubSystem(IProgressMonitor monitor)
Called on each subsystem associated with a particular IConnectorService after it disconnects |
void |
upload(File source,
IRemoteFile destination,
IProgressMonitor monitor)
Put the local copy of the remote file back to the remote location. |
void |
upload(File source,
IRemoteFile destination,
String encoding,
IProgressMonitor monitor)
Put the local copy of the remote file back to the remote location. |
void |
upload(IFile source,
IRemoteFile destination,
IProgressMonitor monitor)
Put the local copy of the remote file back to the remote location. |
void |
upload(IFile source,
IRemoteFile destination,
String encoding,
IProgressMonitor monitor)
Put the local copy of the remote file back to the remote location. |
void |
upload(String source,
IRemoteFile destination,
IProgressMonitor monitor)
Put the local copy of the remote file back to the remote location. |
void |
upload(String source,
String destination,
IProgressMonitor monitor)
Put the local copy of the remote file back to the remote location. |
void |
uploadUTF8(File source,
IRemoteFile destination,
IProgressMonitor monitor)
Put the local copy of the remote file back to the remote location. |
void |
uploadUTF8(IFile source,
IRemoteFile destination,
IProgressMonitor monitor)
Put the local copy of the remote file back to the remote location. |
void |
uploadUTF8(String source,
IRemoteFile destination,
IProgressMonitor monitor)
Put the local copy of the remote file back to the remote location. |
| Methods inherited from class org.eclipse.rse.core.model.RSEModelObject |
|---|
compareStrings, getDescription, isDirty, setDirty, setWasRestored, wasRestored |
| Methods inherited from class org.eclipse.rse.core.model.PropertySetContainer |
|---|
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem |
|---|
copy, copyBatch, createFile, createFolder, createFolders, delete, deleteBatch, download, getLanguageUtilityFactory, getParentFolder, getRemoteEncoding, getRemoteFileObject, listFiles, listFolders, listFoldersAndFiles, listRoots, move, rename, search, setLastModified, setReadOnly, upload, upload, upload |
| Methods inherited from interface org.eclipse.core.runtime.jobs.ISchedulingRule |
|---|
contains, isConflicting |
| Methods inherited from interface org.eclipse.rse.core.model.IRSEModelObject |
|---|
getDescription |
| Methods inherited from interface org.eclipse.rse.core.model.IPropertySetContainer |
|---|
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
| Methods inherited from interface org.eclipse.rse.core.persistance.IRSEPersistableContainer |
|---|
commit, isDirty, setDirty, setWasRestored, wasRestored |
| Field Detail |
protected static final String HOME_FOLDER_EDEFAULT
Home Folder' attribute.
getHomeFolder()public boolean osVarsSet
public boolean osWindows
public boolean osWindows95
public boolean osWindowsNT
public String osName
public String osCmdShell
protected IMatcher matcher
protected NamePatternMatcher folderNameMatcher
protected RemoteFileFilterString currFilterString
protected RemoteFileFilterString FILTERSTRING_LISTROOTS
protected RemoteFileContext DEFAULT_CONTEXT
protected RemoteFileContext DEFAULT_CONTEXT_NOFILTERSTRING
protected ArrayList _searchHistory
protected HashMap _cachedRemoteFiles
protected IProgressMonitor monitor
protected String homeFolder
| Constructor Detail |
public RemoteFileSubSystem(IHost host,
IConnectorService connectorService)
SubSystem.setSubSystemConfiguration(ISubSystemConfiguration).
| Method Detail |
public boolean isPrimarySubSystem()
isPrimarySubSystem in interface ISubSystemisPrimarySubSystem in class SubSystemIConnectorServicepublic IRemoteFileSubSystemConfiguration getParentRemoteFileSubSystemConfiguration()
SubSystem.setSubSystemConfiguration(ISubSystemConfiguration) has already been called.
getParentRemoteFileSubSystemConfiguration in interface IRemoteFileSubSystempublic boolean isCaseSensitive()
isCaseSensitive in interface IRemoteFileSubSystempublic boolean checkForCancel()
protected RemoteFileFilterString getCurrentFilterString()
protected RemoteFileFilterString getFilterStringListRoots()
protected RemoteFileContext getDefaultContext()
protected RemoteFileContext getDefaultContextNoFilterString()
protected RemoteFileContext getContext(IRemoteFile parent)
protected RemoteFileContext getContext(IRemoteFile parent,
RemoteFileFilterString rffs)
public String getSeparator()
getParentRemoteFileSubSystemConfiguration().getSeparator()
getSeparator in interface IRemoteFileSubSystempublic char getSeparatorChar()
getParentRemoteFileSubSystemConfiguration().getSeparatorChar()
getSeparatorChar in interface IRemoteFileSubSystempublic String getPathSeparator()
getParentRemoteFileSubSystemConfiguration().getPathSeparator()
getPathSeparator in interface IRemoteFileSubSystempublic char getPathSeparatorChar()
getParentRemoteFileSubSystemConfiguration().getPathSeparatorChar()
getPathSeparatorChar in interface IRemoteFileSubSystempublic String getLineSeparator()
getParentRemoteFileSubSystemConfiguration().getLineSeparator()
getLineSeparator in interface IRemoteFileSubSystempublic PropertyPage getPropertyPage(Composite parent)
getPropertyPage in class SubSystem
public boolean doesFilterMatch(ISystemFilter filter,
String remoteObjectAbsoluteName)
ISubSystem
doesFilterMatch in interface ISubSystemdoesFilterMatch in class SubSystemSubSystem.doesFilterMatch(org.eclipse.rse.core.filters.ISystemFilter, java.lang.String)
public boolean doesFilterStringMatch(String filterString,
String remoteObjectAbsoluteName,
boolean caseSensitive)
Subclasses need to override this. If in doubt, return true.
There is a hack here if you want to tell us the absolute name is that of a folder: append " -folder" to the name!
doesFilterStringMatch in interface ISubSystemdoesFilterStringMatch in class SubSystem
public boolean doesFilterStringListContentsOf(ISystemFilterString filterString,
String remoteObjectAbsoluteName)
This should only return true if the filter string directly lists the contents of the given object, versus indirectly.
Subclasses should override this.
doesFilterStringListContentsOf in interface ISubSystemdoesFilterStringListContentsOf in class SubSystem
public Object[] internalResolveFilterStrings(IProgressMonitor monitor,
String[] filterStrings)
throws InvocationTargetException,
InterruptedException
#internalResolveFilterString(IProgressMontior, String).
If the result for each filter string is a SystemMessage (e.g. an error), then the messages are returned.
If the result for any filter string is not a message (i.e. an array of children), then the children are returned,
and the messages are not. This avoids mixing chuldren as a result of successful resolution of a filter string with
messages that might result for other filter strings.
So the returned results are always the successful results, or messages (never a mix of the two).
internalResolveFilterStrings in class SubSystemmonitor - the progress monitor we are running underfilterStrings - array of filter patterns for objects to return.
InvocationTargetException
InterruptedExceptionSubSystem.internalResolveFilterStrings(org.eclipse.core.runtime.IProgressMonitor, java.lang.String[])
protected void addResolvedFilterStringObjects(Vector allChildrenSoFar,
Object[] childrenForThisFilterString,
String[] allFilterStrings,
int currFilterStringIndex)
Can be used to filter out redundant entries in the concatenated list, if this is desired.
addResolvedFilterStringObjects in class SubSystem
protected Object[] internalResolveFilterString(IProgressMonitor monitor,
String filterString)
throws InvocationTargetException,
InterruptedException
internalResolveFilterString in class SubSystemInvocationTargetException
InterruptedExceptionSubSystem.internalResolveFilterString(IProgressMonitor,String)public Object[] sortResolvedFilterStringObjects(Object[] children)
sortResolvedFilterStringObjects in class SubSystemprotected String getFirstParentFilterString(Object parent)
getFirstParentFilterString in class SubSystem
protected Object[] internalResolveFilterString(IProgressMonitor monitor,
Object parent,
String filterString)
throws InvocationTargetException,
InterruptedException
As per IRunnableWithProgress rules:
internalResolveFilterString in class SubSystemInvocationTargetException
InterruptedException
protected Object[] internalResolveOneFilterString(IProgressMonitor monitor,
Object parent,
RemoteFileFilterString fs,
boolean sort)
throws InvocationTargetException,
InterruptedException,
SystemMessageException
InvocationTargetException
InterruptedException
SystemMessageException
public IRemoteFile[] listRoots(IProgressMonitor monitor)
throws InterruptedException
listRoots in interface IRemoteFileSubSystemInterruptedException
public IRemoteFile[] listFolders(IRemoteFile parent,
IProgressMonitor monitor)
throws SystemMessageException
listFolders in interface IRemoteFileSubSystemparent - The parent folder to list folders inmonitor - the progress monitor
SystemMessageException
public IRemoteFile[] listFolders(IRemoteFile parent,
String fileNameFilter,
IProgressMonitor monitor)
throws SystemMessageException
listFolders in interface IRemoteFileSubSystemparent - The parent folder to list folders infileNameFilter - The name pattern for subsetting the file list when this folder is subsequently expandedmonitor - the progress monitor
SystemMessageException
public IRemoteFile[] listFiles(IRemoteFile parent,
IProgressMonitor monitor)
throws SystemMessageException
listFiles in interface IRemoteFileSubSystemparent - The parent folder to list files inmonitor - the progress monitor
SystemMessageException
public IRemoteFile[] listFiles(IRemoteFile parent,
String fileNameFilter,
IProgressMonitor monitor)
throws SystemMessageException
listFiles in interface IRemoteFileSubSystemparent - The parent folder to list files infileNameFilter - The name pattern to subset the list by, or null to return all files.monitor - the progress monitor
SystemMessageException
public IRemoteFile[] listFoldersAndFiles(IRemoteFile parent,
IProgressMonitor monitor)
throws SystemMessageException
listFoldersAndFiles in interface IRemoteFileSubSystemparent - The parent folder to list folders and files inmonitor - the progress monitor
SystemMessageException
public IRemoteFile[] listFoldersAndFiles(IRemoteFile parent,
String fileNameFilter,
IProgressMonitor monitor)
throws SystemMessageException
The files part of the list is subsetted by the given file name filter. It can be null for no subsetting.
listFoldersAndFiles in interface IRemoteFileSubSystemparent - The parent folder to list folders and files infileNameFilter - The name pattern to subset the file list by, or null to return all files.monitor - the progress monitor
SystemMessageExceptionpublic String getParentFolderName(IRemoteFile folderOrFile)
getParentFolderName in interface IRemoteFileSubSystemfolderOrFile - folder or file to return parent of.
public IRemoteSearchResult getRemoteSearchResultObject(String key)
throws SystemMessageException
IRemoteFileSubSystem
getRemoteSearchResultObject in interface IRemoteFileSubSystemkey - the key that uniquely identifies a search result.
SystemMessageExceptionIRemoteFileSubSystem.getRemoteSearchResultObject(java.lang.String)
public SystemRemoteResourceSet getRemoteFileObjects(List folderOrFileNames)
throws SystemMessageException
getRemoteFileObjects in interface IRemoteFileSubSystemfolderOrFileNames - Fully qualified folder or file names
SystemMessageException
public IRemoteFile getRemoteFileObject(IRemoteFile parent,
String folderOrFileName)
throws SystemMessageException
getRemoteFileObject in interface IRemoteFileSubSystemparent - Folder containing the folder or filefolderOrFileName - Un-qualified folder or file name
SystemMessageException
public Object getObjectWithAbsoluteName(String key)
throws Exception
getObjectWithAbsoluteName in interface IRemoteObjectResolvergetObjectWithAbsoluteName in class SubSystemException
protected void setListValues(int includeFilesOrFolders,
String nameFilter)
includeFilesOrFolders - A constant from IFileConstantsnameFilter - The pattern to filter the file or folder names by. Can be null to include all.
protected void setListValues(int includeFilesOrFolders,
String folderNameFilter,
String fileNameFilter)
includeFilesOrFolders - A constant from IFileConstantsfolderNameFilter - The pattern to filter the folder names by. Can be null to include all folders
protected boolean accept(String name,
boolean isFile)
setListValues(int, String) or setListValues(int, String, String)
name - The file or folder name to testisFile - true if this is a file name, false if it is a folder name.
public void download(IRemoteFile source,
String destination,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
download in interface IRemoteFileSubSystemsource - remote file that represents the file to be obtaineddestination - the absolute path of the local filemonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void downloadUTF8(IRemoteFile source,
String destination,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
downloadUTF8 in interface IRemoteFileSubSystemsource - remote file that represents the file to be obtaineddestination - the absolute path of the local filemonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void download(IRemoteFile source,
File destination,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
download in interface IRemoteFileSubSystemsource - remote file that represents the file to be obtaineddestination - the local filemonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void download(IRemoteFile source,
File destination,
String encoding,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
download in interface IRemoteFileSubSystemsource - remote file that represents the file to be obtaineddestination - the local fileencoding - the encoding of the local filemonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void downloadUTF8(IRemoteFile source,
File destination,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
downloadUTF8 in interface IRemoteFileSubSystemsource - remote file that represents the file to be obtaineddestination - the local filemonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void download(IRemoteFile source,
IFile destination,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
download in interface IRemoteFileSubSystemsource - remote file that represents the file to be obtaineddestination - the local filemonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void download(IRemoteFile source,
IFile destination,
String encoding,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
download in interface IRemoteFileSubSystemsource - remote file that represents the file to be obtaineddestination - the local fileencoding - the encoding of the local filemonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void downloadUTF8(IRemoteFile source,
IFile destination,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
downloadUTF8 in interface IRemoteFileSubSystemsource - remote file that represents the file to be obtaineddestination - the local filemonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void upload(String source,
IRemoteFile destination,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
upload in interface IRemoteFileSubSystemsource - the absolute path of the local copydestination - remote file that represents the file on the servermonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void upload(String source,
String destination,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
upload in interface IRemoteFileSubSystemsource - the absolute path of the local copydestination - remote file that represents the file on the servermonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void uploadUTF8(String source,
IRemoteFile destination,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
uploadUTF8 in interface IRemoteFileSubSystemsource - the absolute path of the local copydestination - remote file that represents the file on the servermonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void upload(File source,
IRemoteFile destination,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
upload in interface IRemoteFileSubSystemsource - the local copydestination - remote file that represents the file on the servermonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void upload(File source,
IRemoteFile destination,
String encoding,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
upload in interface IRemoteFileSubSystemsource - the local copydestination - remote file that represents the file on the serverencoding - the encoding of the local copymonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void uploadUTF8(File source,
IRemoteFile destination,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
uploadUTF8 in interface IRemoteFileSubSystemsource - the local copydestination - remote file that represents the file on the servermonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void upload(IFile source,
IRemoteFile destination,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
upload in interface IRemoteFileSubSystemsource - the local copydestination - remote file that represents the file on the servermonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void upload(IFile source,
IRemoteFile destination,
String encoding,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
upload in interface IRemoteFileSubSystemsource - the local copydestination - remote file that represents the file on the serverencoding - the encoding of the local copymonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void uploadUTF8(IFile source,
IRemoteFile destination,
IProgressMonitor monitor)
throws RemoteFileSecurityException,
RemoteFileIOException
uploadUTF8 in interface IRemoteFileSubSystemsource - the local copydestination - remote file that represents the file on the servermonitor - the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public static int runLocalCommand(String cmd,
Vector lines)
throws Exception
Exceptionpublic String getHomeFolder()
getHomeFolder in interface IRemoteFileSubSystempublic void setHomeFolder(String newHomeFolder)
setHomeFolder in interface IRemoteFileSubSystemnewHomeFolder - The new value of the HomeFolder attributepublic void initializeSubSystem(IProgressMonitor monitor)
ISubSystem
initializeSubSystem in interface ISubSysteminitializeSubSystem in class SubSystempublic void uninitializeSubSystem(IProgressMonitor monitor)
ISubSystem
uninitializeSubSystem in interface ISubSystem
public void cacheRemoteFile(IRemoteFile file,
String path)
file - the filepublic void cacheRemoteFile(IRemoteFile file)
file - the filepublic IRemoteFile getCachedRemoteFile(String path)
path -
protected void removeCachedRemoteFile(IRemoteFile file)
protected void removeCachedRemoteFile(String path)
public void communicationsStateChange(CommunicationsEvent e)
ICommunicationsListener
communicationsStateChange in interface ICommunicationsListenerpublic boolean isPassiveCommunicationsListener()
ICommunicationsListener
isPassiveCommunicationsListener in interface ICommunicationsListenerICommunicationsListener.isPassiveCommunicationsListener()public String toString()
public int getUnusedPort()
getUnusedPort in interface IRemoteFileSubSystemIRemoteFileSubSystem.getUnusedPort()public InetAddress getLocalAddress()
InetAddress.getLocalHost(). If that
call returns the local loopback address, it returns null.
Subclasses should reimplement to handle cases where systems have multiple IP addresses due
to multiple network cards or VPN. This method should return an address
that is usable from the remote system to connect back to the local system.
getLocalAddress in interface IRemoteFileSubSystemnull if
no address can be resolved.IRemoteFileSubSystem.getLocalAddress()public Object getTargetForFilter(ISystemFilterReference filterRef)
ISubSystem
getTargetForFilter in interface ISubSystemgetTargetForFilter in class SubSystempublic void cancelSearch(IHostSearchResultConfiguration searchConfig)
IRemoteFileSubSystem
cancelSearch in interface IRemoteFileSubSystemsearchConfig - a search configuration.
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||