org.apache.geronimo.jetty6
Class JettyEJBWebServiceContext

java.lang.Object
  extended by org.mortbay.component.AbstractLifeCycle
      extended by org.mortbay.jetty.handler.AbstractHandler
          extended by org.mortbay.jetty.handler.AbstractHandlerContainer
              extended by org.mortbay.jetty.handler.HandlerWrapper
                  extended by org.mortbay.jetty.handler.ContextHandler
                      extended by org.apache.geronimo.jetty6.JettyEJBWebServiceContext
All Implemented Interfaces:
org.mortbay.component.LifeCycle, org.mortbay.jetty.Handler, org.mortbay.jetty.HandlerContainer, org.mortbay.jetty.Server.Graceful, org.mortbay.util.Attributes

public class JettyEJBWebServiceContext
extends org.mortbay.jetty.handler.ContextHandler

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


Nested Class Summary
static class JettyEJBWebServiceContext.RequestAdapter
           
static class JettyEJBWebServiceContext.ResponseAdapter
           
 
Nested classes/interfaces inherited from class org.mortbay.jetty.handler.ContextHandler
org.mortbay.jetty.handler.ContextHandler.SContext
 
Field Summary
 
Fields inherited from class org.mortbay.jetty.handler.ContextHandler
_scontext
 
Fields inherited from class org.mortbay.jetty.handler.AbstractHandler
_string
 
Fields inherited from interface org.mortbay.jetty.Handler
ALL, DEFAULT, ERROR, FORWARD, INCLUDE, REQUEST
 
Constructor Summary
JettyEJBWebServiceContext(String contextPath, WebServiceContainer webServiceContainer, InternalJAASJettyRealm internalJAASJettyRealm, String realmName, String transportGuarantee, String authMethod, ClassLoader classLoader)
           
 
Method Summary
 String getContextPath()
           
 String getName()
           
 String getSecurityRealmName()
           
 void handle(String target, HttpServletRequest req, HttpServletResponse res, int dispatch)
           
 
Methods inherited from class org.mortbay.jetty.handler.ContextHandler
addEventListener, addLocaleEncoding, clearAttributes, doStart, doStop, getAllowNullPathInfo, getAttribute, getAttributeNames, getAttributes, getBaseResource, getClassLoader, getClassPath, getConnectorNames, getCurrentContext, getDisplayName, getErrorHandler, getEventListeners, getHosts, getInitParameter, getInitParameterNames, getInitParams, getLocaleEncoding, getMaxFormContentSize, getMimeTypes, getResource, getResourceBase, getResourcePaths, getServletContext, getVirtualHosts, getWelcomeFiles, isProtectedTarget, isShutdown, loadClass, removeAttribute, setAllowNullPathInfo, setAttribute, setAttributes, setBaseResource, setClassLoader, setConnectorNames, setContextPath, setDisplayName, setErrorHandler, setEventListeners, setHosts, setInitParams, setMaxFormContentSize, setMimeTypes, setResourceBase, setServer, setShutdown, setVirtualHosts, setWelcomeFiles, startContext, toString
 
Methods inherited from class org.mortbay.jetty.handler.HandlerWrapper
addHandler, expandChildren, getHandler, setHandler
 
Methods inherited from class org.mortbay.jetty.handler.AbstractHandlerContainer
expandHandler, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass
 
Methods inherited from class org.mortbay.jetty.handler.AbstractHandler
destroy, getServer
 
Methods inherited from class org.mortbay.component.AbstractLifeCycle
isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, 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.component.LifeCycle
isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop
 

Constructor Detail

JettyEJBWebServiceContext

public JettyEJBWebServiceContext(String contextPath,
                                 WebServiceContainer webServiceContainer,
                                 InternalJAASJettyRealm internalJAASJettyRealm,
                                 String realmName,
                                 String transportGuarantee,
                                 String authMethod,
                                 ClassLoader classLoader)
Method Detail

getName

public String getName()

handle

public void handle(String target,
                   HttpServletRequest req,
                   HttpServletResponse res,
                   int dispatch)
            throws IOException,
                   ServletException
Specified by:
handle in interface org.mortbay.jetty.Handler
Overrides:
handle in class org.mortbay.jetty.handler.ContextHandler
Throws:
IOException
ServletException

getContextPath

public String getContextPath()
Overrides:
getContextPath in class org.mortbay.jetty.handler.ContextHandler

getSecurityRealmName

public String getSecurityRealmName()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.