Package com.consol.citrus.ssh.server
Class SshServerBuilder
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointBuilder<T>
-
- com.consol.citrus.server.AbstractServerBuilder<SshServer,SshServerBuilder>
-
- com.consol.citrus.ssh.server.SshServerBuilder
-
- All Implemented Interfaces:
EndpointBuilder<SshServer>
public class SshServerBuilder extends AbstractServerBuilder<SshServer,SshServerBuilder>
- Since:
- 2.5
- Author:
- Christoph Deppisch
-
-
Field Summary
-
Fields inherited from interface com.consol.citrus.endpoint.EndpointBuilder
LOG, RESOURCE_PATH, TYPE_RESOLVER
-
-
Constructor Summary
Constructors Constructor Description SshServerBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SshServerBuilderallowedKeyPath(String allowedKeyPath)Sets the allowedKeyPath property.SshServerBuilderautoStart(boolean autoStart)Sets the autoStart property.SshServerBuilderdebugLogging(boolean enabled)Sets the debug logging enabled flag.SshServerBuilderendpointAdapter(EndpointAdapter endpointAdapter)Sets the endpoint adapter.protected SshServergetEndpoint()SshServerBuilderhostKeyPath(String hostKeyPath)Sets the hostKeyPath property.SshServerBuildermarshaller(SshMarshaller marshaller)Sets the marshaller.SshServerBuildermessageConverter(SshMessageConverter messageConverter)Sets the message converter.SshServerBuilderpassword(String password)Sets the client password.SshServerBuilderpollingInterval(int pollingInterval)Sets the polling interval.SshServerBuilderport(int port)Sets the port property.SshServerBuilderuser(String user)Sets the user property.SshServerBuilderuserHomePath(String userHomePath)Sets the userHomePath property.-
Methods inherited from class com.consol.citrus.server.AbstractServerBuilder
timeout
-
Methods inherited from class com.consol.citrus.endpoint.AbstractEndpointBuilder
actor, build, initialize, name, referenceResolver, supports
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.consol.citrus.endpoint.EndpointBuilder
build, build
-
-
-
-
Method Detail
-
getEndpoint
protected SshServer getEndpoint()
- Specified by:
getEndpointin classAbstractEndpointBuilder<SshServer>
-
port
public SshServerBuilder port(int port)
Sets the port property.- Parameters:
port-- Returns:
-
user
public SshServerBuilder user(String user)
Sets the user property.- Parameters:
user-- Returns:
-
password
public SshServerBuilder password(String password)
Sets the client password.- Parameters:
password-- Returns:
-
hostKeyPath
public SshServerBuilder hostKeyPath(String hostKeyPath)
Sets the hostKeyPath property.- Parameters:
hostKeyPath-- Returns:
-
userHomePath
public SshServerBuilder userHomePath(String userHomePath)
Sets the userHomePath property.- Parameters:
userHomePath-- Returns:
-
allowedKeyPath
public SshServerBuilder allowedKeyPath(String allowedKeyPath)
Sets the allowedKeyPath property.- Parameters:
allowedKeyPath-- Returns:
-
messageConverter
public SshServerBuilder messageConverter(SshMessageConverter messageConverter)
Sets the message converter.- Parameters:
messageConverter-- Returns:
-
marshaller
public SshServerBuilder marshaller(SshMarshaller marshaller)
Sets the marshaller.- Parameters:
marshaller-- Returns:
-
pollingInterval
public SshServerBuilder pollingInterval(int pollingInterval)
Sets the polling interval.- Parameters:
pollingInterval-- Returns:
-
endpointAdapter
public SshServerBuilder endpointAdapter(EndpointAdapter endpointAdapter)
Sets the endpoint adapter.- Overrides:
endpointAdapterin classAbstractServerBuilder<SshServer,SshServerBuilder>- Parameters:
endpointAdapter-- Returns:
-
debugLogging
public SshServerBuilder debugLogging(boolean enabled)
Sets the debug logging enabled flag.- Overrides:
debugLoggingin classAbstractServerBuilder<SshServer,SshServerBuilder>- Parameters:
enabled-- Returns:
-
autoStart
public SshServerBuilder autoStart(boolean autoStart)
Sets the autoStart property.- Overrides:
autoStartin classAbstractServerBuilder<SshServer,SshServerBuilder>- Parameters:
autoStart-- Returns:
-
-