|
http://www.eteks.com | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet com.eteks.awt.servlet.PJAServlet com.eteks.awt.servlet.PJARedirectServlet
This servlet uses PJAServlet
services to get a default toolkit, and redirects all servlet
calls to a destination servlet ensuring to it to have a default toolkit at disposal for graphics servlet.
The destination servlet class can be coded in either ways :
com.eteks.awt.servlet.destinationservlet
com.eteks.servlet.destinationservlet
sent in user request.It will become :servlet.toolkit.code=com.eteks.servlet.DefaultToolkitTest servlet.toolkit.initArgs=initParam1=value1, initParam2=value2
servlet.toolkit.code=com.eteks.awt.servlet.PJARedirectServlet servlet.toolkit.initArgs=initParam1=value1, initParam2=value2, destinationServletClass=com.eteks.servlet.DefaultToolkitTest, toolkitFontsPath=pathWithPJAForTTFFonts
Field Summary | |
static java.lang.String |
DESTINATION_SERVLET_CLASS_PARAMETER
|
static java.lang.String |
FONTS_PATH_PARAMETER
|
Constructor Summary | |
PJARedirectServlet()
|
Method Summary | |
void |
destroyPJA()
Override this method instead of the final method destroy () .
|
void |
doDeletePJA(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override this method instead of the final method doDelete () .
|
void |
doGetPJA(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override this method instead of the final method doGet () .
|
void |
doOptionsPJA(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override this method instead of the final method doOptions () .
|
void |
doPostPJA(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override this method instead of the final method doPost () .
|
void |
doPutPJA(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override this method instead of the final method doPut () .
|
void |
doTracePJA(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override this method instead of the final method doTrace () .
|
javax.servlet.http.HttpServlet |
getDestinationServlet(java.lang.String destServletClass,
java.lang.String fontsPath,
boolean init)
|
java.lang.String |
getFontsPath()
Override this method to return the fonts path where .pjaf files (JDK 1.1) or True Type files (JDK >= 1.2) can be found. |
void |
initPJA(javax.servlet.ServletConfig config)
Override this method instead of the final method init (ServletConfig config) .
|
javax.servlet.http.HttpServlet |
instantiateDestinationServlet(java.lang.String destServletClass,
boolean init)
|
void |
servicePJA(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override this method instead of the final method service (HttpServletRequest req, HttpServletResponse resp) .
|
Methods inherited from class com.eteks.awt.servlet.PJAServlet |
createImage, destroy, doDelete, doGet, doOptions, doPost, doPut, doTrace, getServletInfo, getServletInfoPJA, getSystemProperty, getUserHomeDir, init, init, initPJA, isDefaultToolkitAvailable, service, service, servicePJA, testDefaultToolkit |
Methods inherited from class javax.servlet.http.HttpServlet |
getLastModified |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DESTINATION_SERVLET_CLASS_PARAMETER
public static final java.lang.String FONTS_PATH_PARAMETER
Constructor Detail |
public PJARedirectServlet()
Method Detail |
public javax.servlet.http.HttpServlet instantiateDestinationServlet(java.lang.String destServletClass, boolean init) throws javax.servlet.ServletException
javax.servlet.ServletException
public javax.servlet.http.HttpServlet getDestinationServlet(java.lang.String destServletClass, java.lang.String fontsPath, boolean init) throws javax.servlet.ServletException
javax.servlet.ServletException
public java.lang.String getFontsPath()
PJAServlet
File.pathSeparator
.PJAServlet
constructor.
getFontsPath
in class PJAServlet
PJAServlet
implementation returns "."
+ File.pathSeparator + getSystemProperty ("user.dir")
+ File.pathSeparator + getSystemProperty ("java.home")
public void initPJA(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
PJAServlet
init (ServletConfig config)
.
PJAServlet
implementation calls super.init (config)
.
initPJA
in class PJAServlet
javax.servlet.ServletException
public void destroyPJA()
PJAServlet
destroy ()
.
PJAServlet
implementation calls super.destroy ()
.
destroyPJA
in class PJAServlet
public void doPostPJA(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
PJAServlet
doPost ()
.
PJAServlet
implementation calls super.doPost ()
.
doPostPJA
in class PJAServlet
javax.servlet.ServletException
java.io.IOException
public void doGetPJA(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
PJAServlet
doGet ()
.
PJAServlet
implementation calls super.doGet ()
.
doGetPJA
in class PJAServlet
javax.servlet.ServletException
java.io.IOException
public void doPutPJA(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
PJAServlet
doPut ()
.
PJAServlet
implementation calls super.doPut ()
.
doPutPJA
in class PJAServlet
javax.servlet.ServletException
java.io.IOException
public void doDeletePJA(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
PJAServlet
doDelete ()
.
PJAServlet
implementation calls super.doDelete ()
.
doDeletePJA
in class PJAServlet
javax.servlet.ServletException
java.io.IOException
public void doOptionsPJA(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
PJAServlet
doOptions ()
.
PJAServlet
implementation calls super.doOptions ()
.
doOptionsPJA
in class PJAServlet
javax.servlet.ServletException
java.io.IOException
public void doTracePJA(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
PJAServlet
doTrace ()
.
PJAServlet
implementation calls super.doTrace ()
.
doTracePJA
in class PJAServlet
javax.servlet.ServletException
java.io.IOException
public void servicePJA(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
PJAServlet
service (HttpServletRequest req, HttpServletResponse resp)
.
PJAServlet
implementation calls super.service (req, resp)
.
servicePJA
in class PJAServlet
javax.servlet.ServletException
java.io.IOException
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |