|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mortbay.util.Container org.mortbay.http.HttpContext org.apache.geronimo.jetty.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
|
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 |
---|
public JettyEJBWebServiceContext(String contextPath, org.apache.geronimo.webservices.WebServiceContainer webServiceContainer, InternalJAASJettyRealm internalJAASJettyRealm, String realmName, String transportGuarantee, String authMethod, ClassLoader classLoader)
Method Detail |
---|
public String getName()
getName
in interface org.mortbay.http.HttpHandler
getName
in class org.mortbay.http.HttpContext
public org.mortbay.http.HttpContext getHttpContext()
getHttpContext
in interface org.mortbay.http.HttpHandler
getHttpContext
in class org.mortbay.http.HttpContext
public void initialize(org.mortbay.http.HttpContext httpContext)
initialize
in interface org.mortbay.http.HttpHandler
initialize
in class org.mortbay.http.HttpContext
public void handle(org.mortbay.http.HttpRequest req, org.mortbay.http.HttpResponse res) throws org.mortbay.http.HttpException, IOException
handle
in class org.mortbay.http.HttpContext
org.mortbay.http.HttpException
IOException
public String getContextPath()
getContextPath
in class org.mortbay.http.HttpContext
public String getSecurityRealmName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |