java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,VirtualHost>
com.aoindustries.aoserv.client.CachedObject<Integer,VirtualHost>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<VirtualHost>
com.aoindustries.aoserv.client.web.VirtualHost
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,Disablable
,SingleTableObject<Integer,
VirtualHost>
- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
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
ConstructorDescriptionDeprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionint
addVirtualHostName
(DomainName hostname) boolean
boolean
void
disable
(DisableLog dl) void
enable()
Gets the SSL certificate for this server.protected Object
getColumnImpl
(int i) Controls whether this bind includes the per-site configuration file.getName()
Gets the name of the bind.boolean
Gets the systemd-encoded name of the bind.void
Initializes this object from the raw database contents.boolean
Checks if this object is disabled.boolean
isManual()
void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) void
setIsManual
(boolean isManual) void
setPredisableConfig
(String config) void
setRedirectToPrimaryHostname
(boolean redirectToPrimaryHostname) AoservObject.toString()
implementation that is allowed to throw exceptions.void
write
(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
-
Constructor Details
-
VirtualHost
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
toStringImpl
Description copied from class:AoservObject
AoservObject.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:
toStringImpl
in classCachedObjectIntegerKey<VirtualHost>
- Throws:
SQLException
IOException
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
VirtualHost>
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
VirtualHost>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
VirtualHost> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
VirtualHost> - Throws:
IOException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
VirtualHost> - Throws:
IOException
-
getHttpdSite
- Throws:
SQLException
IOException
-
getHttpdBind
- Throws:
SQLException
IOException
-
getName
Gets the name of the bind. The default per-(site, ip, bind) has a null name. Additional binds per (site, ip, bind) will have non-empty names. The name is unique per (site, ip, bind), including only one default bind.- See Also:
-
getSystemdEscapedName
Gets the systemd-encoded name of the bind.- See Also:
-
getAccessLog
-
getErrorLog
-
getCertificate
Gets the SSL certificate for this server.- Returns:
- the SSL certificate or
null
when filtered or not applicable - Throws:
SQLException
IOException
-
getDisableLog
- Specified by:
getDisableLog
in interfaceDisablable
- Throws:
SQLException
IOException
-
isDisabled
public boolean isDisabled()Description copied from interface:Disablable
Checks if this object is disabled. This should execute very quickly (not incur any round-trip to any database) and thus does not throw any checked exceptions.- Specified by:
isDisabled
in interfaceDisablable
-
canDisable
public boolean canDisable()- Specified by:
canDisable
in interfaceDisablable
-
canEnable
- Specified by:
canEnable
in interfaceDisablable
- Throws:
SQLException
IOException
-
disable
- Specified by:
disable
in interfaceDisablable
- Throws:
IOException
SQLException
-
enable
- Specified by:
enable
in interfaceDisablable
- Throws:
IOException
SQLException
-
getPredisableConfig
-
setPredisableConfig
- Throws:
IOException
SQLException
-
isManual
public boolean isManual() -
setIsManual
- Throws:
IOException
SQLException
-
getRedirectToPrimaryHostname
public boolean getRedirectToPrimaryHostname() -
setRedirectToPrimaryHostname
public void setRedirectToPrimaryHostname(boolean redirectToPrimaryHostname) throws IOException, SQLException - Throws:
IOException
SQLException
-
getIncludeSiteConfig
Controls whether this bind includes the per-site configuration file. Will be one of:null
- Automatic mode"true"
- Include manually enabled"false"
- Include manually disabled"IfModule <module_name>"
- Include when a module is enabled"IfModule !<module_name>"
- Include when a module is disabled- Any future unrecognized value should be treated as equivalent to
null
(automatic mode)
-
getVirtualHostNames
- Throws:
IOException
SQLException
-
getPrimaryVirtualHostName
- Throws:
SQLException
IOException
-
getAltVirtualHostNames
- Throws:
IOException
SQLException
-
addVirtualHostName
- Throws:
IOException
SQLException
-
getHttpdSiteBindHeaders
- Throws:
IOException
SQLException
-
getRewriteRules
- Throws:
IOException
SQLException
-