Class FileTransferHandlerImpl
- java.lang.Object
-
- org.webswing.server.base.AbstractUrlHandler
-
- org.webswing.server.services.files.FileTransferHandlerImpl
-
- All Implemented Interfaces:
UrlHandler,FileTransferHandler,SecurableService
public class FileTransferHandlerImpl extends AbstractUrlHandler implements FileTransferHandler
-
-
Constructor Summary
Constructors Constructor Description FileTransferHandlerImpl(SwingInstanceManager parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()protected StringgetPath()voidinit()booleanregisterFile(File file, String id, long validForTime, TimeUnit timeUnit, String validForUser, String instanceId, boolean temp, boolean waitForFile, String overwriteDetails)booleanserve(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)-
Methods inherited from class org.webswing.server.base.AbstractUrlHandler
checkMasterPermission, checkPermission, checkPermissionLocalOrMaster, getFullPathMapping, getLastModified, getMasterUser, getPathInfo, getPathMapping, getRootHandler, getSecuredPath, getSecurityProvider, getServletContext, getUser, isSubPath, registerChildUrlHandler, registerFirstChildUrlHandler, removeChildUrlHandler, secureServe, toPath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.webswing.server.base.UrlHandler
checkMasterPermission, checkPermission, getFullPathMapping, getLastModified, getPathMapping, getRootHandler, getSecuredPath, getSecurityProvider, getServletContext, getUser, registerChildUrlHandler, registerFirstChildUrlHandler, removeChildUrlHandler
-
-
-
-
Constructor Detail
-
FileTransferHandlerImpl
public FileTransferHandlerImpl(SwingInstanceManager parent)
-
-
Method Detail
-
getPath
protected String getPath()
- Specified by:
getPathin classAbstractUrlHandler
-
serve
public boolean serve(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws org.webswing.server.model.exception.WsException- Specified by:
servein interfaceUrlHandler- Overrides:
servein classAbstractUrlHandler- Throws:
org.webswing.server.model.exception.WsException
-
destroy
public void destroy()
- Specified by:
destroyin interfaceUrlHandler- Overrides:
destroyin classAbstractUrlHandler
-
init
public void init()
- Specified by:
initin interfaceUrlHandler- Overrides:
initin classAbstractUrlHandler
-
registerFile
public boolean registerFile(File file, String id, long validForTime, TimeUnit timeUnit, String validForUser, String instanceId, boolean temp, boolean waitForFile, String overwriteDetails)
- Specified by:
registerFilein interfaceFileTransferHandler
-
-