|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindtree.techworks.insight.download.RemoteClientFactory
public class RemoteClientFactory
Returns instances of RemoteClient
based on the Fileset passed.
The class looks at the Fileset type to determine the RemoteClient to pass.
Fileset type.
Constructor Summary | |
---|---|
RemoteClientFactory()
|
Method Summary | |
---|---|
static RemoteClient |
getClientForFileset(Fileset fileset)
Identifies and returns a client for the fileset provided |
static void |
registerClient(java.lang.String protocolIdentifier,
java.lang.Class handlerClass)
Method to be called on load by all Handlers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteClientFactory()
Method Detail |
---|
public static void registerClient(java.lang.String protocolIdentifier, java.lang.Class handlerClass)
RemoteClient
identifiers.
protocolIdentifier
- The protocol identifierhandlerClass
- The class handling the protocolpublic static RemoteClient getClientForFileset(Fileset fileset) throws RemoteClientException
fileset
- The fileset to get a client for
RemoteClientException
- If no handler is configured for the
protocol in the fileset, or if a client cannot be
instantiated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |