public class IOProperties
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONNECTION_ACCEPT_HTTP_COMPRESSION_PROPERTY_NAME
property name for accept http compression
|
static java.lang.String |
CONNECTION_TIME_OUT_PROPERTY_NAME
timeout property name
|
static boolean |
DEFAULT_CONNECTION_ACCEPT_HTTP_COMPRESSION
accept http compression?
|
Modifier and Type | Method and Description |
---|---|
int |
getConnectionTimeout()
Gets the connection timeout that is used for sockets when loading
ontologies over HTTP etc.
|
static IOProperties |
getInstance() |
boolean |
isConnectionAcceptHTTPCompression()
Determines whether HTTP compression can be used
|
void |
setConnectionAcceptHTTPCompression(boolean connectionAcceptHTTPCompression)
Sets whether HTTP compression can be used.
|
void |
setConnectionTimeout(int connectionTimeout)
Sets the connection timeout that should be used when loading from
sockets.
|
public static final java.lang.String CONNECTION_TIME_OUT_PROPERTY_NAME
public static final boolean DEFAULT_CONNECTION_ACCEPT_HTTP_COMPRESSION
public static final java.lang.String CONNECTION_ACCEPT_HTTP_COMPRESSION_PROPERTY_NAME
public static IOProperties getInstance()
public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
connectionTimeout
- The connection timeout in millisecondspublic boolean isConnectionAcceptHTTPCompression()
true
if HTTP compression can be used, otherwise
falsepublic void setConnectionAcceptHTTPCompression(boolean connectionAcceptHTTPCompression)
connectionAcceptHTTPCompression
- true
if HTTP compression can
be used, otherwise false