Package cz.pumpitup.pn5.remote.samba
Class SambaApplicationSupport
- java.lang.Object
-
- cz.pumpitup.pn5.core.webdriver.ApplicationSupport<SambaApplication>
-
- cz.pumpitup.pn5.remote.samba.SambaApplicationSupport
-
- All Implemented Interfaces:
CoreAccessor,EndpointDsl,SessionManager<SambaApplication>,SambaApplication,SambaDsl
public class SambaApplicationSupport extends ApplicationSupport<SambaApplication> implements SambaApplication
-
-
Field Summary
Fields Modifier and Type Field Description protected SambaAgentSupportagent-
Fields inherited from class cz.pumpitup.pn5.core.webdriver.ApplicationSupport
capabilities, core, driverUrl, manualSessionManagement
-
-
Constructor Summary
Constructors Constructor Description SambaApplicationSupport(CoreAccessor core, String driverUrl, Map<String,Object> capabilities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteDriverAgentagent()protected voidcloseSessionImplementation()SambaWriteResponsecreateFolder(String folder)SambaResponsedeleteFile(String file)SambaResponsedeleteFolder(String folder, boolean recursive)SambaListResponselistFiles(String folder)SambaWriteResponsemoveFile(String oldFile, String newFile)SambaAgentSupportnewAgent()SambaReadResponsereadFile(String file)protected voidstartSessionImplementation()SambaWriteResponsewriteFile(File file, String fileName)SambaWriteResponsewriteFile(InputStream fileStream, String fileName)-
Methods inherited from class cz.pumpitup.pn5.core.webdriver.ApplicationSupport
attemptClosingSession, checkSessionStarted, closeSession, closeSessionAfterTest, getConfig, getGlobalStore, getLocalStore, getLogger, getReporter, startSession
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cz.pumpitup.pn5.core.CoreAccessor
getConfig, getGlobalStore, getLocalStore, getLogger, getReporter
-
Methods inherited from interface cz.pumpitup.pn5.core.SessionManager
closeSession, startSession
-
-
-
-
Field Detail
-
agent
protected SambaAgentSupport agent
-
-
Constructor Detail
-
SambaApplicationSupport
public SambaApplicationSupport(CoreAccessor core, String driverUrl, Map<String,Object> capabilities)
-
-
Method Detail
-
startSessionImplementation
protected void startSessionImplementation()
- Specified by:
startSessionImplementationin classApplicationSupport<SambaApplication>
-
newAgent
public SambaAgentSupport newAgent()
- Specified by:
newAgentin classApplicationSupport<SambaApplication>
-
agent
public RemoteDriverAgent agent()
- Specified by:
agentin classApplicationSupport<SambaApplication>
-
closeSessionImplementation
protected void closeSessionImplementation()
- Specified by:
closeSessionImplementationin classApplicationSupport<SambaApplication>
-
listFiles
public SambaListResponse listFiles(String folder)
- Specified by:
listFilesin interfaceSambaApplication
-
createFolder
public SambaWriteResponse createFolder(String folder)
- Specified by:
createFolderin interfaceSambaApplication
-
deleteFolder
public SambaResponse deleteFolder(String folder, boolean recursive)
- Specified by:
deleteFolderin interfaceSambaApplication
-
writeFile
public SambaWriteResponse writeFile(File file, String fileName)
- Specified by:
writeFilein interfaceSambaApplication
-
writeFile
public SambaWriteResponse writeFile(InputStream fileStream, String fileName)
- Specified by:
writeFilein interfaceSambaApplication
-
readFile
public SambaReadResponse readFile(String file)
- Specified by:
readFilein interfaceSambaApplication
-
moveFile
public SambaWriteResponse moveFile(String oldFile, String newFile)
- Specified by:
moveFilein interfaceSambaApplication
-
deleteFile
public SambaResponse deleteFile(String file)
- Specified by:
deleteFilein interfaceSambaApplication
-
-