public abstract class AbstractUrlHandler extends Object implements UrlHandler, SecurableService
| Constructor and Description |
|---|
AbstractUrlHandler(UrlHandler parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkMasterPermission(WebswingAction action) |
void |
checkPermission(WebswingAction action) |
void |
checkPermissionLocalOrMaster(WebswingAction a) |
void |
destroy() |
String |
getFullPathMapping() |
long |
getLastModified(javax.servlet.http.HttpServletRequest req) |
AbstractWebswingUser |
getMasterUser() |
protected abstract String |
getPath() |
String |
getPathInfo(javax.servlet.http.HttpServletRequest req) |
String |
getPathMapping() |
UrlHandler |
getRootHandler() |
String |
getSecuredPath() |
SecuredPathHandler |
getSecurityProvider() |
javax.servlet.ServletContext |
getServletContext() |
AbstractWebswingUser |
getUser() |
void |
init() |
boolean |
isSubPath(String subpath,
String path) |
void |
registerChildUrlHandler(UrlHandler handler) |
void |
registerFirstChildUrlHandler(UrlHandler handler) |
void |
removeChildUrlHandler(UrlHandler handler) |
Object |
secureServe(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
boolean |
serve(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected boolean |
serveRestMethod(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
static String |
toPath(String path) |
public AbstractUrlHandler(UrlHandler parent)
public void init()
init in interface UrlHandlerpublic void destroy()
destroy in interface UrlHandlerpublic boolean serve(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws org.webswing.server.model.exception.WsException
serve in interface UrlHandlerorg.webswing.server.model.exception.WsExceptionprotected boolean serveRestMethod(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsExceptionpublic Object secureServe(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws org.webswing.server.model.exception.WsException
secureServe in interface SecurableServiceorg.webswing.server.model.exception.WsExceptionpublic String getFullPathMapping()
getFullPathMapping in interface UrlHandlerpublic String getPathInfo(javax.servlet.http.HttpServletRequest req)
protected abstract String getPath()
public String getPathMapping()
getPathMapping in interface UrlHandlerpublic void registerFirstChildUrlHandler(UrlHandler handler)
registerFirstChildUrlHandler in interface UrlHandlerpublic void registerChildUrlHandler(UrlHandler handler)
registerChildUrlHandler in interface UrlHandlerpublic void removeChildUrlHandler(UrlHandler handler)
removeChildUrlHandler in interface UrlHandlerpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface UrlHandlerpublic String getSecuredPath()
getSecuredPath in interface UrlHandlerpublic SecuredPathHandler getSecurityProvider()
getSecurityProvider in interface UrlHandlerpublic long getLastModified(javax.servlet.http.HttpServletRequest req)
getLastModified in interface UrlHandlerpublic AbstractWebswingUser getUser()
getUser in interface UrlHandlerpublic AbstractWebswingUser getMasterUser()
public UrlHandler getRootHandler()
getRootHandler in interface UrlHandlerpublic void checkPermission(WebswingAction action) throws org.webswing.server.model.exception.WsException
checkPermission in interface UrlHandlerorg.webswing.server.model.exception.WsExceptionpublic void checkMasterPermission(WebswingAction action) throws org.webswing.server.model.exception.WsException
checkMasterPermission in interface UrlHandlerorg.webswing.server.model.exception.WsExceptionpublic void checkPermissionLocalOrMaster(WebswingAction a) throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsExceptionCopyright © 2017. All rights reserved.