public class WebApp extends Object
HttpContext
.Modifier and Type | Field and Description |
---|---|
protected HttpService |
httpService |
protected org.osgi.framework.ServiceReference |
sRef |
protected static WebAppDescriptor |
webAppDescriptor |
Constructor and Description |
---|
WebApp(WebAppDescriptor descriptor) |
Modifier and Type | Method and Description |
---|---|
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(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 HttpService httpService
protected org.osgi.framework.ServiceReference sRef
public WebApp(WebAppDescriptor descriptor)
public boolean handleSecurity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
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 HttpService getHttpService()
public void setHttpService(HttpService httpService)
public org.osgi.framework.ServiceReference getSRef()
public void setSRef(org.osgi.framework.ServiceReference sRef)
Copyright © The Apache Software Foundation. All Rights Reserved.