Package org.astrogrid.samp.xmlrpc
Class XmlRpcKit.UnavailableKit
- java.lang.Object
-
- org.astrogrid.samp.xmlrpc.XmlRpcKit
-
- org.astrogrid.samp.xmlrpc.XmlRpcKit.UnavailableKit
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Throwableerror_private java.lang.Stringname_-
Fields inherited from class org.astrogrid.samp.xmlrpc.XmlRpcKit
APACHE, IMPL_PROP, INTERNAL, KNOWN_IMPLS, RPC_LOGGING, XML_LOGGING
-
-
Constructor Summary
Constructors Constructor Description UnavailableKit(java.lang.String name, java.lang.Throwable error)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SampXmlRpcClientFactorygetClientFactory()Returns an XML-RPC client factory.java.lang.StringgetName()Returns the name of this kit.SampXmlRpcServerFactorygetServerFactory()Returns an XML-RPC server factory.booleanisAvailable()Indicates whether this object is ready for use.java.lang.StringtoString()-
Methods inherited from class org.astrogrid.samp.xmlrpc.XmlRpcKit
createReflectionKit, getInstance, getInstanceByName
-
-
-
-
Method Detail
-
getClientFactory
public SampXmlRpcClientFactory getClientFactory()
Description copied from class:XmlRpcKitReturns an XML-RPC client factory.- Specified by:
getClientFactoryin classXmlRpcKit- Returns:
- client factory
-
getServerFactory
public SampXmlRpcServerFactory getServerFactory()
Description copied from class:XmlRpcKitReturns an XML-RPC server factory.- Specified by:
getServerFactoryin classXmlRpcKit- Returns:
- server factory
-
getName
public java.lang.String getName()
Description copied from class:XmlRpcKitReturns the name of this kit.
-
isAvailable
public boolean isAvailable()
Description copied from class:XmlRpcKitIndicates whether this object is ready for use. If it returns false (perhaps because some classes are unavailable at runtime) thenXmlRpcKit.getClientFactory()andXmlRpcKit.getServerFactory()may throw exceptions rather than behaving as documented.- Specified by:
isAvailablein classXmlRpcKit- Returns:
- true if this object works
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-