001 //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/tags/2.1/src/org/deegree/ogcwebservices/wass/wss/configuration/WSSDeegreeParams.java $ 002 /*---------------- FILE HEADER ------------------------------------------ 003 004 This file is part of deegree. 005 Copyright (C) 2001-2006 by: 006 EXSE, Department of Geography, University of Bonn 007 http://www.giub.uni-bonn.de/deegree/ 008 lat/lon GmbH 009 http://www.lat-lon.de 010 011 This library is free software; you can redistribute it and/or 012 modify it under the terms of the GNU Lesser General Public 013 License as published by the Free Software Foundation; either 014 version 2.1 of the License, or (at your option) any later version. 015 016 This library is distributed in the hope that it will be useful, 017 but WITHOUT ANY WARRANTY; without even the implied warranty of 018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 019 Lesser General Public License for more details. 020 021 You should have received a copy of the GNU Lesser General Public 022 License along with this library; if not, write to the Free Software 023 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 024 025 Contact: 026 027 Andreas Poth 028 lat/lon GmbH 029 Aennchenstraße 19 030 53177 Bonn 031 Germany 032 E-Mail: poth@lat-lon.de 033 034 Jens Fitzke 035 Department of Geography 036 University of Bonn 037 Meckenheimer Allee 166 038 53115 Bonn 039 Germany 040 E-Mail: jens.fitzke@uni-bonn.de 041 042 ---------------------------------------------------------------------------*/ 043 package org.deegree.ogcwebservices.wass.wss.configuration; 044 045 import org.deegree.enterprise.DeegreeParams; 046 import org.deegree.framework.util.CharsetUtils; 047 import org.deegree.io.JDBCConnection; 048 import org.deegree.model.metadata.iso19115.OnlineResource; 049 050 /** 051 * Encapsulates deegree parameter data for a WSS. 052 * 053 * @author <a href="mailto:bezema@lat-lon.de">Rutger Bezema</a> 054 * @author last edited by: $Author: bezema $ 055 * 056 * @version 2.0, $Revision: 6259 $, $Date: 2007-03-20 10:15:15 +0100 (Di, 20 Mär 2007) $ 057 * 058 * @since 2.0 059 */ 060 public class WSSDeegreeParams extends DeegreeParams { 061 062 private static final long serialVersionUID = 2700771143650528537L; 063 064 private OnlineResource securedServiceAddress = null; 065 066 private OnlineResource wasAddress = null; 067 068 private int sessionLifetime = 0; 069 070 private JDBCConnection databaseConnection = null; 071 072 073 /** 074 * @param defaultOnlineResource 075 * @param cacheSize 076 * @param requestTimeLimit 077 * @param securedServiceAddress 078 * @param wasAddress 079 * @param sessionLifetime 080 * @param db 081 */ 082 public WSSDeegreeParams( OnlineResource defaultOnlineResource, int cacheSize, 083 int requestTimeLimit, OnlineResource securedServiceAddress, 084 OnlineResource wasAddress, int sessionLifetime, JDBCConnection db ) { 085 this( defaultOnlineResource, cacheSize, requestTimeLimit, 086 CharsetUtils.getSystemCharset(), securedServiceAddress, wasAddress, sessionLifetime, db ); 087 } 088 089 /** 090 * 091 * @param defaultOnlineResource 092 * @param cacheSize 093 * @param requestTimeLimit 094 * @param characterSet 095 * @param securedServiceAddress 096 * @param wasAddress 097 * @param sessionLifetime 098 * @param db 099 */ 100 public WSSDeegreeParams( OnlineResource defaultOnlineResource, int cacheSize, 101 int requestTimeLimit, String characterSet, 102 OnlineResource securedServiceAddress, OnlineResource wasAddress, 103 int sessionLifetime, JDBCConnection db ) { 104 super( defaultOnlineResource, cacheSize, requestTimeLimit, characterSet ); 105 this.securedServiceAddress = securedServiceAddress; 106 this.wasAddress = wasAddress; 107 this.sessionLifetime = sessionLifetime; 108 this.databaseConnection = db; 109 } 110 111 /** 112 * returns the online resource to access the capabilities of the service hidden behind a WSS 113 * 114 * @return the address 115 */ 116 public OnlineResource getSecuredServiceAddress() { 117 return securedServiceAddress; 118 } 119 120 /** 121 * returns the address of the WAS to be used to authenticate users 122 * 123 * @return the address 124 */ 125 public OnlineResource getWASAddress() { 126 return wasAddress; 127 } 128 129 /** 130 * Returns the maximum lifetime of a session in milliseconds. 131 * @return the lifetime 132 */ 133 public int getSessionLifetime() { 134 return sessionLifetime; 135 } 136 137 /** 138 * @return an object with database connection information 139 */ 140 public JDBCConnection getDatabaseConnection() { 141 return databaseConnection; 142 } 143 144 } 145 146 /*************************************************************************************************** 147 * Changes to this class. What the people have been up to: $Log$ 148 * Changes to this class. What the people have been up to: Revision 1.11 2006/10/17 20:31:20 poth 149 * Changes to this class. What the people have been up to: *** empty log message *** 150 * Changes to this class. What the people have been up to: 151 * Changes to this class. What the people have been up to: Revision 1.10 2006/08/24 06:42:17 poth 152 * Changes to this class. What the people have been up to: File header corrected 153 * Changes to this class. What the people have been up to: 154 * Changes to this class. What the people have been up to: Revision 1.9 2006/07/12 16:59:32 poth 155 * Changes to this class. What the people have been up to: required adaptions according to renaming of OnLineResource to OnlineResource 156 * Changes to this class. What the people have been up to: 157 * Changes to this class. What the people have been up to: Revision 1.8 2006/07/07 15:03:03 schmitz 158 * Changes to this class. What the people have been up to: Fixed a few warnings. 159 * Changes to this class. What the people have been up to: Added database options to WASS deegree params. 160 * Changes to this class. What the people have been up to: 161 * Changes to this class. What the people have been up to: Revision 1.7 2006/06/27 13:10:47 bezema 162 * Changes to this class. What the people have been up to: Finished the last bits of the configuration of the wass. 163 * Changes to this class. What the people have been up to: 164 * Changes to this class. What the people have been up to: Revision 1.6 2006/06/23 10:23:50 schmitz 165 * Changes to this class. What the people have been up to: Completed the WAS, GetSession and CloseSession work. 166 * Changes to this class. What the people have been up to: 167 * Changes to this class. What the people have been up to: Revision 1.5 2006/06/20 15:31:05 bezema 168 * Changes to this class. What the people have been up to: It looks like the completion of wss. was needs further checking in a tomcat environment. The Strings must still be externalized. Logging is done, so is the formatting. 169 * Changes to this class. What the people have been up to: Changes 170 * to this class. What the people have been up to: Revision 1.4 2006/06/09 12:58:32 schmitz Changes 171 * to this class. What the people have been up to: Set up some tests for WAS/WSS and the URN class. 172 * Changes to this class. What the people have been up to: Commented out some of the deegree param 173 * stuff in order for the Changes to this class. What the people have been up to: tests to run. 174 * Changes to this class. What the people have been up to: Tests have hardcoded URLs in them, so 175 * they won't run just anywhere. Changes to this class. What the people have been up to: Changes to 176 * this class. What the people have been up to: Revision 1.3 2006/06/06 15:28:05 bezema Changes to 177 * this class. What the people have been up to: Added a "null" prefix check in xmltools so that it, 178 * added a characterset to the deegreeparams and the WSS::DoService class is almost done Changes to 179 * this class. What the people have been up to: Changes to this class. What the people have been up 180 * to: Revision 1.2 2006/05/30 10:12:02 bezema Changes to this class. What the people have been up 181 * to: Putting the cvs asci option to -kkv which will update the $revision$ $author$ and $date$ 182 * variables in a cvs commit Changes to this class. What the people have been up to: Changes to this 183 * class. What the people have been up to: Revision 1.1 2006/05/29 12:00:58 bezema Changes to this 184 * class. What the people have been up to: Refactored the security and authentication webservices 185 * into one package WASS (Web Authentication -and- Security Services), also created a common package 186 * and a saml package which could be updated to work in the future. Changes to this class. What the 187 * people have been up to: Changes to this class. What the people have been up to: Revision 1.1 188 * 2006/05/23 15:22:02 bezema Changes to this class. What the people have been up to: Added 189 * configuration files to the wss and wss is able to parse a DoService Request in xml 190 * 191 * 192 **************************************************************************************************/