All Packages Class Hierarchy This Package Previous Next Index
Class key.Site
java.lang.Object
|
+----key.Atom
|
+----key.Site
- public class Site
- extends Atom
- implements Subnet
It's too hard to give sites a unique name, but its useful to
store them in a container to save us writing custom load/save
routines. It also means if you *do* know a sites 'number' on
the program, you have a chance ;)
-
Site()
-
-
Site(int[])
- You can construct a Site with any IP, but
only the relevant IP's will be stored.
-
connectionsAllowed()
-
-
connectionStatistics()
-
-
evalReadOnlyProperty(ReadOnlyProperty)
- override to return the correct value for the supplied property
make sure you call super.evalReadOnlyProperty if you don't
understand it before returning null
-
fullResolve()
-
-
getMask()
-
-
getTrailer()
-
-
loadFrom(DataInput)
-
-
newbiesAllowed()
-
-
registerSite(String)
- Some sites will have dns entries for certain IP's
within them, and not have entries for others.
-
resetTrailer(String)
- The passed in string MUST be lowercase
-
setBan(String, Player, DateTime, DateTime, String)
-
-
toString()
-
-
writeTo(DataOutput)
-
Site
public Site()
Site
public Site(int ip[])
- You can construct a Site with any IP, but
only the relevant IP's will be stored.
evalReadOnlyProperty
public Object evalReadOnlyProperty(ReadOnlyProperty p)
- override to return the correct value for the supplied property
make sure you call super.evalReadOnlyProperty if you don't
understand it before returning null
- Overrides:
- evalReadOnlyProperty in class Atom
newbiesAllowed
public final boolean newbiesAllowed()
connectionsAllowed
public final boolean connectionsAllowed()
connectionStatistics
public final TimeStatistics connectionStatistics()
resetTrailer
protected void resetTrailer(String newT)
- The passed in string MUST be lowercase
writeTo
public void writeTo(DataOutput to) throws IOException
- Overrides:
- writeTo in class Atom
loadFrom
public void loadFrom(DataInput from) throws IOException
- Overrides:
- loadFrom in class Atom
getMask
public int[] getMask()
getTrailer
public String getTrailer()
registerSite
public void registerSite(String dns)
- Some sites will have dns entries for certain IP's
within them, and not have entries for others. We
also need this code to find the 'lowest common
denominator' in the site alpha.
toString
public String toString()
- Overrides:
- toString in class Atom
fullResolve
public void fullResolve()
- Overrides:
- fullResolve in class Atom
setBan
public final void setBan(String banType,
Player p,
DateTime now,
DateTime until,
String reason)
All Packages Class Hierarchy This Package Previous Next Index