Class WebExtensionProcessor
- java.lang.Object
-
- com.ibm.ws.webcontainer.extension.WebExtensionProcessor
-
- All Implemented Interfaces:
ExtensionProcessor
,RequestProcessor
- Direct Known Subclasses:
DefaultExtensionProcessor
,InvokerExtensionProcessor
,WebExtensionProcessor
public abstract class WebExtensionProcessor extends java.lang.Object implements ExtensionProcessor
-
-
Constructor Summary
Constructors Constructor Description WebExtensionProcessor(IServletContext webApp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IServletConfig
createConfig(java.lang.String servletName)
A convenience method that creates a ServletConfig object.IServletConfig
createConfig(java.lang.String servletName, ServletConfigParmMap cfgMap)
IServletWrapper
createServletWrapper(IServletConfig config)
WebComponentMetaData
getMetaData()
java.lang.String
getName()
java.util.List
getPatternList()
Returns the list of patterns (as Strings) conforming with the servlet mappings as mandated by the servlet spec.IServletWrapper
getServletWrapper(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp)
boolean
isAvailable(java.lang.String resource)
boolean
isInternal()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.wsspi.webcontainer.RequestProcessor
handleRequest
-
-
-
-
Constructor Detail
-
WebExtensionProcessor
public WebExtensionProcessor(IServletContext webApp)
-
-
Method Detail
-
createServletWrapper
public IServletWrapper createServletWrapper(IServletConfig config) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getPatternList
public java.util.List getPatternList()
Returns the list of patterns (as Strings) conforming with the servlet mappings as mandated by the servlet spec. The subclasses of this class may override this method in case they want to supply patterns they want to be associated with.- Specified by:
getPatternList
in interfaceExtensionProcessor
- Returns:
- patternList
-
createConfig
public IServletConfig createConfig(java.lang.String servletName) throws jakarta.servlet.ServletException
A convenience method that creates a ServletConfig object. This also populates the necessary metaData which enables the Servlet associated with the returned config to correctly lookup NameSpace entries. It is highly recommended that extension processors use this method to create the config objects for the targets that the processor creates.- Parameters:
servletName
-- Returns:
- Throws:
jakarta.servlet.ServletException
-
createConfig
public IServletConfig createConfig(java.lang.String servletName, ServletConfigParmMap cfgMap) throws jakarta.servlet.ServletException
- Throws:
jakarta.servlet.ServletException
-
isAvailable
public boolean isAvailable(java.lang.String resource)
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceRequestProcessor
-
isInternal
public boolean isInternal()
- Specified by:
isInternal
in interfaceRequestProcessor
- Returns:
- boolean Returns true if this request processor is for internal use only
-
getMetaData
public WebComponentMetaData getMetaData()
- Specified by:
getMetaData
in interfaceExtensionProcessor
-
getServletWrapper
public IServletWrapper getServletWrapper(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp) throws java.lang.Exception
- Specified by:
getServletWrapper
in interfaceExtensionProcessor
- Throws:
java.lang.Exception
-
-