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(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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.HttpContextpublic URL getResource(String name)
getResource in interface org.osgi.service.http.HttpContextpublic boolean handleSecurity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
handleSecurity in interface org.osgi.service.http.HttpContextIOExceptionpublic void start(org.osgi.framework.BundleContext bc)
throws org.osgi.framework.BundleException
bc - the BundleContext of the WebApp hostorg.osgi.framework.BundleExceptionpublic void stop(org.osgi.framework.BundleContext bc)
throws org.osgi.framework.BundleException
bc - the BundleContext of the WebApp hostorg.osgi.framework.BundleExceptionpublic 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–2016 The Apache Software Foundation. All rights reserved.