Class ResourceHandlerImpl
- java.lang.Object
-
- org.webswing.server.base.AbstractUrlHandler
-
- org.webswing.server.services.resources.ResourceHandlerImpl
-
- All Implemented Interfaces:
UrlHandler,ResourceHandler,SecurableService
public class ResourceHandlerImpl extends AbstractUrlHandler implements ResourceHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceHandlerImpl.ErrorResultstatic interfaceResourceHandlerImpl.LookupResultstatic classResourceHandlerImpl.RedirectResultstatic classResourceHandlerImpl.ResourceUrl
-
Constructor Summary
Constructors Constructor Description ResourceHandlerImpl(UrlHandler parent, org.webswing.server.services.security.api.SecurityContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLastModified(javax.servlet.http.HttpServletRequest req)protected StringgetMimeType(String path)protected StringgetPath()protected booleanisForbidden(String path)protected ResourceHandlerImpl.LookupResultlookup(javax.servlet.http.HttpServletRequest req)protected ResourceHandlerImpl.LookupResultlookupNoCache(javax.servlet.http.HttpServletRequest req)protected ResourceHandlerImpl.LookupResultlookupNoCache(javax.servlet.http.HttpServletRequest req, String path)booleanserve(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)-
Methods inherited from class org.webswing.server.base.AbstractUrlHandler
checkMasterPermission, checkPermission, checkPermissionLocalOrMaster, destroy, getFullPathMapping, getMasterUser, getPathInfo, getPathMapping, getRootHandler, getSecuredPath, getSecurityProvider, getServletContext, getUser, init, 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, destroy, getFullPathMapping, getPathMapping, getRootHandler, getSecuredPath, getSecurityProvider, getServletContext, getUser, init, registerChildUrlHandler, registerFirstChildUrlHandler, removeChildUrlHandler
-
-
-
-
Constructor Detail
-
ResourceHandlerImpl
public ResourceHandlerImpl(UrlHandler parent, org.webswing.server.services.security.api.SecurityContext context)
-
-
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
-
getLastModified
public long getLastModified(javax.servlet.http.HttpServletRequest req)
- Specified by:
getLastModifiedin interfaceUrlHandler- Overrides:
getLastModifiedin classAbstractUrlHandler
-
lookup
protected ResourceHandlerImpl.LookupResult lookup(javax.servlet.http.HttpServletRequest req)
-
lookupNoCache
protected ResourceHandlerImpl.LookupResult lookupNoCache(javax.servlet.http.HttpServletRequest req)
-
lookupNoCache
protected ResourceHandlerImpl.LookupResult lookupNoCache(javax.servlet.http.HttpServletRequest req, String path)
-
isForbidden
protected boolean isForbidden(String path)
-
-