Class AbstractUrlHandler

    • Constructor Detail

      • AbstractUrlHandler

        public AbstractUrlHandler​(UrlHandler parent)
    • Method Detail

      • init

        public void init()
        Specified by:
        init in interface UrlHandler
      • serve

        public boolean serve​(javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse res)
                      throws org.webswing.server.model.exception.WsException
        Specified by:
        serve in interface UrlHandler
        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:
        secureServe in interface SecurableService
        Throws:
        org.webswing.server.model.exception.WsException
      • getPathInfo

        public String getPathInfo​(javax.servlet.http.HttpServletRequest req)
      • getPath

        protected abstract String getPath()
      • isSubPath

        public boolean isSubPath​(String subpath,
                                 String path)
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
        Specified by:
        getServletContext in interface UrlHandler
      • getLastModified

        public long getLastModified​(javax.servlet.http.HttpServletRequest req)
        Specified by:
        getLastModified in interface UrlHandler
      • getUser

        public org.webswing.server.services.security.api.AbstractWebswingUser getUser()
        Specified by:
        getUser in interface UrlHandler
      • getMasterUser

        public org.webswing.server.services.security.api.AbstractWebswingUser getMasterUser()
      • checkPermission

        public void checkPermission​(org.webswing.server.services.security.api.WebswingAction action)
                             throws org.webswing.server.model.exception.WsException
        Specified by:
        checkPermission in interface UrlHandler
        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:
        checkMasterPermission in interface UrlHandler
        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