org.apache.muse.osgi.soa.core.web
Class WebApp
java.lang.Object
org.apache.muse.osgi.soa.core.web.WebApp
- All Implemented Interfaces:
- org.osgi.service.http.HttpContext
public class WebApp
- extends Object
- implements org.osgi.service.http.HttpContext
WebApp is a utility class for describing a WebApplication to be deployed into an OSGi
HTTP Service implementation. The WebApp implementation extends the OSGi HttpContext
.
- Author:
- Joel Hawkins (joelh)
- See Also:
HttpContext
Fields inherited from interface org.osgi.service.http.HttpContext |
AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
webAppDescriptor
public static WebAppDescriptor webAppDescriptor
WebApp
public WebApp(WebAppDescriptor descriptor)
getMimeType
public String getMimeType(String reqEntry)
- Specified by:
getMimeType
in interface org.osgi.service.http.HttpContext
getResource
public URL getResource(String name)
- Specified by:
getResource
in interface org.osgi.service.http.HttpContext
handleSecurity
public boolean handleSecurity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Specified by:
handleSecurity
in interface org.osgi.service.http.HttpContext
- Throws:
IOException
start
public void start(org.osgi.framework.BundleContext bc)
throws org.osgi.framework.BundleException
- Starts the WebApp
- Parameters:
bc
- the BundleContext of the WebApp host
- Throws:
org.osgi.framework.BundleException
stop
public void stop(org.osgi.framework.BundleContext bc)
throws org.osgi.framework.BundleException
- Stops the WebApp
- Parameters:
bc
- the BundleContext of the WebApp host
- Throws:
org.osgi.framework.BundleException
Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.