Package com.ibm.wsspi.webcontainer
Class WebContainer
- java.lang.Object
- 
- com.ibm.websphere.servlet.container.WebContainer
- 
- com.ibm.wsspi.webcontainer.WebContainer
 
 
- 
 public class WebContainer extends com.ibm.websphere.servlet.container.WebContainerThis class enables users to get at an instance (singleton) of the WebContainer so that they can delegate request processing. The webcontainer returned is the single instance (per JVM) of the runtime container that handles Servlets, JSP, and all registered ExtensionProcessors.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecrementNumRequests()java.lang.ClassLoadergetExtClassLoader()java.lang.IntegergetKeySize(java.lang.String cipherSuite)static com.ibm.ejs.ras.TraceNLSgetNls()IPlatformHelpergetPlatformHelper()java.lang.StringgetURIEncoding()static WebContainergetWebContainer()WebContainerConfiggetWebContainerConfig()static java.util.PropertiesgetWebContainerProperties()voidhandleRequest(IRequest req, IResponse res)booleanisCachingEnabled()booleanisCollaboratorEnabled(java.lang.String type)static voidregisterExtensionFactory(ExtensionFactory fac)voidsetServletCachingInitNeeded(boolean bool)voidsetWebContainerStopping(boolean isStopped)
 
- 
- 
- 
Method Detail- 
getURIEncodingpublic java.lang.String getURIEncoding() 
 - 
getWebContainerpublic static WebContainer getWebContainer() - Returns:
- The instance of the WebContainer Call this method to get at an instance of the WebContainer
 
 - 
handleRequestpublic void handleRequest(IRequest req, IResponse res) throws java.lang.Exception - Specified by:
- handleRequestin class- com.ibm.websphere.servlet.container.WebContainer
- Parameters:
- req-
- res-
- Throws:
- java.lang.Exception- Call this method to force the webcontainer to handle the request. The request should have enough information in it for the webcontainer to handle the request.
 
 - 
registerExtensionFactorypublic static void registerExtensionFactory(ExtensionFactory fac) - Parameters:
- fac- The factory that provides ExtensionProcessors which the webcontainer will leverage to handle requests. Register an extension factory with this webcontainer
- See Also:
- ExtensionFactory
 
 - 
getWebContainerPropertiespublic static java.util.Properties getWebContainerProperties() - Returns:
- The additional/custom properties configured for this webcontainer
 
 - 
getWebContainerConfigpublic WebContainerConfig getWebContainerConfig() 
 - 
isCollaboratorEnabledpublic boolean isCollaboratorEnabled(java.lang.String type) 
 - 
setServletCachingInitNeededpublic void setServletCachingInitNeeded(boolean bool) 
 - 
isCachingEnabledpublic boolean isCachingEnabled() 
 - 
getPlatformHelperpublic IPlatformHelper getPlatformHelper() 
 - 
getKeySizepublic java.lang.Integer getKeySize(java.lang.String cipherSuite) 
 - 
getExtClassLoaderpublic java.lang.ClassLoader getExtClassLoader() 
 - 
getNlspublic static com.ibm.ejs.ras.TraceNLS getNls() 
 - 
setWebContainerStoppingpublic void setWebContainerStopping(boolean isStopped) 
 - 
decrementNumRequestspublic void decrementNumRequests() 
 
- 
 
-