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.Throwable
error_
private java.lang.String
name_
-
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 SampXmlRpcClientFactory
getClientFactory()
Returns an XML-RPC client factory.java.lang.String
getName()
Returns the name of this kit.SampXmlRpcServerFactory
getServerFactory()
Returns an XML-RPC server factory.boolean
isAvailable()
Indicates whether this object is ready for use.java.lang.String
toString()
-
Methods inherited from class org.astrogrid.samp.xmlrpc.XmlRpcKit
createReflectionKit, getInstance, getInstanceByName
-
-
-
-
Method Detail
-
getClientFactory
public SampXmlRpcClientFactory getClientFactory()
Description copied from class:XmlRpcKit
Returns an XML-RPC client factory.- Specified by:
getClientFactory
in classXmlRpcKit
- Returns:
- client factory
-
getServerFactory
public SampXmlRpcServerFactory getServerFactory()
Description copied from class:XmlRpcKit
Returns an XML-RPC server factory.- Specified by:
getServerFactory
in classXmlRpcKit
- Returns:
- server factory
-
getName
public java.lang.String getName()
Description copied from class:XmlRpcKit
Returns the name of this kit.
-
isAvailable
public boolean isAvailable()
Description copied from class:XmlRpcKit
Indicates 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:
isAvailable
in classXmlRpcKit
- Returns:
- true if this object works
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-