private class WebPublishingService.FileSystemHTTPContext extends Object implements org.osgi.service.http.HttpContext
Modifier | Constructor and Description |
---|---|
private |
FileSystemHTTPContext(String basePath) |
Modifier and Type | Method and Description |
---|---|
String |
getMimeType(String name) |
URL |
getResource(String name) |
boolean |
handleSecurity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
private FileSystemHTTPContext(String basePath)
basePath
- An absolute path to a directory.public URL getResource(String name)
getResource
in interface org.osgi.service.http.HttpContext
public String getMimeType(String name)
getMimeType
in interface org.osgi.service.http.HttpContext
public boolean handleSecurity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
handleSecurity
in interface org.osgi.service.http.HttpContext
IOException
Copyright © 2018. All Rights Reserved.