Top Fields Methods
org.apache.sshd.common

public Interface ServiceFactory

extends NamedResource
Known Direct Implementers
org.apache.sshd.common.auth.AbstractUserAuthServiceFactory, org.apache.sshd.server.session.ServerConnectionServiceFactory, org.apache.sshd.client.session.ClientConnectionServiceFactory
Imports
java.io.IOException, java.util.Collection, org.apache.sshd.common.session.Session

Field Summary

Inherited from org.apache.sshd.common.NamedResource:
BY_NAME_COMPARATORNAME_EXTRACTOR

Method Summary

Modifier and TypeMethod and Description
public Service
create(Session session)

public static Service

Returns:

a newly created object or null if the factory is not in the list
create
(Collection<? extends ServiceFactory>
list of available factories
factories
,
String
the factory name to use
name
,
Session
the referenced Session
session
)

Create an instance of the specified name by looking up the needed factory in the list (case insensitive.

Inherited from org.apache.sshd.common.NamedResource:
findByNamefindFirstMatchByNamegetNamegetNameListgetNamesofNameremoveByNamesafeCompareByName

Method Detail

createback to summary
public Service create(Session session) throws IOException
createback to summary
public static Service create(Collection<? extends ServiceFactory> factories, String name, Session session) throws IOException

Create an instance of the specified name by looking up the needed factory in the list (case insensitive.

Parameters
factories:Collection<? extends ServiceFactory>

list of available factories

name:String

the factory name to use

session:Session

the referenced Session

Returns:Service

a newly created object or null if the factory is not in the list

Exceptions
IOException:
if session creation failed
See Also
ServiceFactory#create(Session)