Enum Factory
- java.lang.Object
-
- java.lang.Enum<Factory>
-
- io.github.henryssondaniel.teacup.protocol.ftp.server.Factory
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClientConfigurationBuilder
createClientConfigurationBuilder()
Creates a newClientConfigurationBuilder
.static ConfigurationBuilder
createConfigurationBuilder()
Creates a newConfigurationBuilder
.static ContextBuilder
createContextBuilder(Reply reply)
Creates a newContextBuilder
.static ReplyBuilder
createReplyBuilder(int code, java.lang.String message)
Creates a newReplyBuilder
.static io.github.henryssondaniel.teacup.protocol.Server<Context,Request>
createServer()
Creates a newServer
.static io.github.henryssondaniel.teacup.protocol.Server<Context,Request>
createServer(Configuration configuration)
Creates a newServer
.static SslConfigurationBuilder
createSslConfigurationBuilder()
Creates a newSslConfigurationBuilder
.static Factory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Factory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Factory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Factory c : Factory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Factory valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
createClientConfigurationBuilder
public static ClientConfigurationBuilder createClientConfigurationBuilder()
Creates a newClientConfigurationBuilder
.- Returns:
- the client configuration builder
- Since:
- 1.0
-
createConfigurationBuilder
public static ConfigurationBuilder createConfigurationBuilder()
Creates a newConfigurationBuilder
.- Returns:
- the configuration builder
- Since:
- 1.0
-
createContextBuilder
public static ContextBuilder createContextBuilder(Reply reply)
Creates a newContextBuilder
.- Parameters:
reply
- the reply- Returns:
- the context builder
- Since:
- 1.0
-
createReplyBuilder
public static ReplyBuilder createReplyBuilder(int code, java.lang.String message)
Creates a newReplyBuilder
.- Parameters:
code
- the codemessage
- the message- Returns:
- the reply builder
- Since:
- 1.0
-
createServer
public static io.github.henryssondaniel.teacup.protocol.Server<Context,Request> createServer()
Creates a newServer
.- Returns:
- the simple server
- Since:
- 1.0
-
createServer
public static io.github.henryssondaniel.teacup.protocol.Server<Context,Request> createServer(Configuration configuration)
Creates a newServer
.- Parameters:
configuration
- the configuration- Returns:
- the simple server
- Since:
- 1.0
-
createSslConfigurationBuilder
public static SslConfigurationBuilder createSslConfigurationBuilder()
Creates a newSslConfigurationBuilder
.- Returns:
- the SSL configuration builder
- Since:
- 1.0
-
-