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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResourcePaths(String path) Always returnsnullas resources are only accessible through theSlingDavExServlet.booleanhandleSecurity(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 returnsnullas resources are only accessible through theSlingDavExServlet.- Overrides:
getResourcePathsin 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 returnsfalseand sends a 503/SERVICE UNAVAILABLE status back to the client.- Overrides:
handleSecurityin classorg.osgi.service.http.context.ServletContextHelper- Throws:
IOException
-