Package ch.so.agi.gretl.internal.ftp
Record Class FtpConnectionSpec
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.ftp.FtpConnectionSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecontrolKeepAliveTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileSeparatorrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thepassiveModerecord component.password()Returns the value of thepasswordrecord component.server()Returns the value of theserverrecord component.Returns the value of thesystemTyperecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
FtpConnectionSpec
public FtpConnectionSpec(String server, String user, String password, String systemType, String fileSeparator, boolean passiveMode, long controlKeepAliveTimeout) Creates an instance of aFtpConnectionSpecrecord class.- Parameters:
server- the value for theserverrecord componentuser- the value for theuserrecord componentpassword- the value for thepasswordrecord componentsystemType- the value for thesystemTyperecord componentfileSeparator- the value for thefileSeparatorrecord componentpassiveMode- the value for thepassiveModerecord componentcontrolKeepAliveTimeout- the value for thecontrolKeepAliveTimeoutrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
server
Returns the value of theserverrecord component.- Returns:
- the value of the
serverrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
systemType
Returns the value of thesystemTyperecord component.- Returns:
- the value of the
systemTyperecord component
-
fileSeparator
Returns the value of thefileSeparatorrecord component.- Returns:
- the value of the
fileSeparatorrecord component
-
passiveMode
public boolean passiveMode()Returns the value of thepassiveModerecord component.- Returns:
- the value of the
passiveModerecord component
-
controlKeepAliveTimeout
public long controlKeepAliveTimeout()Returns the value of thecontrolKeepAliveTimeoutrecord component.- Returns:
- the value of the
controlKeepAliveTimeoutrecord component
-