org.onebusaway.federations.impl
Class FederatedServiceEntryImpl
java.lang.Object
org.onebusaway.federations.impl.FederatedServiceEntryImpl
public class FederatedServiceEntryImpl
- extends Object
Federated service registry entry helper class for
FederatedServiceRegistryImpl
- Author:
- bdferris
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FederatedServiceEntryImpl
public FederatedServiceEntryImpl(String serviceUrl,
String serviceClass,
Map<String,String> properties)
setEnabled
public void setEnabled(boolean enabled)
isApplicable
public boolean isApplicable(Map<String,String> properties)
- Determines if a particular service entry is applicable for a set of target
properties. A service is applicable if the service has property values
equals to all those specified in
properties
.
- Parameters:
properties
-
- Returns:
getExpiresAfter
public long getExpiresAfter()
setExpiresAfter
public void setExpiresAfter(long expiresAfter)
isExpired
public boolean isExpired()
getServiceUrl
public String getServiceUrl()
getServiceClass
public String getServiceClass()
getProperties
public Map<String,String> getProperties()
isEnabled
public boolean isEnabled()
getAsEntry
public FederatedServiceRegistryEntry getAsEntry()
Copyright © 2012 OneBusAway. All Rights Reserved.