Class AuthHttpContext
java.lang.Object
org.osgi.service.http.context.ServletContextHelper
org.apache.sling.jcr.davex.impl.servlets.AuthHttpContext
public class AuthHttpContext
extends org.osgi.service.http.context.ServletContextHelper
-
Field Summary
Fields inherited from class org.osgi.service.http.context.ServletContextHelper
AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetResourcePaths
(String path) Always returnsnull
as resources are only accessible through theSlingDavExServlet
.boolean
handleSecurity
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Tries to authenticate the request using theSlingAuthenticator
.Methods inherited from class org.osgi.service.http.context.ServletContextHelper
finishSecurity, getMimeType, getRealPath, getResource
-
Constructor Details
-
AuthHttpContext
public AuthHttpContext()
-
-
Method Details
-
getResourcePaths
Always returnsnull
as resources are only accessible through theSlingDavExServlet
.- Overrides:
getResourcePaths
in classorg.osgi.service.http.context.ServletContextHelper
-
handleSecurity
public boolean handleSecurity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException Tries to authenticate the request using theSlingAuthenticator
. If the authenticator or the Repository is missing this method returnsfalse
and sends a 503/SERVICE UNAVAILABLE status back to the client.- Overrides:
handleSecurity
in classorg.osgi.service.http.context.ServletContextHelper
- Throws:
IOException
-