public class ServiceAuthenticationHttpContext extends DefaultHttpContext
Constructor and Description |
---|
ServiceAuthenticationHttpContext(org.osgi.framework.BundleContext bundleContext,
String authMode) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
handleSecurity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method always returns true and does not handle security
|
static boolean |
shouldBeUsed(String authMode)
Check whether for the given authmode an instance of this context should be used (i.e.
|
getMimeType, getResource
public ServiceAuthenticationHttpContext(org.osgi.framework.BundleContext bundleContext, String authMode)
public boolean handleSecurity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
handleSecurity
in interface org.osgi.service.http.HttpContext
handleSecurity
in class DefaultHttpContext
IOException
public void close()
public static boolean shouldBeUsed(String authMode)
authMode
- authmode to checkCopyright © 2018. All rights reserved.