getCustomPingTargets(WebsiteData website) Get a list of the custom ping targets for the given website.
Parameters: website - the website whose custom targets should be returned.
getPingTarget(String id) Retrieve a specific ping target by id.
Parameters: id - id of the ping target to be retrieved.
public boolean
isHostnameKnown(PingTargetData pingTarget) Check if the host portion of the url of the ping target is known, meaning it is either a well-formed IP address
or a hostname that resolves from the server.
public boolean
isNameUnique(PingTargetData pingTarget) Check if the ping target has a name that is unique in the appropriate set.
Get a list of the custom ping targets for the given website.
Parameters: website - the website whose custom targets should be returned. the list of custom ping targets for the given website as a List of PingTargetDataobjects throws: RollerException -
Retrieve a specific ping target by id.
Parameters: id - id of the ping target to be retrieved. the ping target whose id is specified. throws: RollerException -
Check if the host portion of the url of the ping target is known, meaning it is either a well-formed IP address
or a hostname that resolves from the server. The ping target url must parse as a java.net.URL in
order for the hostname to be extracted for this test. This will return false if that parsing fails.
Parameters: pingTarget - true if the pingUrl (is well-formed and) the host portion of the url of theping target is a valid IP address or a hostname that can be resolved on the server. throws: RollerException -
Check if the ping target has a name that is unique in the appropriate set. If the ping target has no website id
(is common), then this checks if the name is unique amongst common targets, and if custom then unique amongst
custom targets. If the target has a non-null id, then it is allowed to have the same name as tha existing stored
target with the same id.
Parameters: pingTarget - true if the name is unique in the appropriate set (custom or common) ping targets. throws: RollerException -
Check if the url of the ping target is well-formed. For this test, it must parse as a java.net.URL,
with protocol http and a non-empty host portion.
Parameters: pingTarget - true if the pingUrl property of the ping target is a well-formed url. throws: RollerException -