public class WebApp extends Object implements org.osgi.service.http.HttpContext
HttpContext
.Modifier and Type | Field and Description |
---|---|
protected org.osgi.service.http.HttpService |
httpService |
protected org.osgi.framework.ServiceReference |
sRef |
protected static WebAppDescriptor |
webAppDescriptor |
Constructor and Description |
---|
WebApp(WebAppDescriptor descriptor) |
Modifier and Type | Method and Description |
---|---|
org.osgi.service.http.HttpService |
getHttpService() |
String |
getMimeType(String reqEntry) |
URL |
getResource(String name) |
org.osgi.framework.ServiceReference |
getSRef() |
static WebAppDescriptor |
getWebAppDescriptor() |
boolean |
handleSecurity(HttpServletRequest request,
HttpServletResponse response) |
void |
setHttpService(org.osgi.service.http.HttpService httpService) |
void |
setSRef(org.osgi.framework.ServiceReference sRef) |
static void |
setWebAppDescriptor(WebAppDescriptor webAppDescriptor) |
void |
start(org.osgi.framework.BundleContext bc)
Starts the WebApp
|
void |
stop(org.osgi.framework.BundleContext bc)
Stops the WebApp
|
protected static WebAppDescriptor webAppDescriptor
protected org.osgi.service.http.HttpService httpService
protected org.osgi.framework.ServiceReference sRef
public WebApp(WebAppDescriptor descriptor)
public String getMimeType(String reqEntry)
getMimeType
in interface org.osgi.service.http.HttpContext
public URL getResource(String name)
getResource
in interface org.osgi.service.http.HttpContext
public boolean handleSecurity(HttpServletRequest request, HttpServletResponse response) throws IOException
handleSecurity
in interface org.osgi.service.http.HttpContext
IOException
public void start(org.osgi.framework.BundleContext bc) throws org.osgi.framework.BundleException
bc
- the BundleContext of the WebApp hostorg.osgi.framework.BundleException
public void stop(org.osgi.framework.BundleContext bc) throws org.osgi.framework.BundleException
bc
- the BundleContext of the WebApp hostorg.osgi.framework.BundleException
public static WebAppDescriptor getWebAppDescriptor()
public static void setWebAppDescriptor(WebAppDescriptor webAppDescriptor)
public org.osgi.service.http.HttpService getHttpService()
public void setHttpService(org.osgi.service.http.HttpService httpService)
public org.osgi.framework.ServiceReference getSRef()
public void setSRef(org.osgi.framework.ServiceReference sRef)
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.