configurator
Class PublishConfig

configurator.PublishConfig

public class PublishConfig

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 curDir
           
(package private)  java.net.InetAddress ia
           
(package private)  java.lang.String Logfile
          Log file path.
(package private)  int MaxLength
          Archive maximum size.
(package private)  java.lang.String msg
          msg buffer filled by check method.
(package private)  java.lang.String PageBoxURLs
          Serialized file describing target PageBoxes.
(package private)  java.lang.String publisherURL
          URL where to download PublishServer.
(package private)  java.lang.String Repository
          Directory where to upload archives.
(package private)  java.lang.String repositoryURL
          URL where to download archives.
(package private)  configurator.HttpServletRequest request
           
(package private)  configurator.HttpServletResponse response
           
(package private)  boolean toTrace
          trace mode.
(package private)  java.lang.String webXml
          web.xml path.
 
Constructor Summary
PublishConfig()
           
 
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.
private  void initialize()
          Initialize parameters.
(package private)  void setenv()
          method setting remote environment in order to host PublishServlet. should be invoked only if JSPservletConfig is installed on the target machine.
 

Field Detail

Repository

java.lang.String Repository
Directory where to upload archives. Repository and repositoryURL point the same dir. So a file copied in Repository should be downloaded from repositoryURL

repositoryURL

java.lang.String repositoryURL
URL where to download archives.

MaxLength

int MaxLength
Archive maximum size.

Logfile

java.lang.String Logfile
Log file path.

PageBoxURLs

java.lang.String PageBoxURLs
Serialized file describing target PageBoxes.

webXml

java.lang.String webXml
web.xml path.

publisherURL

java.lang.String publisherURL
URL where to download PublishServer.

msg

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

toTrace

boolean toTrace
trace mode.

curDir

java.lang.String curDir

request

configurator.HttpServletRequest request

response

configurator.HttpServletResponse response

ia

java.net.InetAddress ia
Constructor Detail

PublishConfig

public PublishConfig()
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).

setenv

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