public final class EngineIoServerOptions extends Object
EngineIoServer| Modifier and Type | Field and Description |
|---|---|
static String[] |
ALLOWED_CORS_ORIGIN_ALL
Specify that all origins are to be allowed for CORS
|
static String[] |
ALLOWED_CORS_ORIGIN_NONE
Specify that no origins are allowed for CORS
|
static EngineIoServerOptions |
DEFAULT
The default options used by server.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAllowedCorsOrigins()
Gets the allowed cors origins option.
|
long |
getPingInterval()
Gets the ping interval option.
|
long |
getPingTimeout()
Gets the ping timeout option.
|
void |
lock()
Lock this options instance to prevent modifications.
|
static EngineIoServerOptions |
newFromDefault()
Create a new instance of
EngineIoServerOptions by copying
default options. |
EngineIoServerOptions |
setAllowedCorsOrigins(String[] allowedCorsOrigins)
Sets the allowed cord origins option.
|
EngineIoServerOptions |
setPingInterval(long pingInterval)
Sets the ping interval option.
|
EngineIoServerOptions |
setPingTimeout(long pingTimeout)
Sets the ping timeout option.
|
public static final EngineIoServerOptions DEFAULT
public static final String[] ALLOWED_CORS_ORIGIN_ALL
public static final String[] ALLOWED_CORS_ORIGIN_NONE
public static EngineIoServerOptions newFromDefault()
EngineIoServerOptions by copying
default options.EngineIoServerOptions with default options.public long getPingInterval()
public EngineIoServerOptions setPingInterval(long pingInterval) throws IllegalStateException
pingInterval - Ping interval in milliseconds.IllegalStateException - If instance is locked.public long getPingTimeout()
public EngineIoServerOptions setPingTimeout(long pingTimeout) throws IllegalStateException
pingTimeout - Ping timeout in milliseconds.IllegalStateException - If instance is locked.public String[] getAllowedCorsOrigins()
public EngineIoServerOptions setAllowedCorsOrigins(String[] allowedCorsOrigins) throws IllegalStateException
allowedCorsOrigins - Array of strings containing allowed cors origins.IllegalStateException - If instance is locked.public void lock()
Copyright © 2018. All rights reserved.