java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,Header>
com.aoindustries.aoserv.client.CachedObject<Integer,Header>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<Header>
com.aoindustries.aoserv.client.web.Header
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,SingleTableObject<Integer,
Header>
Each
VirtualHost
may have header configurations attached to it.
See mod_headers - Apache HTTP Server Version 2.4.- Author:
- AO Industries, Inc.
- See Also:
-
Nested Class Summary
-
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
-
Method Summary
Modifier and TypeMethodDescriptionGets the action.boolean
Thecondition
is either "onsuccess" (default, can be omitted) or "always".getApacheDirective
(String dollarVariable) Gets the Apache directive for this header.protected Object
getColumnImpl
(int i) The header name, without any final colon.Gets the replacement.short
getType()
getValue()
Gets the value.getWhen()
Optional control over when is this header directive is applied.void
Initializes this object from the raw database contents.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) 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
-
Header
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
Header>
-
getHttpdSiteBind
- Throws:
SQLException
IOException
-
getSortOrder
public short getSortOrder() -
getType
-
getAlways
public boolean getAlways()Thecondition
is either "onsuccess" (default, can be omitted) or "always". We model this as a simple flag to enable "always".Header.Type.Header
-only. -
getAction
Gets the action. One of (with potentially more supported in the future):- "add"
- "append"
- "echo" (
Header.Type.Header
-only) - "edit"
- "edit*"
- "merge"
- "set"
- "setifempty"
- "unset"
- "note" (
Header.Type.Header
-only)
-
getHeader
The header name, without any final colon.In the Apache directive, the final colon is optional. We choose to not allow the final colon to avoid any unnecessary ambiguities.
-
getValue
Gets the value. As used by any of the following actions:- "add"
- "append"
- "edit"
- "edit*"
- "merge"
- "set"
- "setifempty"
- "note" (
Header.Type.Header
-only)
- "echo" (
Header.Type.Header
-only) - "unset"
-
getReplacement
Gets the replacement. Only used by the following actions:- "edit"
- "edit*"
-
getWhen
Optional control over when is this header directive is applied. Will be one of (with potentially more supported in the future):- "early"
- "env=*"
- "expr=*"
-
getComment
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
Header>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
Header> - 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,
Header> - Throws:
IOException
-
getApacheDirective
Gets the Apache directive for this header. -
toStringImpl
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<Header>
- See Also:
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
Header> - Throws:
IOException
-