Class DefaultExtensionProcessor
- java.lang.Object
-
- com.ibm.ws.webcontainer.extension.WebExtensionProcessor
-
- com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor
-
- All Implemented Interfaces:
ExtensionProcessor
,RequestProcessor
,NamespaceInvoker
,javax.servlet.Servlet
public abstract class DefaultExtensionProcessor extends WebExtensionProcessor implements NamespaceInvoker, javax.servlet.Servlet
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
META_INF_DIR
static java.lang.String
PARAM_BUFFER_SIZE
static java.lang.String
PARAM_DEFAULT_PAGE
static java.lang.String
WEB_INF_DIR
-
Constructor Summary
Constructors Constructor Description DefaultExtensionProcessor(IServletContext webapp, java.util.HashMap params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IServletWrapper
createServletWrapper(IServletConfig config)
com.ibm.wsspi.webcontainer.util.URIMatcher
createURIMatcher(java.util.List list)
void
destroy()
int
getDefaultBufferSize()
java.lang.String
getEsiControl()
WebComponentMetaData
getMetaData()
java.lang.String
getName()
int
getOptimizeFileServingSize()
java.util.List
getPatternList()
Returns the list of patterns (as Strings) conforming with the servlet mappings as mandated by the servlet spec.javax.servlet.ServletConfig
getServletConfig()
java.lang.String
getServletInfo()
IServletWrapper
getServletWrapper(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
void
handleRequest(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
void
init(javax.servlet.ServletConfig arg0)
boolean
isAvailable(java.lang.String resource)
boolean
isAvailableInDocumentRoot(java.lang.String resource, boolean searchEDR)
void
nameSpacePostInvoke()
void
nameSpacePreInvoke()
java.lang.String
removeLeadingSlashes(java.lang.String src)
void
service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
-
Methods inherited from class com.ibm.ws.webcontainer.extension.WebExtensionProcessor
createConfig, createConfig, isInternal
-
-
-
-
Field Detail
-
PARAM_DEFAULT_PAGE
public static final java.lang.String PARAM_DEFAULT_PAGE
- See Also:
- Constant Field Values
-
PARAM_BUFFER_SIZE
public static final java.lang.String PARAM_BUFFER_SIZE
- See Also:
- Constant Field Values
-
WEB_INF_DIR
public static final java.lang.String WEB_INF_DIR
- See Also:
- Constant Field Values
-
META_INF_DIR
public static final java.lang.String META_INF_DIR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultExtensionProcessor
public DefaultExtensionProcessor(IServletContext webapp, java.util.HashMap params)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceRequestProcessor
- Overrides:
getName
in classWebExtensionProcessor
-
handleRequest
public void handleRequest(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws java.lang.Exception
- Specified by:
handleRequest
in interfaceRequestProcessor
- Throws:
java.lang.Exception
-
removeLeadingSlashes
public java.lang.String removeLeadingSlashes(java.lang.String src)
-
getEsiControl
public java.lang.String getEsiControl()
- Returns:
-
getDefaultBufferSize
public int getDefaultBufferSize()
- Returns:
-
getPatternList
public java.util.List getPatternList()
Description copied from class:WebExtensionProcessor
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
- Overrides:
getPatternList
in classWebExtensionProcessor
- Returns:
- patternList
-
createURIMatcher
public com.ibm.wsspi.webcontainer.util.URIMatcher createURIMatcher(java.util.List list)
-
isAvailable
public boolean isAvailable(java.lang.String resource)
- Overrides:
isAvailable
in classWebExtensionProcessor
-
isAvailableInDocumentRoot
public boolean isAvailableInDocumentRoot(java.lang.String resource, boolean searchEDR)
-
createServletWrapper
public IServletWrapper createServletWrapper(IServletConfig config) throws java.lang.Exception
- Overrides:
createServletWrapper
in classWebExtensionProcessor
- Throws:
java.lang.Exception
-
getMetaData
public WebComponentMetaData getMetaData()
- Specified by:
getMetaData
in interfaceExtensionProcessor
- Overrides:
getMetaData
in classWebExtensionProcessor
-
nameSpacePostInvoke
public void nameSpacePostInvoke()
- Specified by:
nameSpacePostInvoke
in interfaceNamespaceInvoker
-
nameSpacePreInvoke
public void nameSpacePreInvoke()
- Specified by:
nameSpacePreInvoke
in interfaceNamespaceInvoker
-
getOptimizeFileServingSize
public int getOptimizeFileServingSize()
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Servlet
-
getServletConfig
public javax.servlet.ServletConfig getServletConfig()
- Specified by:
getServletConfig
in interfacejavax.servlet.Servlet
-
getServletInfo
public java.lang.String getServletInfo()
- Specified by:
getServletInfo
in interfacejavax.servlet.Servlet
-
init
public void init(javax.servlet.ServletConfig arg0) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Servlet
- Throws:
javax.servlet.ServletException
-
service
public void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws javax.servlet.ServletException, java.io.IOException
- Specified by:
service
in interfacejavax.servlet.Servlet
- Throws:
javax.servlet.ServletException
java.io.IOException
-
getServletWrapper
public IServletWrapper getServletWrapper(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
- Specified by:
getServletWrapper
in interfaceExtensionProcessor
- Overrides:
getServletWrapper
in classWebExtensionProcessor
-
-