|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ubisoa.core.Defaults
public final class Defaults
A final class where all the default object instances and constants are retrieved.
Field Summary | |
---|---|
static java.lang.String |
AGENT
The default content of the Server response header. |
static java.lang.String |
MAX_CONNECTIONS
Maximum client connections allowed at the same time. |
static java.lang.String |
MAX_THREADS
Maximum processing threads allowed at the same time. |
static java.lang.Boolean |
USE_LOCAL_FILES
Wherever to use local files or the ones at http://api.ubisoa.net/ . |
Constructor Summary | |
---|---|
Defaults()
|
Method Summary | |
---|---|
static java.text.SimpleDateFormat |
dateFormat()
Retrieves the common SimpleDateFormat instance used in the project. |
static java.lang.String |
getDateString()
Retrieves the current date in the default SimpleDateFormat . |
static java.lang.String |
getDefaultLeaseDateString()
Retrieves a date in the near future to be used as default lease-time. |
static org.apache.http.client.HttpClient |
getHttpClient()
Creates an HttpClient instance that allows concurrent HTTP connections. |
static void |
setServerInfo(ServerResource serverResource)
Sets the Server response header of the specified ServerResource instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String AGENT
Server
response header.
public static final java.lang.Boolean USE_LOCAL_FILES
http://api.ubisoa.net/
.
public static final java.lang.String MAX_CONNECTIONS
public static final java.lang.String MAX_THREADS
Constructor Detail |
---|
public Defaults()
Method Detail |
---|
public static void setServerInfo(ServerResource serverResource)
Server
response header of the specified ServerResource
instance.
serverResource
- The resource instance where the header will be set.public static java.text.SimpleDateFormat dateFormat()
SimpleDateFormat
instance used in the project.
SimpleDateFormat
instance in the project.public static org.apache.http.client.HttpClient getHttpClient()
HttpClient
instance that allows concurrent HTTP connections.
HttpClient
instance with thread-safe connections.public static java.lang.String getDefaultLeaseDateString()
public static java.lang.String getDateString()
SimpleDateFormat
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |