restart.server
Class ServicePolicy

java.lang.Object
  extended by restart.server.ServicePolicy

public abstract class ServicePolicy
extends java.lang.Object

Policy about the Service. Implement your version of this class or use the default policy.

Author:
Thibault Ducray

Constructor Summary
ServicePolicy()
           
 
Method Summary
 boolean acceptCallFrom(java.net.InetAddress caller)
          Check wether this service call could be made from the given address.
static ServicePolicy getDefaultInstance()
          Get the default implementation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicePolicy

public ServicePolicy()
Method Detail

getDefaultInstance

public static ServicePolicy getDefaultInstance()
Get the default implementation.


acceptCallFrom

public boolean acceptCallFrom(java.net.InetAddress caller)
Check wether this service call could be made from the given address.
Default implementation returns true.