de.deepamehta.core.impl
Class WebPublishingService.DirectoryHTTPContext

Show UML class diagram
java.lang.Object
  extended by de.deepamehta.core.impl.WebPublishingService.DirectoryHTTPContext
All Implemented Interfaces:
HttpContext
Enclosing class:
WebPublishingService

private class WebPublishingService.DirectoryHTTPContext
extends Object
implements HttpContext


Field Summary
private  String directoryPath
           
private  SecurityHandler securityHandler
           
 
Fields inherited from interface org.osgi.service.http.HttpContext
AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER
 
Constructor Summary
private WebPublishingService.DirectoryHTTPContext(String directoryPath, SecurityHandler securityHandler)
           
 
Method Summary
 String getMimeType(String name)
           
 URL getResource(String name)
           
 boolean handleSecurity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directoryPath

private String directoryPath

securityHandler

private SecurityHandler securityHandler
Constructor Detail

WebPublishingService.DirectoryHTTPContext

private WebPublishingService.DirectoryHTTPContext(String directoryPath,
                                                  SecurityHandler securityHandler)
Method Detail

getResource

public URL getResource(String name)
Specified by:
getResource in interface HttpContext

getMimeType

public String getMimeType(String name)
Specified by:
getMimeType in interface HttpContext

handleSecurity

public boolean handleSecurity(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws IOException
Specified by:
handleSecurity in interface HttpContext
Throws:
IOException


Copyright © 2014. All Rights Reserved.