http://www.eteks.com

com.eteks.awt.servlet
クラス PJARedirectServlet

com.eteks.awt.servlet.PJAServlet
  |
  +--com.eteks.awt.servlet.PJARedirectServlet

public class PJARedirectServlet
extends PJAServlet

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 :

For example, if you wanted to call a servlet with the URL http://server/servlet/com.eteks.servlet.DefaultToolkitTest?param1=value1¶m2=value2 you have to change by http://server/servlet/com.eteks.awt.servlet.PJARedirectServlet?destinationServletClass=com.eteks.servlet.DefaultToolkitTest¶m1=value1¶m2=value2 Or if you servlet initialization file contained something like :
servlet.toolkit.code=com.eteks.servlet.DefaultToolkitTest
 servlet.toolkit.initArgs=initParam1=value1, initParam2=value2
It will become :
servlet.toolkit.code=com.eteks.awt.servlet.PJARedirectServlet
 servlet.toolkit.initArgs=initParam1=value1, initParam2=value2, destinationServletClass=com.eteks.servlet.DefaultToolkitTest, toolkitFontsPath=pathWithPJAForTTFFonts

導入されたバージョン:
PJA2.1
バージョン:
2.1
作成者:
Emmanuel Puybaret

フィールドの概要
static java.lang.String DESTINATION_SERVLET_CLASS_PARAMETER
           
static java.lang.String FONTS_PATH_PARAMETER
           
 
コンストラクタの概要
PJARedirectServlet()
           
 
メソッドの概要
 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).
 
クラス 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
 

フィールドの詳細

DESTINATION_SERVLET_CLASS_PARAMETER

public static final java.lang.String DESTINATION_SERVLET_CLASS_PARAMETER

FONTS_PATH_PARAMETER

public static final java.lang.String FONTS_PATH_PARAMETER
コンストラクタの詳細

PJARedirectServlet

public PJARedirectServlet()
メソッドの詳細

instantiateDestinationServlet

public javax.servlet.http.HttpServlet instantiateDestinationServlet(java.lang.String destServletClass,
                                                                    boolean init)
                                                             throws javax.servlet.ServletException

getDestinationServlet

public javax.servlet.http.HttpServlet getDestinationServlet(java.lang.String destServletClass,
                                                            java.lang.String fontsPath,
                                                            boolean init)
                                                     throws javax.servlet.ServletException

getFontsPath

public java.lang.String getFontsPath()
クラス PJAServlet の記述:
Override this method to return the fonts path where .pjaf files (JDK 1.1) or True Type files (JDK >= 1.2) can be found. If you want to return more than one directory separate them with File.pathSeparator.
Note : This method is called from within PJAServlet constructor.
オーバーライド:
クラス PJAServlet 内の getFontsPath
クラス com.eteks.awt.servlet.PJAServlet からコピーされたタグ:
戻り値:
PJAServlet implementation returns "." + File.pathSeparator + getSystemProperty ("user.dir") + File.pathSeparator + getSystemProperty ("java.home")

initPJA

public void initPJA(javax.servlet.ServletConfig config)
             throws javax.servlet.ServletException
クラス PJAServlet の記述:
Override this method instead of the final method init (ServletConfig config). PJAServlet implementation calls super.init (config).
オーバーライド:
クラス PJAServlet 内の initPJA

destroyPJA

public void destroyPJA()
クラス PJAServlet の記述:
Override this method instead of the final method destroy (). PJAServlet implementation calls super.destroy ().
オーバーライド:
クラス PJAServlet 内の destroyPJA

doPostPJA

public void doPostPJA(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
クラス PJAServlet の記述:
Override this method instead of the final method doPost (). PJAServlet implementation calls super.doPost ().
オーバーライド:
クラス PJAServlet 内の doPostPJA

doGetPJA

public void doGetPJA(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
クラス PJAServlet の記述:
Override this method instead of the final method doGet (). PJAServlet implementation calls super.doGet ().
オーバーライド:
クラス PJAServlet 内の doGetPJA

doPutPJA

public void doPutPJA(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
クラス PJAServlet の記述:
Override this method instead of the final method doPut (). PJAServlet implementation calls super.doPut ().
オーバーライド:
クラス PJAServlet 内の doPutPJA

doDeletePJA

public void doDeletePJA(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
                 throws javax.servlet.ServletException,
                        java.io.IOException
クラス PJAServlet の記述:
Override this method instead of the final method doDelete (). PJAServlet implementation calls super.doDelete ().
オーバーライド:
クラス PJAServlet 内の doDeletePJA

doOptionsPJA

public void doOptionsPJA(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws javax.servlet.ServletException,
                         java.io.IOException
クラス PJAServlet の記述:
Override this method instead of the final method doOptions (). PJAServlet implementation calls super.doOptions ().
オーバーライド:
クラス PJAServlet 内の doOptionsPJA

doTracePJA

public void doTracePJA(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       java.io.IOException
クラス PJAServlet の記述:
Override this method instead of the final method doTrace (). PJAServlet implementation calls super.doTrace ().
オーバーライド:
クラス PJAServlet 内の doTracePJA

servicePJA

public void servicePJA(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       java.io.IOException
クラス PJAServlet の記述:
Override this method instead of the final method service (HttpServletRequest req, HttpServletResponse resp). PJAServlet implementation calls super.service (req, resp).
オーバーライド:
クラス PJAServlet 内の servicePJA

© 1997-2001 eTeks - All rights reserved