Class ContentType
public class ContentType extends Object
-
Field Summary
Fields Modifier and Type Field Description protected StringcontentTypeUidprotected LinkedHashMap<String,Object>headersprotected static Loggerloggerprotected StackstackInstance -
Constructor Summary
Constructors Modifier Constructor Description protectedContentType()protectedContentType(String contentTypeUid) -
Method Summary
Modifier and Type Method Description protected Entryentry()Entryentry(String entryUid)An entry is the actual piece of content created using one of the defined content types.voidfetch(org.json.JSONObject params, ContentTypesCallback callback)Fetch.Queryquery()Query.voidremoveHeader(String headerKey)Remove header fromStackvoidsetHeader(String headerKey, String headerValue)Sets header onStack.protected voidsetStackInstance(Stack stack)
-
Field Details
-
Constructor Details
-
Method Details
-
setStackInstance
-
setHeader
Sets header onStack.- Parameters:
headerKey- the header keyheaderValue- the header value
-
removeHeader
Remove header fromStack- Parameters:
headerKey- the header key
-
entry
An entry is the actual piece of content created using one of the defined content types.The Get a single entry request fetches a particular entry of a content type.
- Parameters:
entryUid- the entry unique ID of the entry that you want to fetch.- Returns:
- the
Entryentry.
-
entry
-
query
Query. The Get all entries request fetches the list of all the entries of a particular content type. It returns the content of each entry in JSON format. You need to specify the environment and locale of which you want to get the entries.If an entry is not published in a specific locale, make use of the include_fallback=true query parameter to fetch the published content from its fallback locale.
Note:If the fallback language of the specified locale is the master language itself, this parameter would not be applicable.
To include the publishing details in the response, make use of the include_publish_details=true parameter. This will return the publishing details of the entry in every environment along with the version number that is published in each of the environments. You can add other Queries to extend the functionality of this API call. Add a query parameter named query and provide your query (in JSON format) as the value.
- Returns:
- the
Query
-
fetch
Fetch.- Parameters:
params- the paramscallback- the callback
-