| java.lang.Object org.apache.roller.pojos.PersistentObject org.apache.roller.pojos.PingTargetData
PingTargetData | public class PingTargetData extends PersistentObject implements Serializable(Code) | | Ping target. Each instance represents a possible target of a weblog update ping that we send. Ping targets are
either common (defined centrally by an administrator and used by any website), or custom (defined by the user of a
specific website) for update pings issued for that website.
author: Anil Gangolli |
CONDITION_DISABLED | final public static int CONDITION_DISABLED(Code) | | |
CONDITION_FAILING | final public static int CONDITION_FAILING(Code) | | |
CONDITION_OK | final public static int CONDITION_OK(Code) | | |
serialVersionUID | final public static long serialVersionUID(Code) | | |
PingTargetData | public PingTargetData()(Code) | | Default empty constructor.
|
PingTargetData | public PingTargetData(String id, String name, String pingUrl, WebsiteData website, boolean autoEnable)(Code) | | Constructor.
Parameters: id - the id (primary key) of this target Parameters: name - the descriptive name of this target Parameters: pingUrl - the URL to which to send the ping Parameters: website - the website (on this server) for which this is a custom ping target (may be null) |
getId | public java.lang.String getId()(Code) | | Get the unique id of this ping target.
the unique id of this ping target. |
getLastSuccess | public Timestamp getLastSuccess()(Code) | | Get the timestamp of the last successful ping (UTC/GMT).
the timestamp of the last successful ping; null if the target has not yet been used. |
getName | public java.lang.String getName()(Code) | | get the name of this ping target. This is a name assigned by the administrator or a user (for custom) targets.
It is deescriptive and is not necessarily unique.
the name of this ping target |
getPingUrl | public String getPingUrl()(Code) | | Get the URL to ping.
the URL to ping. |
getWebsite | public WebsiteData getWebsite()(Code) | | Get the website (on this server) for which this ping target is a custom target. This may be null, indicating
that it is a common ping target, not a custom one.
the website for which this ping target is a custom target, or null if this ping target is not a customtarget. |
isAutoEnabled | public boolean isAutoEnabled()(Code) | | Is this ping target enabled by default for new weblogs?
true if ping target is auto enabled. false otherwise. |
setAutoEnabled | public void setAutoEnabled(boolean autoEnabled)(Code) | | Set the auto enabled status for this ping target. This field only
applies for common ping targets.
Parameters: autoEnabled - true if the ping target should be auto enabled. |
setConditionCode | public void setConditionCode(int conditionCode)(Code) | | Set the condition code value.
Parameters: conditionCode - the condition code value to set |
setLastSuccess | public void setLastSuccess(Timestamp lastSuccess)(Code) | | Set the timestamp of the last successful ping.
Parameters: lastSuccess - the timestamp of the last successful ping. |
setName | public void setName(java.lang.String name)(Code) | | Set the name of this ping target.
Parameters: name - the name of this ping target |
setPingUrl | public void setPingUrl(String pingUrl)(Code) | | Set the URL to ping.
Parameters: pingUrl - |
setWebsite | public void setWebsite(WebsiteData website)(Code) | | Set the website (on this server) for which this ping target is a custom target.
Parameters: website - the website for which this ping target is a custom target, or null if this ping target is not acustom target |
toString | public String toString()(Code) | | Generate a string form of the object appropriate for logging or debugging.
a string form of the object appropriate for logging or debugging. See Also: java.lang.Object.toString |
|
|