@Service(value=org.osgi.service.http.context.ServletContextHelper.class)
@Property(name="service.description",value="Sling JcrRemoting Servlet") @Property(name="service.vendor",value="The Apache Software Foundation") @Property(name="osgi.http.whiteboard.context.name",value="DavExAuthHttpContext") @Property(name="osgi.http.whiteboard.context.path",value="/") @Property(name="service.ranking",intValue=5)
public class AuthHttpContext
extends org.osgi.service.http.context.ServletContextHelper
Constructor and Description |
---|
AuthHttpContext() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getResourcePaths(String path)
Always returns
null as resources are only accessible through
the SlingDavExServlet . |
boolean |
handleSecurity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Tries to authenticate the request using the
SlingAuthenticator . |
public Set<String> getResourcePaths(String path)
null
as resources are only accessible through
the SlingDavExServlet
.getResourcePaths
in class org.osgi.service.http.context.ServletContextHelper
public boolean handleSecurity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
SlingAuthenticator
. If the authenticator or the Repository
is missing this method returns false
and sends a 503/SERVICE
UNAVAILABLE status back to the client.handleSecurity
in class org.osgi.service.http.context.ServletContextHelper
IOException
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.