Enum ServletEngine
- java.lang.Object
-
- java.lang.Enum<ServletEngine>
-
- org.xwiki.test.docker.junit5.servletengine.ServletEngine
-
- All Implemented Interfaces:
Serializable
,Comparable<ServletEngine>
public enum ServletEngine extends Enum<ServletEngine>
The Servlet Engine to use for the UI tests.- Since:
- 10.9
- Version:
- $Id: 88a2ce8f2e4f94980cf503c289d805328e959ef6 $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXTERNAL
Represents an external Servlet Engine already configured and running (we won't start or stop it).JETTY
Represents the Jetty Servlet engine (running inside Docker).JETTY_STANDALONE
Represents the Jetty Servlet engine but running outside of Docker.TOMCAT
Represents the Tomcat Servlet engine.WILDFLY
Represents the JBoss Wildfly engine.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDockerImageName()
String
getHostIP()
String
getInternalIP()
int
getInternalPort()
String
getIP()
String
getPermanentDirectory()
int
getPort()
boolean
isOutsideDocker()
void
setIP(String ip)
void
setPort(int port)
static ServletEngine
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServletEngine[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOMCAT
public static final ServletEngine TOMCAT
Represents the Tomcat Servlet engine.
-
JETTY
public static final ServletEngine JETTY
Represents the Jetty Servlet engine (running inside Docker).
-
JETTY_STANDALONE
public static final ServletEngine JETTY_STANDALONE
Represents the Jetty Servlet engine but running outside of Docker.
-
WILDFLY
public static final ServletEngine WILDFLY
Represents the JBoss Wildfly engine.
-
EXTERNAL
public static final ServletEngine EXTERNAL
Represents an external Servlet Engine already configured and running (we won't start or stop it).
-
-
Method Detail
-
values
public static ServletEngine[] 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 (ServletEngine c : ServletEngine.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServletEngine valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isOutsideDocker
public boolean isOutsideDocker()
- Returns:
- true if the Servlet engine is meant to be running on the host and not in a Docker container
-
getIP
public String getIP()
- Returns:
- the IP address to use to connect to the Servlet Engine from the outside (it is different if it runs locally or in a Docker container).
- Since:
- 10.11RC1
-
setPort
public void setPort(int port)
- Parameters:
port
- seegetPort()
- Since:
- 10.11RC1
-
getPort
public int getPort()
- Returns:
- the port to use to connect to the Servlet Engine from the outside (it is different if it runs locally or in a Docker container)
- Since:
- 10.11RC1
-
getHostIP
public String getHostIP()
- Returns:
- the IP to the host from inside the Servlet Engine
- Since:
- 10.11RC1
-
getInternalIP
public String getInternalIP()
- Returns:
- the IP of the container from inside itself (it is different if it runs locally or in a Docker container)
- Since:
- 10.11RC1
-
getInternalPort
public int getInternalPort()
- Returns:
- the port of the container from inside itself (it is different if it runs locally or in a Docker container)
- Since:
- 10.11RC1
-
getPermanentDirectory
public String getPermanentDirectory()
- Returns:
- the location of the XWiki permanent directory inside the Docker container for the Servlet Engine.
- Since:
- 10.11RC1
-
getDockerImageName
public String getDockerImageName()
- Returns:
- the Docker image name for this Servlet Engine. This image must be available on DockerHub.
- Since:
- 10.11RC1
-
-