org.apache.geronimo.jetty
Class JettyEJBWebServiceContext

java.lang.Object
  extended by org.mortbay.util.Container
      extended by org.mortbay.http.HttpContext
          extended by org.apache.geronimo.jetty.JettyEJBWebServiceContext
All Implemented Interfaces:
Serializable, org.mortbay.http.HttpHandler, org.mortbay.util.EventProvider, org.mortbay.util.LifeCycle

public class JettyEJBWebServiceContext
extends org.mortbay.http.HttpContext
implements org.mortbay.http.HttpHandler

Delegates requests to a WebServiceContainer which is presumably for an EJB WebService.

WebServiceContainer delegates to an EJBContainer that will ultimately provide the JNDI, TX, and Security services for this web service.

Nothing stopping us from using this for POJOs or other types of webservices if shared Context (JNDI, tx, security) wasn't required to be supplied by the web context.

From a 10,000 foot view the Jetty architecture has: Container -> Context -> Holder -> Servlet

A Container has multiple Contexts, typically webapps A Context provides the JNDI, TX, and Security for the webapp and has many Holders A Holder simply wraps each Servlet

The POJO Web Service architecture on Jetty looks like this: Container -> WebApp Context -> JettyPOJOWebServiceHolder -> POJOWebServiceServlet

The EJB Web Service architecure, on the other hand, creates one Context for each EJB: Container -> JettyEJBWebServiceContext

See Also:
Serialized Form

Nested Class Summary
static class JettyEJBWebServiceContext.RequestAdapter
           
static class JettyEJBWebServiceContext.ResponseAdapter
           
 
Field Summary
 
Fields inherited from class org.mortbay.http.HttpContext
__ErrorHandler, __fileClassPathAttr
 
Constructor Summary
JettyEJBWebServiceContext(String contextPath, org.apache.geronimo.webservices.WebServiceContainer webServiceContainer, InternalJAASJettyRealm internalJAASJettyRealm, String realmName, String transportGuarantee, String authMethod, ClassLoader classLoader)
           
 
Method Summary
 String getContextPath()
           
 org.mortbay.http.HttpContext getHttpContext()
           
 String getName()
           
 String getSecurityRealmName()
           
 void handle(org.mortbay.http.HttpRequest req, org.mortbay.http.HttpResponse res)
           
 void initialize(org.mortbay.http.HttpContext httpContext)
           
 
Methods inherited from class org.mortbay.http.HttpContext
addClassPath, addClassPaths, addHandler, addHandler, addPermission, addSecurityConstraint, addVirtualHost, addWelcomeFile, canonicalContextPathSpec, checkSecurityConstraints, clearSecurityConstraints, destroy, doStart, doStop, enterContextScope, flushCache, getAttribute, getAttributeNames, getAttributes, getAuthenticator, getBaseResource, getClassLoader, getClassPath, getEncodingByMimeType, getEncodingMap, getFileClassPath, getHandler, getHandlerIndex, getHandlers, getHosts, getHttpConnection, getHttpContextName, getHttpServer, getInitParameter, getInitParameterNames, getMaxCachedFileSize, getMaxCacheSize, getMimeByExtension, getMimeMap, getParentClassLoader, getPermissions, getRealm, getRealmName, getRequestLog, getRequests, getRequestsActive, getRequestsActiveMax, getResource, getResourceBase, getResourceMetaData, getResponses1xx, getResponses2xx, getResponses3xx, getResponses4xx, getResponses5xx, getServerClasses, getStatsOn, getStatsOnMs, getStopGracefully, getSystemClasses, getTempDirectory, getVirtualHosts, getWelcomeFile, getWelcomeFiles, handle, initClassLoader, isClassLoaderJava2Compliant, isRedirectNullPath, leaveContextScope, loadClass, log, removeAttribute, removeHandler, removeHandler, removeVirtualHost, removeWelcomeFile, sendContextError, sendError, setAttribute, setAttributes, setAuthenticator, setBaseResource, setClassLoader, setClassLoaderJava2Compliant, setClassPath, setContextPath, setEncodingMap, setHandlers, setHosts, setHttpContextName, setInitParameter, setMaxCachedFileSize, setMaxCacheSize, setMimeMap, setMimeMapping, setParentClassLoader, setPermissions, setRealm, setRealmName, setRedirectNullPath, setRequestLog, setResourceBase, setServerClasses, setStatsOn, setStopGracefully, setSystemClasses, setTempDirectory, setTypeEncoding, setVirtualHosts, setWelcomeFiles, startHandlers, statsReset, stop, toString, toString
 
Methods inherited from class org.mortbay.util.Container
addComponent, addEventListener, getComponents, isStarted, isStarting, isStopping, removeComponent, removeEventListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mortbay.http.HttpHandler
handle
 
Methods inherited from interface org.mortbay.util.LifeCycle
isStarted, start, stop
 
Methods inherited from interface org.mortbay.util.EventProvider
addEventListener, removeEventListener
 

Constructor Detail

JettyEJBWebServiceContext

public JettyEJBWebServiceContext(String contextPath,
                                 org.apache.geronimo.webservices.WebServiceContainer webServiceContainer,
                                 InternalJAASJettyRealm internalJAASJettyRealm,
                                 String realmName,
                                 String transportGuarantee,
                                 String authMethod,
                                 ClassLoader classLoader)
Method Detail

getName

public String getName()
Specified by:
getName in interface org.mortbay.http.HttpHandler
Overrides:
getName in class org.mortbay.http.HttpContext

getHttpContext

public org.mortbay.http.HttpContext getHttpContext()
Specified by:
getHttpContext in interface org.mortbay.http.HttpHandler
Overrides:
getHttpContext in class org.mortbay.http.HttpContext

initialize

public void initialize(org.mortbay.http.HttpContext httpContext)
Specified by:
initialize in interface org.mortbay.http.HttpHandler
Overrides:
initialize in class org.mortbay.http.HttpContext

handle

public void handle(org.mortbay.http.HttpRequest req,
                   org.mortbay.http.HttpResponse res)
            throws org.mortbay.http.HttpException,
                   IOException
Overrides:
handle in class org.mortbay.http.HttpContext
Throws:
org.mortbay.http.HttpException
IOException

getContextPath

public String getContextPath()
Overrides:
getContextPath in class org.mortbay.http.HttpContext

getSecurityRealmName

public String getSecurityRealmName()


Copyright © 2006 Apache Software Foundation. All Rights Reserved.