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
pkeyFields inherited from class com.aoindustries.aoserv.client.CachedObject
tableFields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionintaddVirtualHostName(DomainName hostname) booleanbooleanvoiddisable(DisableLog dl) voidenable()Gets the SSL certificate for this server.protected ObjectgetColumnImpl(int i) Controls whether this bind includes the per-site configuration file.getName()Gets the name of the bind.booleanGets the systemd-encoded name of the bind.voidInitializes this object from the raw database contents.booleanChecks if this object is disabled.booleanisManual()voidread(StreamableInput in, AoservProtocol.Version protocolVersion) voidsetIsManual(boolean isManual) voidsetPredisableConfig(String config) voidsetRedirectToPrimaryHostname(boolean redirectToPrimaryHostname) 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, hashCodeMethods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTableMethods 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, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
toStringImpl
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<VirtualHost>- Throws:
SQLExceptionIOException
-
getColumnImpl
- Specified by:
getColumnImplin classAoservObject<Integer,VirtualHost>
-
getTableId
- Specified by:
getTableIdin classAoservObject<Integer,VirtualHost>
-
init
Description copied from class:AoservObjectInitializes this object from the raw database contents.- Specified by:
initin classAoservObject<Integer,VirtualHost> - Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
readin interfaceAoservReadable- Specified by:
readin interfaceAoservStreamable- Specified by:
readin classAoservObject<Integer,VirtualHost> - Throws:
IOException
-
write
- Specified by:
writein interfaceAoservStreamable- Specified by:
writein interfaceAoservWritable- Specified by:
writein classAoservObject<Integer,VirtualHost> - Throws:
IOException
-
getHttpdSite
- Throws:
SQLExceptionIOException
-
getHttpdBind
- Throws:
SQLExceptionIOException
-
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
nullwhen filtered or not applicable - Throws:
SQLExceptionIOException
-
getDisableLog
- Specified by:
getDisableLogin interfaceDisablable- Throws:
SQLExceptionIOException
-
isDisabled
public boolean isDisabled()Description copied from interface:DisablableChecks 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:
isDisabledin interfaceDisablable
-
canDisable
public boolean canDisable()- Specified by:
canDisablein interfaceDisablable
-
canEnable
- Specified by:
canEnablein interfaceDisablable- Throws:
SQLExceptionIOException
-
disable
- Specified by:
disablein interfaceDisablable- Throws:
IOExceptionSQLException
-
enable
- Specified by:
enablein interfaceDisablable- Throws:
IOExceptionSQLException
-
getPredisableConfig
-
setPredisableConfig
- Throws:
IOExceptionSQLException
-
isManual
public boolean isManual() -
setIsManual
- Throws:
IOExceptionSQLException
-
getRedirectToPrimaryHostname
public boolean getRedirectToPrimaryHostname() -
setRedirectToPrimaryHostname
public void setRedirectToPrimaryHostname(boolean redirectToPrimaryHostname) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
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:
IOExceptionSQLException
-
getPrimaryVirtualHostName
- Throws:
SQLExceptionIOException
-
getAltVirtualHostNames
- Throws:
IOExceptionSQLException
-
addVirtualHostName
- Throws:
IOExceptionSQLException
-
getHttpdSiteBindHeaders
- Throws:
IOExceptionSQLException
-
getRewriteRules
- Throws:
IOExceptionSQLException
-
