public interface IServletWrapper extends RequestProcessor
GenericServletWrapper
Modifier and Type | Method and Description |
---|---|
void |
addServletReferenceListener(ServletReferenceListener wrapper)
Adds a ServletReferenceListener to this wrapper
|
void |
destroy()
Signals that this wrapper should now be destroyed.
|
long |
getLastAccessTime()
Returns the time when this wrapper was last accessed
|
IServletConfig |
getServletConfig()
Returns the servlet config associated with this servlet wrapper
|
javax.servlet.ServletContext |
getServletContext()
Returns the servlet context associated with this servlet wrapper.
|
java.lang.String |
getServletName()
Returns the servlet name of the servlet wrapped by this servlet wrapper
|
javax.servlet.Servlet |
getTarget()
Gets the target Servlet that this wrapper is wrapping
|
java.lang.ClassLoader |
getTargetClassLoader()
Returns the ClassLoader instance that was used to load, or will be used
to load the Servlet wrapped by this servlet wrapper
|
void |
handleRequest(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
This method will be called by the webcontainer when a request is intended
for this wrapper.
|
void |
initialize(IServletConfig config)
Initializes this wrapper with the specified config.
|
boolean |
isAvailable()
Returns whether the requested wrapper resource exists.
|
void |
load()
Loads the servlet and calls the Servlet's init method with the previously passed IServletConfig.
|
void |
loadOnStartupCheck()
Initializes this wrapper with the specified config.
|
void |
modifyTarget(javax.servlet.Servlet s) |
void |
prepareForReload()
Signals that this wrapper is going to be recycled
|
void |
service(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
void |
setParent(IServletContext parent)
Sets the parent context for this servletwrapper
|
void |
setTarget(javax.servlet.Servlet target)
Sets the target Servlet that this wrapper should wrap
|
void |
setTargetClassLoader(java.lang.ClassLoader loader)
Instructs the webcontainer to use the specified ClassLoader to load the
Servlet wrapped by this servlet wrapper.
|
getName, isInternal
IServletConfig getServletConfig()
javax.servlet.ServletContext getServletContext()
void setParent(IServletContext parent)
java.lang.String getServletName()
void setTargetClassLoader(java.lang.ClassLoader loader)
loader
- java.lang.ClassLoader getTargetClassLoader()
loader
- void setTarget(javax.servlet.Servlet target)
target
- javax.servlet.Servlet getTarget()
void initialize(IServletConfig config) throws java.lang.Exception
config
- java.lang.Exception
IServletConfig
void loadOnStartupCheck() throws java.lang.Exception
config
- java.lang.Exception
IServletConfig
void handleRequest(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) throws java.lang.Exception
handleRequest
in interface RequestProcessor
java.lang.Exception
void prepareForReload()
void addServletReferenceListener(ServletReferenceListener wrapper)
wrapper
- long getLastAccessTime()
void destroy()
void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws java.io.IOException, javax.servlet.ServletException
request
- response
- java.io.IOException
javax.servlet.ServletException
boolean isAvailable()
void load() throws java.lang.Exception
java.lang.Exception
void modifyTarget(javax.servlet.Servlet s)