public class SshServer extends AbstractServer
DEFAULT_CHANNEL_ID_SUFFIX| Constructor and Description |
|---|
SshServer()
Default constructor using default endpoint configuration.
|
SshServer(SshEndpointConfiguration endpointConfiguration)
Constructor using endpoint configuration.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAllowedKeyPath()
Gets the allowed key path.
|
AbstractPollableEndpointConfiguration |
getEndpointConfiguration() |
String |
getHostKeyPath()
Gets the host key path.
|
SshMessageConverter |
getMessageConverter()
Gets the message converter.
|
String |
getPassword()
Gets the user password.
|
int |
getPort()
Gets the server port.
|
protected org.apache.sshd.common.scp.ScpTransferEventListener |
getScpTransferEventListener()
Gets Scp trsanfer event listener.
|
protected org.apache.sshd.server.subsystem.sftp.SftpEventListener |
getSftpEventListener()
Gets Sftp event listener.
|
String |
getUser()
Gets the username.
|
String |
getUserHomePath()
Gets the userHomePath.
|
void |
setAllowedKeyPath(String allowedKeyPath)
Sets the allowedKeyPath.
|
void |
setHostKeyPath(String hostKeyPath)
Sets the hostKeyPath.
|
void |
setMessageConverter(SshMessageConverter messageConverter)
Sets the message converter.
|
void |
setPassword(String password)
Sets the password.
|
void |
setPort(int port)
Sets the port.
|
void |
setUser(String user)
Sets the user.
|
void |
setUserHomePath(String userHomePath)
Sets the userHomePath.
|
protected void |
shutdown() |
protected void |
startup() |
afterPropertiesSet, createConsumer, createProducer, destroy, getBeanFactory, getDefaultTimeout, getEndpointAdapter, getInterceptors, isAutoStart, isDebugLogging, isRunning, join, run, setAutoStart, setBeanFactory, setDebugLogging, setDefaultTimeout, setEndpointAdapter, setInterceptors, setRunning, start, stopgetActor, getConsumerName, getName, getProducerName, setActor, setBeanName, setNamepublic SshServer()
public SshServer(SshEndpointConfiguration endpointConfiguration)
endpointConfiguration - protected void startup()
startup in class AbstractServerprotected org.apache.sshd.common.scp.ScpTransferEventListener getScpTransferEventListener()
protected org.apache.sshd.server.subsystem.sftp.SftpEventListener getSftpEventListener()
protected void shutdown()
shutdown in class AbstractServerpublic AbstractPollableEndpointConfiguration getEndpointConfiguration()
getEndpointConfiguration in interface EndpointgetEndpointConfiguration in class AbstractServerpublic int getPort()
public void setPort(int port)
port - the port to setpublic String getUser()
public void setUser(String user)
user - the user to setpublic String getPassword()
public void setPassword(String password)
password - the password to setpublic String getAllowedKeyPath()
public void setAllowedKeyPath(String allowedKeyPath)
allowedKeyPath - the allowedKeyPath to setpublic String getHostKeyPath()
public void setHostKeyPath(String hostKeyPath)
hostKeyPath - the hostKeyPath to setpublic String getUserHomePath()
public void setUserHomePath(String userHomePath)
userHomePath - public SshMessageConverter getMessageConverter()
public void setMessageConverter(SshMessageConverter messageConverter)
messageConverter - Copyright © 2008–2019 ConSol Software GmbH. All rights reserved.