|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.jetty6.JettyServletHolder
public class JettyServletHolder
This ServletHolder's sole purpose is to provide the thread's current ServletHolder for realms that are interested in the current servlet, e.g. current servlet name.
It is also being our servlet gbean for now. We could gbean-ize the superclass to avoid the thread local access.
JAASJettyRealm.isUserInRole(java.security.Principal, String)| Field Summary | |
|---|---|
static GBeanInfo |
GBEAN_INFO
|
| Constructor Summary | |
|---|---|
JettyServletHolder()
|
|
JettyServletHolder(String objectName,
String servletName,
String servletClassName,
String jspFile,
Map initParams,
Integer loadOnStartup,
Set<String> servletMappings,
String runAsRole,
JettyServletRegistration context)
|
|
| Method Summary | |
|---|---|
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
static GBeanInfo |
getGBeanInfo()
|
String |
getObjectName()
Gets the unique name of this object. |
String |
getServletClassName()
|
String |
getServletName()
|
boolean |
isEventProvider()
Determines if this object implemnts the event provider type defined in the J2EE Management specification. |
boolean |
isStateManageable()
Determines if this object implements the state manageable type defined in the J2EE Management specification. |
boolean |
isStatisticsProvider()
Determines if this object implemnts the statistics provider type defined in the J2EE Management specification. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final GBeanInfo GBEAN_INFO
| Constructor Detail |
|---|
public JettyServletHolder()
public JettyServletHolder(String objectName,
String servletName,
String servletClassName,
String jspFile,
Map initParams,
Integer loadOnStartup,
Set<String> servletMappings,
String runAsRole,
JettyServletRegistration context)
throws Exception
Exception| Method Detail |
|---|
public String getServletName()
public String getServletClassName()
public String getObjectName()
J2EEManagedObject
getObjectName in interface J2EEManagedObjectpublic boolean isStateManageable()
J2EEManagedObject
isStateManageable in interface J2EEManagedObjectpublic boolean isStatisticsProvider()
J2EEManagedObject
isStatisticsProvider in interface J2EEManagedObjectpublic boolean isEventProvider()
J2EEManagedObject
isEventProvider in interface J2EEManagedObject
public void doStart()
throws Exception
GBeanLifecycle
doStart in interface GBeanLifecycleException - if the target failed to start; this will cause a transition to the failed state
public void doStop()
throws Exception
GBeanLifecycle
doStop in interface GBeanLifecycleException - if the target failed to stop; this will cause a transition to the failed statepublic void doFail()
GBeanLifecycle
doFail in interface GBeanLifecyclepublic static GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||