org.apache.muse.osgi.soa.core.web
Class WebApp

java.lang.Object
  extended by 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

Field Summary
static WebAppDescriptor webAppDescriptor
           
 
Fields inherited from interface org.osgi.service.http.HttpContext
AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER
 
Constructor Summary
WebApp(WebAppDescriptor descriptor)
           
 
Method Summary
 String getMimeType(String reqEntry)
           
 URL getResource(String name)
           
 boolean handleSecurity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void start(org.osgi.framework.BundleContext bc)
          Starts the WebApp
 void stop(org.osgi.framework.BundleContext bc)
          Stops the WebApp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webAppDescriptor

public static WebAppDescriptor webAppDescriptor
Constructor Detail

WebApp

public WebApp(WebAppDescriptor descriptor)
Method Detail

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.