Package org.webswing.server.base
Class AbstractUrlHandler
- java.lang.Object
-
- org.webswing.server.base.AbstractUrlHandler
-
- All Implemented Interfaces:
UrlHandler,SecurableService
- Direct Known Subclasses:
FileTransferHandlerImpl,LoginHandlerImpl,LogoutHandlerImpl,PrimaryUrlHandler,ResourceHandlerImpl,RestUrlHandlerImpl
public abstract class AbstractUrlHandler extends Object implements UrlHandler, SecurableService
-
-
Constructor Summary
Constructors Constructor Description AbstractUrlHandler(UrlHandler parent)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcheckMasterPermission(org.webswing.server.services.security.api.WebswingAction action)voidcheckPermission(org.webswing.server.services.security.api.WebswingAction action)voidcheckPermissionLocalOrMaster(org.webswing.server.services.security.api.WebswingAction a)voiddestroy()StringgetFullPathMapping()longgetLastModified(javax.servlet.http.HttpServletRequest req)org.webswing.server.services.security.api.AbstractWebswingUsergetMasterUser()protected abstract StringgetPath()StringgetPathInfo(javax.servlet.http.HttpServletRequest req)StringgetPathMapping()UrlHandlergetRootHandler()StringgetSecuredPath()SecuredPathHandlergetSecurityProvider()javax.servlet.ServletContextgetServletContext()org.webswing.server.services.security.api.AbstractWebswingUsergetUser()voidinit()booleanisSubPath(String subpath, String path)voidregisterChildUrlHandler(UrlHandler handler)voidregisterFirstChildUrlHandler(UrlHandler handler)voidremoveChildUrlHandler(UrlHandler handler)ObjectsecureServe(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)booleanserve(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)static StringtoPath(String path)
-
-
-
Constructor Detail
-
AbstractUrlHandler
public AbstractUrlHandler(UrlHandler parent)
-
-
Method Detail
-
init
public void init()
- Specified by:
initin interfaceUrlHandler
-
destroy
public void destroy()
- Specified by:
destroyin interfaceUrlHandler
-
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- Throws:
org.webswing.server.model.exception.WsException
-
secureServe
public Object secureServe(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws org.webswing.server.model.exception.WsException
- Specified by:
secureServein interfaceSecurableService- Throws:
org.webswing.server.model.exception.WsException
-
getFullPathMapping
public String getFullPathMapping()
- Specified by:
getFullPathMappingin interfaceUrlHandler
-
getPathInfo
public String getPathInfo(javax.servlet.http.HttpServletRequest req)
-
getPath
protected abstract String getPath()
-
getPathMapping
public String getPathMapping()
- Specified by:
getPathMappingin interfaceUrlHandler
-
registerFirstChildUrlHandler
public void registerFirstChildUrlHandler(UrlHandler handler)
- Specified by:
registerFirstChildUrlHandlerin interfaceUrlHandler
-
registerChildUrlHandler
public void registerChildUrlHandler(UrlHandler handler)
- Specified by:
registerChildUrlHandlerin interfaceUrlHandler
-
removeChildUrlHandler
public void removeChildUrlHandler(UrlHandler handler)
- Specified by:
removeChildUrlHandlerin interfaceUrlHandler
-
getServletContext
public javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContextin interfaceUrlHandler
-
getSecuredPath
public String getSecuredPath()
- Specified by:
getSecuredPathin interfaceUrlHandler
-
getSecurityProvider
public SecuredPathHandler getSecurityProvider()
- Specified by:
getSecurityProviderin interfaceUrlHandler
-
getLastModified
public long getLastModified(javax.servlet.http.HttpServletRequest req)
- Specified by:
getLastModifiedin interfaceUrlHandler
-
getUser
public org.webswing.server.services.security.api.AbstractWebswingUser getUser()
- Specified by:
getUserin interfaceUrlHandler
-
getMasterUser
public org.webswing.server.services.security.api.AbstractWebswingUser getMasterUser()
-
getRootHandler
public UrlHandler getRootHandler()
- Specified by:
getRootHandlerin interfaceUrlHandler
-
checkPermission
public void checkPermission(org.webswing.server.services.security.api.WebswingAction action) throws org.webswing.server.model.exception.WsException- Specified by:
checkPermissionin interfaceUrlHandler- Throws:
org.webswing.server.model.exception.WsException
-
checkMasterPermission
public void checkMasterPermission(org.webswing.server.services.security.api.WebswingAction action) throws org.webswing.server.model.exception.WsException- Specified by:
checkMasterPermissionin interfaceUrlHandler- Throws:
org.webswing.server.model.exception.WsException
-
checkPermissionLocalOrMaster
public void checkPermissionLocalOrMaster(org.webswing.server.services.security.api.WebswingAction a) throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
-