configurator
Class JSPservletConfig

configurator.JSPservletConfig

public class JSPservletConfig

Publication configuration helper servlet. Changes:

Copyright (c) 2000-2001

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; version 2
 of the License.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 

Version:
1, 0
Author:
Alexis Grandemange
See Also:
JSPservlet

Field Summary
(package private)  java.lang.String AllPermissionPolicy
          all permission policy file path.
(package private)  java.lang.String CachePath
          Cache directory path.
(package private)  java.lang.String CApassword
          Password to use to connect to CA for certificate.
(package private)  java.lang.String CAURL
          Certificate Authority URL.
(package private)  java.lang.String CAuser
          User to use to connect to CA for certificate.
(package private)  java.lang.String CRLpassword
          Password to use to connect to CA for CRL.
(package private)  int CRLperiod
          Certificate Revocation List scan period.
(package private)  java.lang.String CRLURL
          Certificate Revocation List URL.
(package private)  java.lang.String CRLuser
          User to use to connect to CA for CRL.
(package private)  java.lang.String curDir
          Application server current directory.
(package private)  java.lang.String DefaultPolicy
          default property file path.
(package private)  int expiration
          Static pages expiration time (sec).
(package private)  java.net.InetAddress ia
           
(package private)  java.lang.String ID
          Unique pagebox identifier.
(package private)  java.lang.String JSPservletURL
          URL where to download JSPservlet.
(package private)  java.lang.String keystore
          keystore name.
(package private)  java.lang.String keystorePassword
          keystore password.
(package private)  java.lang.String LogFile
          Log file cache.
(package private)  java.lang.String logName
          name to use to invoke ServletLog.
(package private)  java.lang.String msg
          msg buffer filled by check method.
(package private)  java.lang.String RemoteLocations
          Remote location property file path.
(package private)  configurator.HttpServletRequest request
           
(package private)  configurator.HttpServletResponse response
           
(package private)  java.lang.String statName
          name to use to invoke ServletStat.
(package private)  boolean toStat
          stat mode.
(package private)  boolean toTrace
          trace mode.
private static java.lang.String webInfClasses
          copy classes found there and html without path
(package private)  java.lang.String webXml
          web.xml path.
 
Constructor Summary
JSPservletConfig()
           
 
Method Summary
private  void check()
          Checks parameter validity
 void doGet(configurator.HttpServletRequest request, configurator.HttpServletResponse response)
          GET request handling.
private  boolean generate(java.io.PrintWriter out, boolean bHTTP)
          Generates and returns a web.xml file.
(package private) static java.lang.String genMapping(java.lang.String name, java.lang.String value)
          Service method invoked by generate.
(package private) static java.lang.String genParm(java.lang.String name, java.lang.String value, java.lang.String descr)
          Service method invoked by generate.
private  void initialize()
          Initialize parameters.
(package private)  void setenv()
          method setting remote environment in order to host JSPservlet. should be invoked only if JSPservletConfig is installed on the target machine.
 

Field Detail

ID

java.lang.String ID
Unique pagebox identifier.

keystore

java.lang.String keystore
keystore name.

keystorePassword

java.lang.String keystorePassword
keystore password.

CAURL

java.lang.String CAURL
Certificate Authority URL.

CRLURL

java.lang.String CRLURL
Certificate Revocation List URL.

CAuser

java.lang.String CAuser
User to use to connect to CA for certificate.

CApassword

java.lang.String CApassword
Password to use to connect to CA for certificate.

CRLuser

java.lang.String CRLuser
User to use to connect to CA for CRL.

CRLpassword

java.lang.String CRLpassword
Password to use to connect to CA for CRL.

expiration

int expiration
Static pages expiration time (sec).

CRLperiod

int CRLperiod
Certificate Revocation List scan period.

CachePath

java.lang.String CachePath
Cache directory path.

LogFile

java.lang.String LogFile
Log file cache.

RemoteLocations

java.lang.String RemoteLocations
Remote location property file path.

AllPermissionPolicy

java.lang.String AllPermissionPolicy
all permission policy file path.

DefaultPolicy

java.lang.String DefaultPolicy
default property file path.

logName

java.lang.String logName
name to use to invoke ServletLog.

statName

java.lang.String statName
name to use to invoke ServletStat.

toTrace

boolean toTrace
trace mode.

toStat

boolean toStat
stat mode.

webXml

java.lang.String webXml
web.xml path.

JSPservletURL

java.lang.String JSPservletURL
URL where to download JSPservlet.

curDir

java.lang.String curDir
Application server current directory.

msg

java.lang.String msg
msg buffer filled by check method.

request

configurator.HttpServletRequest request

response

configurator.HttpServletResponse response

ia

java.net.InetAddress ia

webInfClasses

private static final java.lang.String webInfClasses
copy classes found there and html without path
Constructor Detail

JSPservletConfig

public JSPservletConfig()
Method Detail

doGet

public void doGet(configurator.HttpServletRequest request,
                  configurator.HttpServletResponse response)
           throws configurator.ServletException,
                  java.io.IOException
GET request handling.
Parameters:
request - HttpServletRequest.
response - HttpServletResponse.

initialize

private final void initialize()
Initialize parameters.

check

private final void check()
Checks parameter validity

generate

private final boolean generate(java.io.PrintWriter out,
                               boolean bHTTP)
Generates and returns a web.xml file.
Parameters:
out - PrintWriter.
bHTTP - true - set response time (HTTP flow).

genParm

static final java.lang.String genParm(java.lang.String name,
                                      java.lang.String value,
                                      java.lang.String descr)
Service method invoked by generate. Builds a parameter entry (web.xml).
Parameters:
name - parameter name.
value - parameter value.
descr - parameter description.

genMapping

static final java.lang.String genMapping(java.lang.String name,
                                         java.lang.String value)
Service method invoked by generate. Builds a servlet mapping (web.xml).
Parameters:
name - servlet name.
value - servlet invocation name.

setenv

void setenv()
method setting remote environment in order to host JSPservlet. should be invoked only if JSPservletConfig is installed on the target machine.