Class PrivateTomcatSite
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.CachedObject<Integer,V>
-
- com.aoindustries.aoserv.client.CachedObjectIntegerKey<PrivateTomcatSite>
-
- com.aoindustries.aoserv.client.web.tomcat.PrivateTomcatSite
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,SingleTableObject<Integer,PrivateTomcatSite>
public final class PrivateTomcatSite extends CachedObjectIntegerKey<PrivateTomcatSite>
AnHttpdStdTomcatSiteindicates that aHttpdTomcatSiteis configured in the standard layout of one Tomcat instance per Java virtual machine.- Author:
- AO Industries, Inc.
- See Also:
Site
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_MAX_POST_SIZEThe default setting of maxPostSize on the <Connector /> in server.xml.static StringDEFAULT_TOMCAT_VERSION_PREFIX-
Fields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
pkey
-
Fields inherited from class com.aoindustries.aoserv.client.CachedObject
table
-
Fields inherited from class com.aoindustries.aoserv.client.AOServObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
-
Constructor Summary
Constructors Constructor Description PrivateTomcatSite()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAutoDeploy()Gets theautoDeploysetting for this Tomcat.protected ObjectgetColumnImpl(int i)SitegetHttpdTomcatSite()intgetMaxPostSize()Gets the max post size or-1of not limited.Table.TableIDgetTableID()StringgetTomcat4ShutdownKey()BindgetTomcat4ShutdownPort()IntegergetTomcat4ShutdownPort_id()booleangetTomcatAuthentication()Gets thetomcatAuthenticationsetting for this Tomcat.booleangetUnpackWARs()Gets theunpackWARssetting for this Tomcat.voidinit(ResultSet result)Initializes this object from the raw database contents.voidread(StreamableInput in, AoservProtocol.Version protocolVersion)voidsetAutoDeploy(boolean autoDeploy)voidsetHttpdTomcatVersion(Version version)voidsetMaxPostSize(int maxPostSize)voidsetTomcatAuthentication(boolean tomcatAuthentication)voidsetUnpackWARs(boolean unpackWARs)StringtoStringImpl()AOServObject.toString()implementation that is allowed to throw exceptions.voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion)-
Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCode
-
Methods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTable
-
Methods inherited from class com.aoindustries.aoserv.client.AOServObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxID, getLinuxUserName, getMacAddress, getMySQLDatabaseName, getMySQLServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, read, toString, write
-
-
-
-
Field Detail
-
DEFAULT_MAX_POST_SIZE
public static final int DEFAULT_MAX_POST_SIZE
The default setting of maxPostSize on the <Connector /> in server.xml. This raises the value from the Tomcat default of 2 MiB to a more real-world value, such as allowing uploads of pictures from modern digital cameras.- See Also:
getMaxPostSize(), Constant Field Values
-
DEFAULT_TOMCAT_VERSION_PREFIX
public static final String DEFAULT_TOMCAT_VERSION_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,PrivateTomcatSite>
-
getHttpdTomcatSite
public Site getHttpdTomcatSite() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getTomcat4ShutdownKey
public String getTomcat4ShutdownKey()
-
getMaxPostSize
public int getMaxPostSize()
Gets the max post size or-1of not limited.
-
setMaxPostSize
public void setMaxPostSize(int maxPostSize) throws IOException, SQLException- Throws:
IOExceptionSQLException
-
getUnpackWARs
public boolean getUnpackWARs()
Gets theunpackWARssetting for this Tomcat.
-
setUnpackWARs
public void setUnpackWARs(boolean unpackWARs) throws IOException, SQLException- Throws:
IOExceptionSQLException
-
getAutoDeploy
public boolean getAutoDeploy()
Gets theautoDeploysetting for this Tomcat.
-
setAutoDeploy
public void setAutoDeploy(boolean autoDeploy) throws IOException, SQLException- Throws:
IOExceptionSQLException
-
getTomcatAuthentication
public boolean getTomcatAuthentication()
Gets thetomcatAuthenticationsetting for this Tomcat.
-
setTomcatAuthentication
public void setTomcatAuthentication(boolean tomcatAuthentication) throws IOException, SQLException- Throws:
IOExceptionSQLException
-
getTomcat4ShutdownPort_id
public Integer getTomcat4ShutdownPort_id()
-
getTomcat4ShutdownPort
public Bind getTomcat4ShutdownPort() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,PrivateTomcatSite>
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<Integer,PrivateTomcatSite>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<Integer,PrivateTomcatSite>- Throws:
IOException
-
toStringImpl
public String toStringImpl() throws SQLException, IOException
Description copied from class:AOServObjectAOServObject.toString()implementation that is allowed to throw exceptions.Implementation Note:
This default implementation callsAOServObject.toString()on the key (fromAOServObject.getKey()). When the key isnull, uses the default implementation fromObject.toString().- Overrides:
toStringImplin classCachedObjectIntegerKey<PrivateTomcatSite>- Throws:
SQLExceptionIOException
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,PrivateTomcatSite>- Throws:
IOException
-
setHttpdTomcatVersion
public void setHttpdTomcatVersion(Version version) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
-