|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mortbay.component.AbstractLifeCycle org.mortbay.jetty.handler.AbstractHandler org.mortbay.jetty.handler.AbstractHandlerContainer org.mortbay.jetty.handler.HandlerWrapper org.mortbay.jetty.handler.ContextHandler org.apache.geronimo.jetty6.JettyEJBWebServiceContext
public class JettyEJBWebServiceContext
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 |
---|
public JettyEJBWebServiceContext(String contextPath, WebServiceContainer webServiceContainer, InternalJAASJettyRealm internalJAASJettyRealm, String realmName, String transportGuarantee, String authMethod, ClassLoader classLoader)
Method Detail |
---|
public String getName()
public void handle(String target, HttpServletRequest req, HttpServletResponse res, int dispatch) throws IOException, ServletException
handle
in interface org.mortbay.jetty.Handler
handle
in class org.mortbay.jetty.handler.ContextHandler
IOException
ServletException
public String getContextPath()
getContextPath
in class org.mortbay.jetty.handler.ContextHandler
public String getSecurityRealmName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |