|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--jason.service.crusader.ServletCapsule
| Field Summary | |
static int |
capsuleID
|
protected java.lang.String |
fileName
Contains the filename of the servlet. |
protected long |
lastModified
Denotes the time the servlet was last modified. |
protected boolean |
readyForService
Indicates wether the servlet encapsulated is ready for servicing clients' requests or not. |
protected javax.servlet.Servlet |
servlet
|
protected java.lang.String |
servletName
The fully qualified name of the Servlet class. |
static int |
servletObjectID
|
protected boolean |
singleThreadModel
Indicates wether the servlet implements javax.servlet.SingleThreadModel or not. |
| Constructor Summary | |
ServletCapsule()
|
|
| Method Summary | |
void |
destroy()
|
int |
getCapsuleID()
|
java.lang.String |
getFileName()
Returns the real & absolute path name of the .class file of the Servlet |
long |
getLastModified()
Returns the lastModified time of the .class file of the servlet. |
javax.servlet.Servlet |
getServlet()
Returns the Servlet instance encapsulated |
javax.servlet.ServletConfig |
getServletConfig()
|
java.lang.String |
getServletInfo()
|
java.lang.String |
getServletName()
Returns the fully qualified class name of the Servlet that is stoted in the capsule. |
int |
getServletObjectID()
|
void |
init(javax.servlet.ServletConfig config)
|
boolean |
isReadyForService()
Returns wether a Servlet encapsulated is ready to service a client or not - it shall be predominantly used with Servlets implementing SingleThreadModel and during Servlet decapsulation. |
boolean |
isSingleThreadModel()
Returns wether a Servlet encapsulated implements SingleThreadModel or not |
void |
service(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
|
void |
setFileName(java.lang.String fileName)
The file name supplied shall have to be the absolute real path name of the .class file of the servlet - URLs are strictly not allowed. |
void |
setLastModified(long lastModified)
This should not be called until and unless the Servlet has been reloaded. |
void |
setReadyForService(boolean readyForService)
Sets the readyForService status for an encapsulated Servlet |
void |
setServlet(javax.servlet.Servlet servlet)
This method replaces the Servlet encapsulated in the capsule. |
void |
setServletName(java.lang.String servletName)
The String supplied shall have to be the fully qualified class name of the Servlet. |
void |
setSingleThreadModel(boolean singleThreadModel)
Sets the singleThreadModel status for a Servlet that is encapsulated |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int capsuleID
public static int servletObjectID
protected long lastModified
protected java.lang.String servletName
protected java.lang.String fileName
protected javax.servlet.Servlet servlet
protected boolean singleThreadModel
protected boolean readyForService
| Constructor Detail |
public ServletCapsule()
| Method Detail |
public int getCapsuleID()
getCapsuleID in interface ServletCapsuleIntpublic int getServletObjectID()
getServletObjectID in interface ServletCapsuleIntpublic long getLastModified()
getLastModified in interface ServletCapsuleIntpublic void setLastModified(long lastModified)
setLastModified in interface ServletCapsuleIntpublic java.lang.String getServletName()
getServletName in interface ServletCapsuleIntpublic void setServletName(java.lang.String servletName)
setServletName in interface ServletCapsuleIntpublic java.lang.String getFileName()
getFileName in interface ServletCapsuleIntpublic void setFileName(java.lang.String fileName)
setFileName in interface ServletCapsuleIntpublic javax.servlet.Servlet getServlet()
getServlet in interface ServletCapsuleIntpublic void setServlet(javax.servlet.Servlet servlet)
setServlet in interface ServletCapsuleIntpublic boolean isSingleThreadModel()
isSingleThreadModel in interface ServletCapsuleIntpublic void setSingleThreadModel(boolean singleThreadModel)
setSingleThreadModel in interface ServletCapsuleIntpublic boolean isReadyForService()
isReadyForService in interface ServletCapsuleIntpublic void setReadyForService(boolean readyForService)
setReadyForService in interface ServletCapsuleInt
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletjavax.servlet.ServletException
public void service(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
service in interface javax.servlet.Servletjavax.servlet.ServletException
java.io.IOExceptionpublic void destroy()
destroy in interface javax.servlet.Servletpublic javax.servlet.ServletConfig getServletConfig()
getServletConfig in interface javax.servlet.Servletpublic java.lang.String getServletInfo()
getServletInfo in interface javax.servlet.Servlet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||