Class Context
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,Context>
com.aoindustries.aoserv.client.CachedObject<Integer,Context>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<Context>
com.aoindustries.aoserv.client.web.tomcat.Context
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,Removable
,SingleTableObject<Integer,
Context>
Represents one context within a
HttpdTomcatSite
.- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
These are the default values for a new site.static final boolean
static final boolean
static final int
static final boolean
static final boolean
static final boolean
static final boolean
static final boolean
static final PosixPath
static final String
static final String
static final String
The ROOT webapp details.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
ConstructorDescriptionContext()
Deprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionint
addHttpdTomcatDataSource
(String name, String driverClassName, String url, String username, String password, int maxActive, int maxIdle, int maxWait, String validationQuery) int
addHttpdTomcatParameter
(String name, String value, boolean override, String description) boolean
boolean
Lists the reasons an object may not be removed.protected Object
getColumnImpl
(int i) int
int
getPath()
void
Initializes this object from the raw database contents.boolean
boolean
boolean
static boolean
isValidDocBase
(PosixPath docBase) static boolean
isValidPath
(String path) static boolean
isValidWorkDir
(PosixPath workDir) void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) void
remove()
Removes this object, and all dependant objects, from the system.void
setAttributes
(String className, boolean cookies, boolean crossContext, PosixPath docBase, boolean override, String path, boolean privileged, boolean reloadable, boolean useNaming, String wrapperClass, int debug, PosixPath workDir, boolean serverXmlConfigured) boolean
boolean
void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCode, toStringImpl
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 Details
-
DEFAULT_CLASS_NAME
These are the default values for a new site. -
DEFAULT_COOKIES
public static final boolean DEFAULT_COOKIES- See Also:
-
DEFAULT_CROSS_CONTEXT
public static final boolean DEFAULT_CROSS_CONTEXT- See Also:
-
DEFAULT_OVERRIDE
public static final boolean DEFAULT_OVERRIDE- See Also:
-
DEFAULT_PRIVILEGED
public static final boolean DEFAULT_PRIVILEGED- See Also:
-
DEFAULT_RELOADABLE
public static final boolean DEFAULT_RELOADABLE- See Also:
-
DEFAULT_USE_NAMING
public static final boolean DEFAULT_USE_NAMING- See Also:
-
DEFAULT_WRAPPER_CLASS
-
DEFAULT_DEBUG
public static final int DEFAULT_DEBUG- See Also:
-
DEFAULT_WORK_DIR
-
DEFAULT_SERVER_XML_CONFIGURED
public static final boolean DEFAULT_SERVER_XML_CONFIGURED- See Also:
-
ROOT_PATH
The ROOT webapp details.- See Also:
-
ROOT_DOC_BASE
- See Also:
-
-
Constructor Details
-
Context
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
addHttpdTomcatDataSource
public int addHttpdTomcatDataSource(String name, String driverClassName, String url, String username, String password, int maxActive, int maxIdle, int maxWait, String validationQuery) throws IOException, SQLException - Throws:
IOException
SQLException
-
addHttpdTomcatParameter
public int addHttpdTomcatParameter(String name, String value, boolean override, String description) throws IOException, SQLException - Throws:
IOException
SQLException
-
getCannotRemoveReasons
Description copied from interface:Removable
Lists the reasons an object may not be removed.- Specified by:
getCannotRemoveReasons
in interfaceRemovable
- Returns:
- an empty
List<CannotRemoveReason>
if this object may be removed, or a list of descriptions
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
Context>
-
getHttpdTomcatSite_httpdSite_id
public int getHttpdTomcatSite_httpdSite_id() -
getHttpdTomcatSite
- Throws:
SQLException
IOException
-
getClassName
-
useCookies
public boolean useCookies() -
allowCrossContext
public boolean allowCrossContext() -
getDocBase
-
allowOverride
public boolean allowOverride() -
getPath
-
isPrivileged
public boolean isPrivileged() -
isReloadable
public boolean isReloadable() -
useNaming
public boolean useNaming() -
getWrapperClass
-
getDebugLevel
public int getDebugLevel() -
getWorkDir
-
isServerXmlConfigured
public boolean isServerXmlConfigured() -
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
Context>
-
getHttpdTomcatDataSources
- Throws:
IOException
SQLException
-
getHttpdTomcatDataSource
- Throws:
IOException
SQLException
-
getHttpdTomcatParameters
- Throws:
IOException
SQLException
-
getHttpdTomcatParameter
- Throws:
IOException
SQLException
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
Context> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
isValidDocBase
-
isValidPath
-
isValidWorkDir
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
Context> - Throws:
IOException
-
setAttributes
public void setAttributes(String className, boolean cookies, boolean crossContext, PosixPath docBase, boolean override, String path, boolean privileged, boolean reloadable, boolean useNaming, String wrapperClass, int debug, PosixPath workDir, boolean serverXmlConfigured) throws IOException, SQLException - Throws:
IOException
SQLException
-
remove
Description copied from interface:Removable
Removes this object, and all dependant objects, from the system.- Specified by:
remove
in interfaceRemovable
- Throws:
IOException
SQLException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
Context> - Throws:
IOException
-