Package com.contentstack.sdk
Class Constants
java.lang.Object
com.contentstack.sdk.Constants
public class Constants extends Object
The type Constants.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConstants.REQUEST_CONTROLLERThe enum Request controller. -
Field Summary
Fields Modifier and Type Field Description protected static StringAPPLICATION_JSONprotected static StringCLIENT_USER_AGENTprotected static StringCONTENT_TYPEstatic StringCONTENT_TYPE_NAMEprotected static StringCONTENT_TYPE_UIDprotected static StringENVIRONMENTprotected static StringERROR_CODEprotected static StringERROR_MESSAGEprotected static StringERRORSprotected static StringEXCEPTprotected static StringEXISTSstatic StringFETCHALLASSETSstatic StringFETCHASSETSstatic StringFETCHCONTENTTYPESstatic StringFETCHENTRYstatic StringFETCHSYNCstatic StringHEADER_IS_MISSING_TO_PROCESS_THE_DATAstatic StringJSON_NOT_PROPERprotected static StringLIMITprotected static StringOPTIONSprotected static StringQUERYstatic StringQUERY_EXCEPTIONstatic StringQUERYOBJECTprotected static StringREGEXprotected static StringSDK_VERSIONstatic StringSINGLEQUERYOBJECTprotected static StringSYNCHRONISATIONprotected static StringX_USER_AGENT -
Constructor Summary
Constructors Modifier Constructor Description protectedConstants() -
Method Summary
-
Field Details
-
SDK_VERSION
- See Also:
- Constant Field Values
-
ENVIRONMENT
- See Also:
- Constant Field Values
-
CONTENT_TYPE_UID
- See Also:
- Constant Field Values
-
SYNCHRONISATION
- See Also:
- Constant Field Values
-
ERROR_CODE
- See Also:
- Constant Field Values
-
ERROR_MESSAGE
- See Also:
- Constant Field Values
-
ERRORS
- See Also:
- Constant Field Values
-
X_USER_AGENT
- See Also:
- Constant Field Values
-
CONTENT_TYPE
- See Also:
- Constant Field Values
-
APPLICATION_JSON
- See Also:
- Constant Field Values
-
CLIENT_USER_AGENT
-
QUERY
- See Also:
- Constant Field Values
-
EXCEPT
- See Also:
- Constant Field Values
-
EXISTS
- See Also:
- Constant Field Values
-
REGEX
- See Also:
- Constant Field Values
-
LIMIT
- See Also:
- Constant Field Values
-
OPTIONS
- See Also:
- Constant Field Values
-
QUERYOBJECT
- See Also:
- Constant Field Values
-
SINGLEQUERYOBJECT
- See Also:
- Constant Field Values
-
FETCHENTRY
- See Also:
- Constant Field Values
-
FETCHALLASSETS
- See Also:
- Constant Field Values
-
FETCHASSETS
- See Also:
- Constant Field Values
-
FETCHSYNC
- See Also:
- Constant Field Values
-
FETCHCONTENTTYPES
- See Also:
- Constant Field Values
-
JSON_NOT_PROPER
- See Also:
- Constant Field Values
-
CONTENT_TYPE_NAME
- See Also:
- Constant Field Values
-
HEADER_IS_MISSING_TO_PROCESS_THE_DATA
- See Also:
- Constant Field Values
-
QUERY_EXCEPTION
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Constants
protected Constants()
-
-
Method Details
-
parseDate
Parse date calendar.- Parameters:
date- the datetimeZone- the time zone- Returns:
- the calendar
-
parseDate
public static Calendar parseDate(String date, String dateFormat, TimeZone timeZone) throws ParseExceptionParse date calendar.- Parameters:
date- the datedateFormat- the date formattimeZone- the time zone- Returns:
- the calendar
- Throws:
ParseException- the parse exception
-
userAgent
-